< Back
Move-GDriveItem
Post
NAME Move-GDriveItem
SYNOPSIS
Move GoogleDrive Item into other folder(s)
SYNTAX
Move-GDriveItem [-ID] <String> [[-ParentID] <String[]>] [-NewParentID] <String[]> -AccessToken <String> [-WhatIf]
[-Confirm] [<CommonParameters>]
DESCRIPTION
Move GoogleDrive Item into other folder(s)
PARAMETERS
-ID <String>
File ID to move
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ParentID <String[]>
Folder ID(s) from which item will be removed
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NewParentID <String[]>
Folder ID(s) in which item will be placed
Required? true
Position? 3
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:\\>Move-GDriveItem -AccessToken $access_token -ID '0BAjkl4cBDNVpVbB5nGhKQ195aU0' `
-ParentID 'root' -NewParentID '0BAjkl4cBDNVpVbB5nGhKQ195a20', '0BAjkl4cBDNVpVbB5nGhKQ195a10'
RELATED LINKS
Set-GDriveItemProperty
Set-GDriveItemContent
Rename-GDriveItem
Remove-GDriveItem
SYNOPSIS
Move GoogleDrive Item into other folder(s)
SYNTAX
Move-GDriveItem [-ID] <String> [[-ParentID] <String[]>] [-NewParentID] <String[]> -AccessToken <String> [-WhatIf]
[-Confirm] [<CommonParameters>]
DESCRIPTION
Move GoogleDrive Item into other folder(s)
PARAMETERS
-ID <String>
File ID to move
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ParentID <String[]>
Folder ID(s) from which item will be removed
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NewParentID <String[]>
Folder ID(s) in which item will be placed
Required? true
Position? 3
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:\\>Move-GDriveItem -AccessToken $access_token -ID '0BAjkl4cBDNVpVbB5nGhKQ195aU0' `
-ParentID 'root' -NewParentID '0BAjkl4cBDNVpVbB5nGhKQ195a20', '0BAjkl4cBDNVpVbB5nGhKQ195a10'
RELATED LINKS
Set-GDriveItemProperty
Set-GDriveItemContent
Rename-GDriveItem
Remove-GDriveItem