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.

Photo

VBS script won't start up using AD, but works manually


  • Please log in to reply
1 reply to this topic

#1 Tomahawk_Ghost

Tomahawk_Ghost

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:05:05 AM

Posted 21 May 2010 - 10:10 AM

I wrote this vbs script to unmap and remap some network drives. I was going to implement it using AD. It didn't work. Browsing out to the scripts folder I can manually run it, but it won't run at log on. In the OU I'm going to User Configuration -> Windows Settings -> Scripts(Logon/Logoff).

Tried it the old way as well using the Logon Script in the user's properties sheet, Profile tab. As I said, I can browse out to it, run it, and everything is fine. It just won't run automatically.

Does anyone have an idea why?

Edited by Tomahawk_Ghost, 21 May 2010 - 11:23 AM.


BC AdBot (Login to Remove)

 


#2 Baltboy

Baltboy

    Bleepin' Flame Head


  • Members
  • 1,432 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Pennsylvania
  • Local time:06:05 AM

Posted 22 May 2010 - 09:10 AM

I always use .bat scripts to map and unmap drives. One note that I have found is that any mapped drives need to be unmapped at logoff using a seperate script to eliminate some pesky error messages. I assuming all of the clients are win2000 or higher. You could if worse comes to worse use a bat script to launch the vbs one.
Get your facts first, then you can distort them as you please.
Mark Twain




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users