Solved

Removing Outlook 2010 Calendars Users have added

Posted on 2014-01-20
3
251 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

856 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