Unable to find source-code formatter for language: ps. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
import-module servermanager
Add-WindowsFeature -Name "RSAT-AD-PowerShell" -IncludeAllSubFeature
import-module activedirectory
cd AD:
cd "DC=demo,DC=readify,DC=net"
cd "CN=Users"
New-ADUser -Name "sp_service" -SamAccountName sp_service -DisplayName "sp_service" -Title "SQL Service" -Enabled $true -ChangePasswordAtLogon $false -AccountPassword (ConvertTo-SecureString "P@ssword1" -AsPlainText -force) -PassThru
New-ADUser -Name "sp_farm" -SamAccountName sp_farm -DisplayName "sp_farm" -Title "SharePoint Farm account" -Enabled $true -ChangePasswordAtLogon $false -AccountPassword (ConvertTo-SecureString "P@ssword1" -AsPlainText -force) -PassThru
New-ADUser -Name "sp_wsssearch" -SamAccountName sp_wsssearch -DisplayName "sp_wsssearch" -Title "Windows SharePoint Services Search service" -Enabled $true -ChangePasswordAtLogon $false -AccountPassword (ConvertTo-SecureString "P@ssword1" -AsPlainText -force) -PassThru
New-ADUser -Name "sp_wsscontent" -SamAccountName sp_wsscontent -DisplayName "sp_wsscontent" -Title "Windows SharePoint Services Search content access" -Enabled $true -ChangePasswordAtLogon $false -AccountPassword (ConvertTo-SecureString "P@ssword1" -AsPlainText -force) -PassThru
New-ADUser -Name "sp_mosssearch " -SamAccountName sp_mosssearch -DisplayName "sp_mosssearch" -Title "Office SharePoint Server Search Service" -Enabled $true -ChangePasswordAtLogon $false -AccountPassword (ConvertTo-SecureString "P@ssword1" -AsPlainText -force) -PassThru
New-ADUser -Name "sp_sspservice" -SamAccountName sp_sspservice -DisplayName "sp_sspservice" -Title "SSP service" -Enabled $true -ChangePasswordAtLogon $false -AccountPassword (ConvertTo-SecureString "P@ssword1" -AsPlainText -force) -PassThru
New-ADUser -Name "sp_sspapppool" -SamAccountName sp_sspapppool -DisplayName "sp_sspapppool" -Title "SSP Application Pool" -Enabled $true -ChangePasswordAtLogon $false -AccountPassword (ConvertTo-SecureString "P@ssword1" -AsPlainText -force) -PassThru
New-ADUser -Name "sp_mysitesapppool" -SamAccountName sp_mysitesapppool -DisplayName "sp_mysitesapppool" -Title "MySite Application Pool" -Enabled $true -ChangePasswordAtLogon $false -AccountPassword (ConvertTo-SecureString "P@ssword1" -AsPlainText -force) -PassThru