Solved

Removing Outlook 2010 Calendars Users have added

Posted on 2014-01-20
3
244 Views
Last Modified: 2014-01-21
In Outlook, users are able to ADD Calendars to their Calendar view  (via Right click MY CALENDARS then ADD CALENDARS).

Rarely but occasionally, we have the need to delete and re-create a user's mailbox and when we do so, these previously created links no longer work.

We've sent instructions to the users ad-nauseum on how to remove and then re-add these entries which they ignore, forget about and then submit new tickets to the Help Desk that their links don't work.

Is there any way (GP, Batch Program, Login Script, ANYTHING) where we can remove individual (or all) added calendars centrally?

Saw reference to deleting the NK2 file (doable in the login script) which does not exist in Outlook 2010, but haven't found anything else to lead me in the right direction in either Outlook or Exchange (2010).

Any help appreciated.
0
Comment
Question by:FarrellFritz
  • 2
3 Comments
 
LVL 14

Expert Comment

by:luconsta
ID: 39796616
Try the following script but TEST IT THOROUGHLY before mass deployment!!!!

Is a PowerShell script that will delete all the calendars beneath the calendar folder:

$outlook = new-object -com Outlook.Application
$namespace = $outlook.GetNamespace("MAPI")
$folder = $namespace.GetDefaultFolder("olFolderCalendar")
$folders=$folder.folders.count
$i=1
For ($i; $i -le $folders; $i++) { 
$fldName = $folder.folders.item(1).name
write-host $fldName
$folder.folders.item(1).delete()
}

Open in new window


Hope this will help...
0
 

Author Comment

by:FarrellFritz
ID: 39796978
THANKS... will try.  Not so familiar with PowerShell.  Is there a way to execute this like in a (DOS) batch file that we could put in the login script?
0
 
LVL 14

Accepted Solution

by:
luconsta earned 500 total points
ID: 39797039
Yes, could be deployed by GPO, but it requires at least Windows 2008 and Windows 7 - more details here: Using Group Policy to Deploy a Windows PowerShell Logon Script
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now