Solved

Removing Outlook 2010 Calendars Users have added

Posted on 2014-01-20
3
256 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

In this step by step procedure, you will come to know the details of creating an Outlook meeting in 2007, 2010, 2013 & 2016.
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

734 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