Set-RASSite
SYNOPSIS
Modifies site properties.
SYNTAX
Set-RASSite [-Id] <uint> [-EnableHttpHostAttackProtection <bool>] [-NewName <string>]
[<CommonParameters>]Set-RASSite [-InputObject] <Site> [-EnableHttpHostAttackProtection <bool>] [-NewName <string>]
[<CommonParameters>]Set-RASSite [-Name] <string> [-EnableHttpHostAttackProtection <bool>] [-NewName <string>]
[<CommonParameters>]DESCRIPTION
Modifies site properties.
EXAMPLES
Example 1
Set-RASSite -Name "My-Site" -NewName "New Site Name"Changes the name of the site specified by name.
Example 2
Enables the Http Host Attack protection of the site specified by ID.
Example 3
Disables the Http Host Attack protection of the site specified by the $site variable, which must be an object of type Site.
To obtain the object, use the Get-RASSite cmdlet specifying the desired site.
Example 4
Changes the name of the site, which is identified by an object obtained from the pipeline output.
PARAMETERS
-Name
The name of the site to modify.
-Id
The ID of the site to modify.
-InputObject
An object of type Site identifying the site to be modified.
To obtain the object, use the Get-Site cmdlet.
Type reference: Site
-NewName
A new name to assign to the site.
-EnableHttpHostAttackProtection
Whether Http Host Attack protection is enabled for this site or not.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
Site
OUTPUTS
None
RELATED LINKS
Last updated