This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Creates new user in Active Directory based on Company Standards | |
.DESCRIPTION | |
Import module from Active Directory and Exchange withou the need to have the tools the installed on the computer running the commands | |
I will communicate with AD 2012 R2 and Exchange 2010 | |
.EXAMPLE | |
New-HPDCUSER -Firstname John -LastName Doe -Password SUperSecretPassword | |
#> | |
function New-CompanyUser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# These 3 commands test the speed that an archive folder is created using different compression values | |
#> | |
Measure-Command {Compress-Archive -Path 'C:\Users\Documents\Files\*' -DestinationPath 'C:\Users\Documents\FilesZIPFastest' -CompressionLevel Fastest} | |
Measure-Command {Compress-Archive -Path 'C:\Users\Documents\Files\*' -DestinationPath 'C:\Users\Documents\FilesZIPNoCompression' -CompressionLevel NoCompression} | |
Measure-Command {Compress-Archive -Path 'C:\Users\Documents\Files\*' -DestinationPath 'C:\Users\Documents\FilesZIPOptimal' -CompressionLevel Optimal} |