external help file | Module Name | online version | schema |
---|---|---|---|
SPClientCore.dll-Help.xml |
SPClientCore |
2.0.0 |
Checks in a file.
Unlock-KshFile [-Identity] <File> [-Comment <String>] [-CheckInType <CheckInType>] [-PassThru]
[<CommonParameters>]
Unlock-KshFile [-Identity] <File> [-Undo] [-PassThru] [<CommonParameters>]
The Unlock-KshFile cmdlet checks in a file or discards a check-out file.
PS C:\> Unlock-KshFile -Identity (Get-KshFile -FolderUrl '/sites/japan/hr/Shared%20Documents/README.txt') -Comment 'Changed e-mail address'
Checks in the file.
PS C:\> Unlock-KshFile -Identity (Get-KshFile -FolderUrl '/sites/japan/hr/Shared%20Documents/README.txt') -Undo
Discards the check-out file.
Specifies the check-in type.
Type: CheckInType
Parameter Sets: ParamSet1
Aliases:
Accepted values: MinorCheckIn, MajorCheckIn, OverwriteCheckIn
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the comment.
Type: String
Parameter Sets: ParamSet1
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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
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
If specified, discards changes.
Type: SwitchParameter
Parameter Sets: ParamSet2
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.