Skip to content

Latest commit

 

History

History
115 lines (85 loc) · 2.2 KB

Add-KshAnonymousLink.md

File metadata and controls

115 lines (85 loc) · 2.2 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> [-ProgressAction <ActionPreference>] [<CommonParameters>]

ParamSet2

Add-KshAnonymousLink -Url <Uri> -IsEditLink <Boolean> -Expiration <DateTime>
 [-ProgressAction <ActionPreference>] [<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

-ProgressAction

Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider.

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

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

None

OUTPUTS

System.String

NOTES

RELATED LINKS