Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $orig = "http://acmeprd/schedule"
- $dest = "http://acmedev/schedule"
- $web = get-spweb $dest
- $cal = $web.Lists["Room Schedule"]
- $views = $cal.Views|%{$_}
- foreach($v in $views){
- if($v.CalendarSettings -ne $null -and $v.CalendarSettings -match $orig){
- $v.Title
- $v.CalendarSettings = $v.CalendarSettings.Replace($orig, $dest)
- $v.Update()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement