February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You need to configure a new SharePoint farm from the command line.
Solution: Use the New-SharePointFarm cmdlet from the SPModule.
The New-SharePointFarm cmdlet enables you to configure a new SharePoint farm on the server. The syntax follows:
New-SharePointFarm -databaseserver <server name>-databaseaccessaccount (Get-Credential <domain\account>)-farmname <name of new farm>-passphrase (ConvertTo-SecureString -asplaintext -force -string "Enter a farm pass phrase here")
This command requires credentials for the database server. Therefore, the Get-Credential PowerShell command is used in conjunction with New-SharePointFarm. After you enter the command, PowerShell prompts you for the password of ...
Read now
Unlock full access