Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. function AfterDeploy($vars){
  2. # Log "AfterDeploy (Custom Event)" -Type $SPSD.LogTypes.Information -Indent
  3. # New-SPSite -Url '$vars["SiteUrl"]' -OwnerAlias '$env:USERDOMAIN$env:USERNAME' -Name 'Test Site' -Template 'STS#0'
  4. # Install-SPFeature -Path '[feature name]' -Force
  5. # Enable-SPFeature -Identity '[feature name]' -Url '$vars["SiteUrl"]' -Force
  6. # Enable-SPFeature -Identity [feature guid] -Url '$vars["SiteUrl"]' -Force
  7. #activate content type association feature in content web application
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement