external help file | applicable | schema |
---|---|---|
SharePoint Online |
2.0.0 |
Creates a new Site Script on the current tenant.
Add-PnPSiteScript -Title <String>
-Content <String>
[-Description <String>]
[-Connection <SPOnlineConnection>]
PS:> Add-PnPSiteScript -Title "My Site Script" -Description "A more detailed description" -Content $script
Adds a new Site Script, where $script variable contains the script.
A JSON string containing the site script
Type: String
Parameter Sets: (All)
Required: True
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 title of the site script
Type: String
Parameter Sets: (All)
Required: True
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