[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 801
  • Last Modified:

Script to run Outlooke.exe /importnk2

We recently upgraded our version of Office to 2010.  I need to write a script that my end users can click on to import the nk2 files into the new Outlook 2010 format.

The reason for a script is we are in a Xenapp environment and I don't want my users to have to access a command prompt on their own.
0
tolsonkra
Asked:
tolsonkra
  • 2
1 Solution
 
morganmceCommented:
Would something like this do you? Straight forward enough - I haven't tried it in a server environment, but appears fine on a Windows 7 PC.

 
set objShell = CreateObject ("WScript.Shell")
objShell.Run "outlook /importNK2"

Open in new window


Just save it as a VBS and create the relevant shortcut!

Hopefully this helps!
0
 
tolsonkraAuthor Commented:
My office is located at D:\Program Files (x86)\Microsoft Office\Office14

How do I make the script know that.

Sorry I am not great at scripting.

Right now when I run the above cmd I get a run window open.
0
 
tolsonkraAuthor Commented:
I didn't realize I needed to put the vbs in each Office directory on each server.  But once I did that it worked like a charm thanks.
0

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now