Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

What's an easy way to import holidays into all my Outlook 2010 users Calendars?

Posted on 2012-03-13
12
Medium Priority
?
2,692 Views
Last Modified: 2012-03-30
Is there an automated software to import holidays into all my Outlook 2010 users Calendars? Why have an Outlook 2010 environment and Exchange 2010
0
Comment
Question by:jpeezus
[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
  • 6
  • 5
12 Comments
 
LVL 76

Expert Comment

by:David Lee
ID: 37719230
There is no built-in way of doing this.  I can do it with a bit of scripting.  If that's an acceptable solution, then I can provide the script and instructions on how to use it.
0
 
LVL 11

Expert Comment

by:junaidIT
ID: 37719245
http://blogs.msexchange.org/walther/2011/07/14/centrally-adding-location-specific-holidays-to-exchange-2010-calendars/

check this URL out, also note that the author did mention some issues he has had to face with this method. test it out before rolling it out. Or like in the post above, a script would be another option.

gud luck.  .
0
 

Author Comment

by:jpeezus
ID: 37726880
BlueDevilFan if i am definitely open to your script. I have already planned to use the link that JunaidIT provided http://blogs.msexchange.org/walther/2011/07/14/centrally-adding-location-specific-holidays-to-exchange-2010-calendars/ if all else fails but if your script automates it so to say i am open to that. Thanks for your responses
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 76

Accepted Solution

by:
David Lee earned 1200 total points
ID: 37728655
Here's the code.  Follow these instructions to use it.

1.  Copy the .hol file to a shared location
2.  Launch Notepad
3.  Copy the code below and paste it into Notepad
4.  Edit the code as needed.  I placed a comment line where things can/need to to change
5.  Save the file with a .vbs extension
6.  Place the .vbs file in a shared location

At this juncture you have to make a choice.  If you want this to process to run without any user interaction, then you'll either need to add the code to a login script or find some other means of launching it automatically.  If instead you don't mind minimal interaction, i.e. clicking a link, then you can send everyone an email with a link to the file.  They click the link, and the script runs adding the holidays to their calendar.  

Two warnings.  First, the script does not remove or update existing holidays.  It simply adds the holidays in the file.  Two, if a given user runs the script more than once, then they will end up with multiple copies of the same holiday.

Dim olkApp, olkCalendar, olkEvent, objFSO, objFile, arrItem, strFilename
'Change the file name and path on the following line as needed.
strFilename = "C:\eeTesting\Outlook.hol"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile(strFilename)
Set olkApp = CreateObject("Outlook.Application")
Set olkCalendar = olkApp.GetNamespace("MAPI").GetDefaultFolder(9)
Do While Not objFile.AtEndOfStream
    arrItem = Split(objFile.ReadLine, ",")
    Set olkEvent = olkApp.CreateItem(1)
    olkEvent.Subject = arrItem(0)
    olkEvent.Start = arrItem(1)
    olkEvent.AllDayEvent = True
    olkEvent.ReminderSet = False
    olkEvent.Display
Loop
Set olkEvent = Nothing
Set olkCalendar = Nothing
Set olkApp = Nothing
objFile.Close
Set objFile = Nothing
Set objFSO = Nothing
WScript.Echo "Holidays Added"

Open in new window

0
 

Author Comment

by:jpeezus
ID: 37731108
BlueDevilFan

Awesome I will give that a go early next week. I apologize for the late response i had a SQL issue that took Sharepoint that took priority but i will give this script a run next week and let you know how it goes. Thanks
0
 

Author Comment

by:jpeezus
ID: 37731113
BlueDevilFan

Also if i did want to add permission in the script where would i add that at?
0
 
LVL 76

Expert Comment

by:David Lee
ID: 37731850
No worries.  What kind of permission are we talking about?
0
 

Author Comment

by:jpeezus
ID: 37732451
For example if the person I delegate to update the holiday calendar and other company info doesn't have calendar permissions company wide. Can the script be configured to run with added permissions for an account that has company wide calendar rights for everyone in my Exchange organization? If not its no biggie
0
 

Author Comment

by:jpeezus
ID: 37738206
BlueDevilFan

For example if the person I delegate to update the holiday calendar and other company info doesn't have calendar permissions company wide. Can the script be configured to run with added permissions for an account that has company wide calendar rights for everyone in my Exchange organization? If not its no biggie
0
 
LVL 76

Expert Comment

by:David Lee
ID: 37741519
The holiday file is just that, a file.  There aren't any permissions involved (i.e. Outlook has no provision for permissions when it comes to adding holidays).  I don't know what "other company info" means in this context.  The script just automates the process of adding holidays, it doesn't deal with any other kind of information.  You could of course place the holiday file and/or the script in a location that's protected by file/folder permissions and control who can update it the file and/or run the script.  That has nothing to do with Outlook though.
0
 

Author Comment

by:jpeezus
ID: 37748657
BlueDevilFan

Sounds great i will give it a run and come back and aware your points soon. Thank you!!!
0
 
LVL 76

Expert Comment

by:David Lee
ID: 37748661
You're welcome.
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
I don't pretend to be an expert at this, but I have found a few things that are useful. I hope that sharing them here will help others, so they will not have to face some rather hard choices. Since I felt this to be a topic of enough importance and…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

670 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