Updates the configuration of a tenant web site.
Syntax
Parameter Set: Default
Set-WebSitesSite [-Name] <String> [-AssignWorker
<String> ] [-ComputeMode {Shared | Dedicated} ] [-HostNames
<String[]> ] [-PipelineVariable <String> ] [-ServerFarm
<String> ] [-SiteMode <String> ] [-SkipDnsRegistration]
[-UnassignAllWorkers] [-UnassignWorker <String> ] [-Confirm]
[-WhatIf] [ <CommonParameters>]
The Set-WebSitesSite cmdlet updates the configuration of a tenant web site. You can use this cmdlet to assign a site to or remove a site from a worker.
Specifies the worker to assign the site to.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Specifies the compute mode. Valid values are:
-- Shared
-- Dedicated
The acceptable values for this parameter are:
Shared |
|
Dedicated |
|
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Specifies an array of host names for a site.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Specifies the name of a site.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
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 the server farm that the site is placed in when switching to reserved instances. As a default, specify "DefaultServerFarm".
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Specifies the site mode. Valid values are:
-- Basic
-- Limited
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Indicates that DNS registration is skipped.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Indicates that the site is removed from all workers.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Specifies the worker from which to remove the site.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Prompts you for confirmation before executing the command.
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Describes what would happen if you executed the command without actually executing the command.
Required? |
false |
Position? |
named |
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 removes the site named Site01 from all workers that are currently running the site.
PS C:\> Set-WebSitesSite -Name "Site01" -UnassignAllWorkers
This command assigns the site named Site01 to the worker named WSERVER01.
PS C:\> Set-WebSitesSite -Name "Site01" -AssignWorker "WSERVER01"
This command removes the site named Site01 from the worker named WSERVER01.
PS C:\> Set-WebSitesSite -Name "Site01" -UnassignWorker "WSERVER01"