Skip to content

Instantly share code, notes, and snippets.

@iOnline247
Created November 29, 2017 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iOnline247/9b6e2335a493b9a1ce859543a00f826d to your computer and use it in GitHub Desktop.
Save iOnline247/9b6e2335a493b9a1ce859543a00f826d to your computer and use it in GitHub Desktop.
SP2016 Installation Scripts
$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