Created
November 29, 2017 05:34
-
-
Save iOnline247/9b6e2335a493b9a1ce859543a00f826d to your computer and use it in GitHub Desktop.
SP2016 Installation Scripts
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
$pathToOU = 'OU=SP Accounts,DC=fahq,DC=local' | |
$password = ConvertTo-SecureString "P@ssw0rd" -AsPlainText -Force | |
New-ADUser -SamAccountName "sp_wf" -Name "sp_wf" -DisplayName "sp_wf" -Path $pathToOU -Enabled $true -AccountPassword $password -ChangePasswordAtLogon $false -PasswordNeverExpires $true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment