Skip to content

Latest commit

 

History

History
137 lines (103 loc) · 2.56 KB

File metadata and controls

137 lines (103 loc) · 2.56 KB
external help file SPClientCore.dll-Help.xml
Module Name SPClientCore
online version
schema 2.0.0

Move-KshFile

SYNOPSIS

Moves a file.

SYNTAX

Move-KshFile [-Identity] <File> [-NewUrl] <Uri> [-Overwrite] [-AllowBrokenThickets] [-BypassApprovePermission]
 [-PassThru] [<CommonParameters>]

DESCRIPTION

The Move-KshFile cmdlet moves a file to the specified URL.

EXAMPLES

Example 1

PS C:\> Move-KshFile -Identity (Get-KshFile -FileUrl '/sites/japan/hr/Shared%20Documents/README.txt') -NewUrl '/sites/japan/hr/Shared%20Documents/README_old.txt'

Moves a file.

PARAMETERS

-AllowBrokenThickets

If specified, completes the move operation even if supporting files are separated from the file.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-BypassApprovePermission

If specified, approval permissions are not required if there are no published versions of the file.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Identity

Specifies the file.

Type: File
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-NewUrl

Specifies the URL.

Type: Uri
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Overwrite

If specified, overwrites the existing file.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PassThru

If specified, returns the updated object.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

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

Karamem0.SharePoint.PowerShell.Models.File

OUTPUTS

Karamem0.SharePoint.PowerShell.Models.File

NOTES

RELATED LINKS