Rename a File from a Gist Object.
Rename-GistFile [-Id] <string> [-OldName] <string> [-NewName] <string> [<CommonParameters>]
None.
-Id <string>
The Id of the Gist Object.
Required? true
Position? Named
Accept pipeline input? true (ByValue, ByPropertyName)
Parameter set name (All)
Aliases None
Dynamic? false
-NewName <string>
New name of the GistFile.
Required? true
Position? Named
Accept pipeline input? false
Parameter set name (All)
Aliases None
Dynamic? false
-OldName <string>
Current name of the GistFile.
Required? true
Position? Named
Accept pipeline input? false
Parameter set name (All)
Aliases None
Dynamic? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
There must be an Authenticated User Context to interact with Gist Objects.
Renames the file MisNamedFile.ps1 to ProtectedAttributeCleanup.ps1 from Gist a5b60bdf7955e029a500.
PS C:\> Rename-GistFile -Id a5b60bdf7955e029a500 -OldName MisNamedFile.ps1 -NewName ProtectedAttributeCleanup.ps1
Owner : dotps1
Description : Find users in a domain that have the protected attribute that should not, remove that attribute and re enable inheritance.
Id : a5b60bdf7955e029a500
CreatedAt : 2/3/2016 3:20:37 PM
UpdatedAt : 2/4/2016 11:59:19 AM
Public : True
HtmlUrl : https://gist.github.com/a5b60bdf7955e029a500
Files : ProtectedAttributeCleanup.ps1