Skip to content

Latest commit

 

History

History
137 lines (103 loc) · 2.82 KB

Copy-KshFolder.md

File metadata and controls

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

Copy-KshFolder

SYNOPSIS

Copies a folder.

SYNTAX

Copy-KshFolder [-Identity] <Folder> [-NewUrl] <Uri> [-KeepBoth] [-ResetAuthorAndCreatedOnCopy]
 [-RetainEditorAndModifiedOnMove] [-ShouldBypassSharedLocks] [<CommonParameters>]

DESCRIPTION

The Copy-KshFolder cmdlet creates a copy from the folder.

EXAMPLES

Example 1

PS C:\> Copy-KshFolder -Identity (Get-KshFolder -FolderUrl '/sites/japan/hr/Shared%20Documents/Templates') -NewUrl 'https://example.sharepoint.com/Shared%20Documents/Templates'

Copies a folder.

PARAMETERS

-Identity

Specifies the folder.

Type: Folder
Parameter Sets: (All)
Aliases:

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

-KeepBoth

If specified, both folder should be kept if a folder already exists at the specified destination.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
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

-ResetAuthorAndCreatedOnCopy

If specified, resets author and created datetime on the copied folder.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-RetainEditorAndModifiedOnMove

If specified, retains editor and modified datetime on the moved folder.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-ShouldBypassSharedLocks

If specified, the shared locks on the source folder should be by passed.

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.V1.Folder

OUTPUTS

Karamem0.SharePoint.PowerShell.Models.V1.Folder

NOTES

RELATED LINKS