external help file | applicable | schema |
---|---|---|
SharePoint Online |
2.0.0 |
Updates an existing Site Script on the current tenant.
Set-PnPSiteScript -Identity <TenantSiteScriptPipeBind>
[-Title <String>]
[-Description <String>]
[-Content <String>]
[-Version <Int>]
[-Connection <SPOnlineConnection>]
PS:> Set-PnPSiteScript -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f -Title "My Site Script"
Updates an existing Site Script and changes the title.
PS:> $script = Get-PnPSiteScript -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f
PS:> Set-PnPSiteScript -Identity = $script -Title "My Site Script"
Updates an existing Site Script and changes the title.
A JSON string containing the site script
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
The description of the site script
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
The guid or an object representing the site script
Type: TenantSiteScriptPipeBind
Parameter Sets: (All)
Required: True
Position: Named
Accept pipeline input: False
The title of the site script
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Specifies the version of the site script
Type: Int
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Optional connection to be used by cmdlet. Retrieve the value for this parameter by eiter specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: SPOnlineConnection
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False