powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Rename-WebConfigurationLocation



NAME
Rename-WebConfigurationLocation

SYNOPSIS
Renames a configuration location.

SYNTAX
Rename-WebConfigurationLocation -Name -NewName [-Recurse] [[-PSPath] ] [-WarningAction
] [-WarningVariable ] [-WhatIf] [-Confirm] []


DESCRIPTION
Renames the specified configuration location with the new name provided.


PARAMETERS
-Name
The current name of the configuration location to rename.

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

-NewName
The new name of the configuration location.

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

-Recurse
If included, specifies whether tags defined lower in the location hierarchy should also be renamed.

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

-PSPath
An IIS configuration path.

Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-WarningAction


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

-WarningVariable


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

-WhatIf
Describes what would happen if you executed the command without actually executing the command.

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

-Confirm
Prompts you for confirmation before executing the command.

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


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




-------------- EXAMPLE 1: Renaming a configuration location --------------

C:\PS>Rename-WebConfigurationLocation -Name 'Default Web Site/oldApp' -NewName 'Default Web Site/newApp' -PSPath II
S:\


Renames a configuration location on the Default Web Site from "oldApp" to "newApp".






RELATED LINKS