Initializes the Web Sites runtime.
Syntax
Parameter Set: Default
Initialize-WebSitesInstance [[-Settings] <Hashtable> ]
[-PipelineVariable <String> ] [ <CommonParameters>]
The Initialize-WebSitesInstance cmdlet initializes the Web Sites runtime by using a hashtable.
Specifies a variable to be used with the pipeline operator.
Aliases |
pv |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Specifies a hashtable that contains the settings that are provided to a new instance of Web Sites.
Aliases |
none |
Required? |
false |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
This command initializes the database file server and sets the management endpoints.
PS C:\> $controllerInitializationSettings = @{
hosting = "Server=CN-SERVER;Initial Catalog=Hosting;User
ID=sa;Password=Password01!"; resourceMetering ="Server=CN-SERVER;Initial Catalog=ResourceMetering;User
ID=sa;Password=Password01!"; managementServerAdminUserName ="{0}\Admin"; managementServerAdminPassword = "Password01!";
fileServerAdminUserName = "{0}\Admin"; fileServerAdminPassword ="Password01!"; frontEndAdminUserName = "{0}\Admin";
frontEndAdminPassword = "Password01!"; publisherAdminUserName ="{0}\Admin"; publisherAdminPassword = "Password01!";
workerAdminUserName = "{0}\Admin"; workerAdminPassword ="Password01!"; adminUserName = "{0}\RestMwhImpersonation";
adminPassword = "Password01!"; dnsSuffix = "test.com";
managementServerName = "MN-SERVER"; fileServerName = "FS-SERVER";
fileServerType = "WindowsSingle"; fileShareOwnerUserName ="FileShareOwner"; fileShareOwnerPassword = "Password01!";
fileShareUserUserName = "FileShareUser"; fileShareUserPassword ="Password01!"; cloudAdminUserName = "administrator";
cloudAdminPassword = "Password01!"; centralCertStoreUserName ="Certificateshareuser"; centralCertStorePassword = "Password01!";
contentShareUNCPath = "\\FS-SERVER\Websites"; contentShareLocalPath
= "C:\Websites"; certificateShareUNCPath ="\\FSSERVER01\Certificates"; certificateShareLocalPath ="C:\Certificates"; feedUrl = "http://FeedURL/feeds/List.xml";
customFeeds = "http://FeedURL/Products.xml"; SQMEnabled = "False";
MicrosoftUpdateEnabled = "True" }
PS C:\> Initialize-WebSitesExtension -Settings
$controllerInitializationSettings -Verbose