Object
Rename-NetstorageObject
Synopsis
Rename a NetStorage object.
Syntax
Rename-NetstorageObject [-Path] <String> -NewFilename <String> [-AuthFile <String>] [-Section <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
Renames an object's filename. The -Path
parameter is the full path to your file, whereas the -NewFilename
parameter is the new filename you want to use. The rest of the object's path is unchanged.
Note: You don't need to prepend paths with the upload directory CP code, this is implied.
Parameters
-AuthFile
Location of your NetStorage auth file. Defaults to ~/.nsrc
, but environment variables will take precedence.
Type String
Parameter Sets (All)
Aliases None
RequiredFalse
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-NewFilename
Replacement filename for your NetStorage object. Note that only the filename is required, not the full path.
Type String
Parameter Sets (All)
Aliases None
RequiredTrue
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-Path
Path of your directory within the NetStorage group.
Type String
Parameter Sets (All)
Aliases None
RequiredTrue
Position1
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
-Section
EdgeRC section to retrieve authentication credentials from. Defaults to default
.
Type String
Parameter Sets (All)
Aliases None
RequiredFalse
Position Named
Default value None
Accept pipeline inputFalse
Accept wildcard charactersFalse
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
None
Outputs
System.Object
Related links
Updated 7 months ago