Skip to content

Latest commit

 

History

History
98 lines (72 loc) · 1.92 KB

Add-KshAnonymousLink.md

File metadata and controls

98 lines (72 loc) · 1.92 KB
external help file Module Name online version schema
SPClientCore.dll-Help.xml
SPClientCore
2.0.0

Add-KshAnonymousLink

SYNOPSIS

Creates a new anonymous link.

SYNTAX

ParamSet1

Add-KshAnonymousLink -Url <Uri> -IsEditLink <Boolean> [<CommonParameters>]

ParamSet2

Add-KshAnonymousLink -Url <Uri> -IsEditLink <Boolean> -Expiration <DateTime> [<CommonParameters>]

DESCRIPTION

The Add-KshAnonymousLink cmdlet generates a new anonymous link for the URL. In order to use this cmdlet, the current site should be allowed to be shared with external users.

EXAMPLES

Example 1

PS C:\> Add-KshAnonymousLink -Url '/sites/japan/hr/Shared%20Documents/README.txt' -IsEditLink $true

Creates a new anonymous link.

PARAMETERS

-Expiration

Specifies the expiration date and time.

Type: DateTime
Parameter Sets: ParamSet2
Aliases:

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

-IsEditLink

Specifies whether it is an edit link.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Url

Specifies the URL.

Type: Uri
Parameter Sets: (All)
Aliases:

Required: True
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

None

OUTPUTS

System.String

NOTES

RELATED LINKS