Preqrequirements

  • You must be logged in on a Domain Controller.
  • You must be logged in as a Domain Administrator

Using the script.

First of all, decide what level of Service accounts you want to use by reading the following article: http://www.absolute-sharepoint.com/2013/01/sharepoint-2013-service-accounts-best.html .

Modifying the XML Files

You can either leave the accounts as is, if you're happy with the accounts or you can modify the name, but not the structure.  You will notice there is a Password field for every account.  Only set it if you want a different password for every account. If you want the same password for all the accounts,  the script will prompt you for it.

 


 

Switches

-Level   low, medium, high, ,custom, Autospinstaller   Mandatory

 Will create the service accounts from either ServiceAccountslow.xml or ServiceAccountsmed.xml  or ServiceAccountshigh.xml or ServiceAccountsCustom.xml

-SPOu    Optional

 By default, an Organizational Unit named "SharePoint Service Accounts" will be created. If you want to name it differently, set this parameter.

-SQLLevel low, medium, high, ,custom  Optional

 By default. the Script only creates the SharePoint Service Accounts. However, if you need it to create the SQL ones as well, use the -sqllevel parameter which will chose what level of service accounts you want.  It will create the service accounts from either sqllow.xml , sqlmed.xml, sqlhigh.xml or sqlcustom.xml

 -SQLOU    Optional
By default,the SQL Service accounts will go in the same OU as the SharePoint Service accounts, unless you specify this parameter!

-Optional Accounts   true/false.  Default = False.  Optional

Tell the script if it should create the Optional Service accounts for the Acces, Performance Point, Excel, Visio and the two cache users.

Examples

 .\sp2013serviceaccounts.ps1 -level medium -CustomOu  MyServiceAccounts 

This command will create the service accounts in ServiceAccountsMed.xml and also create and put them in an OU called "MyServiceAccounts"

\sp2013serviceaccounts.ps1 -level high  -SQLLevel high

This command will create the service accounts in ServiceAccountsHigh.xml and also create the SQL service accounts in sqlhigh.xml and put them in the default OU called "SharePoint Service Accounts"

.\sp2013serviceaccounts.ps1 -level high  -SQLLevel high -OptionalAccounts $true

This command will create the service accounts in ServiceAccountsHigh.xml, create the SQL service accounts in sqlhigh.xml . It will also include the Optional Accounts.  It will put them in the default OU called "SharePoint Service Accounts"

 .\sp2013serviceaccounts.ps1 -Level high -SPOU "SP Service Accounts" -SQLOU "SQL Service Accounts" -SQLLevel high -OptionalAccounts $true

This command will create the service accounts in ServiceAccountsHigh.xml, create the SQL service accounts in sqlhigh.xml . It will also include the Optional Accounts.  It will put the SharePoint accounts in the custom OU "SP Service Accounts" and the SQL Service accounts

.\sp2013serviceaccounts.ps1 -Level AutoSPInstaller

This command will create the service accounts in AutoSPInstaller.xml in the default OU called "SharePoint Service Accounts"

Last edited Aug 20, 2013 at 2:34 AM by vladcatrinescu, version 5

Comments

No comments yet.