Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Run VBScript on logoff? Server 2008

  • Please log in to reply
No replies to this topic

#1 mattbirk


  • Members
  • 106 posts
  • Gender:Male
  • Location:Chicago, IL
  • Local time:06:40 AM

Posted 23 November 2011 - 07:00 PM

I have been trying to run a VBScript on logoff, it is to run SyncToy 2.1 to backup their PST file to their network drive. The script works just fine, when I double click it when I am logged in it does what it's supposed to do, but just cannot get it to run and I have it setup in Group Policy, but I guess not correctly. In Group Policy Management, I set the default domain policy by going to User Policies>Windows Settings>Scripts(Logon/logoff) and pointed it to the VBScript. I tried without adding anything for the parameters when asked, and also added the -R parameter since that is run in the script, but no luck. I have also added domain users to the security filers to the GPO applies to them...

Any suggestions or ideas?

EDIT: Script is below, which was downloaded from the SyncToy from Microsoft website, and like I said works fine when manually executed.

strJobName = "outlook_express"
strCommandLine = chr(34) & "c:\Program Files\SyncToy 2.1\SyncToyCmd.exe" & chr(34) & " -R" & chr(34) & strJobName
Set objWshShell = WScript.CreateObject("WScript.Shell")

Edited by mattbirk, 23 November 2011 - 07:18 PM.

BC AdBot (Login to Remove)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users