< Back
Rename-GDriveItem
Post
NAME Rename-GDriveItem
SYNOPSIS
Rename GoogleDrive Item
SYNTAX
Rename-GDriveItem [-ID] <String> [-NewName] <String> -AccessToken <String> [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Rename GoogleDrive Item
PARAMETERS
-ID <String>
File ID to rename
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NewName <String>
New Item name
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AccessToken <String>
Access Token for request
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Json with item metadata as PSObject
NOTES
Author: Max Kozlov
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Rename-GDriveItem -AccessToken $access_token -ID '0BAjkl4cBDNVpVbB5nGhKQ195aU0' -NewName 'test1'
RELATED LINKS
Move-GDriveItem
Set-GDriveItemProperty
Set-GDriveItemContent
SYNOPSIS
Rename GoogleDrive Item
SYNTAX
Rename-GDriveItem [-ID] <String> [-NewName] <String> -AccessToken <String> [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Rename GoogleDrive Item
PARAMETERS
-ID <String>
File ID to rename
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NewName <String>
New Item name
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AccessToken <String>
Access Token for request
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Json with item metadata as PSObject
NOTES
Author: Max Kozlov
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Rename-GDriveItem -AccessToken $access_token -ID '0BAjkl4cBDNVpVbB5nGhKQ195aU0' -NewName 'test1'
RELATED LINKS
Move-GDriveItem
Set-GDriveItemProperty
Set-GDriveItemContent