Set-Site

NAME

Set-Site

SYNOPSIS

Modifies site properties.

SYNTAX

Set-Site [-Name] <string> -NewName <string> [<CommonParameters>]

Set-Site [-Id] <uint> -NewName <string> [<CommonParameters>]

Set-Site [-InputObject] <Site> -NewName <string> [<CommonParameters>]

DESCRIPTION

Modifies site properties.

PARAMETERS


-Name <string>
The name of the site to modify.

        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-Id <uint>
The ID of the site to modify.

        Required?                    true
        Position?                    0
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

-InputObject <Site>
And object of type Site identifying the site to be modified.

To obain the object, use the Get-Site cmdlet.

        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       true (ByValue)
        Accept wildcard characters?  false

-NewName <string>
A new name to assign to the site.

        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

<CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see 
        about_CommonParameters documentation. 

INPUTS

Site

OUTPUTS

-none-

EXAMPLES


---------- EXAMPLE 1 ----------

Set-Site -Name "My-Site" -NewName "New Site Name"

Changes the name of the site specified by name.

---------- EXAMPLE 2 ----------

Set-Site -Id 11 -NewName "New Site Name"

Changes the name of the site specified by ID.

---------- EXAMPLE 3 ----------

Set-Site -InputObject $site -NewName "New Site Name"

Changes the name of the site specified by the $site variable, which must be an object of type Site.

To obtain the object, use the Get-Site cmdlet specifying the desired site.

---------- EXAMPLE 4 ----------

Get-Site -Id 11 | Set-Site -NewName "New Site Name"

Changes the name of the site, which is identified by an object obtained from the pipeline output.

RELATED LINKS