Search Posts

Manually create sharepoint configuration database

New-SPConfigurationDatabase -DatabaseName "sharepoint_config" -AdministrationContentDatabaseName "sharepoint_admin" -DatabaseServer "WIN-OL85BEL1HNM" -Passphrase (ConvertTo-SecureString "password" -AsPlainText -force) -FarmCredentials (Get-Credential) -localserverrole SingleServerFarm

1. you have to run sharepoint shell using administrator
2. when credential dialog popup, you have to input the user name as machine_name\administrator
3. when hitting error, you must close the shell and restart it, otherwise whatever you do, last error message still happen

Tips:
1. if you hit “Requested registry access is not allowed”, that mean you haven’t run the shell as administrator
2. if you hit “The user does not exist or is not unique”, that mean you haven’t input the username format as “machine_name\administrator” in the popup dialog

Leave a Reply

Your email address will not be published. Required fields are marked *