Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script not working. 2

Status
Not open for further replies.

fpachon

MIS
Feb 9, 2006
22
US
Hi all, I have a login script that I have made and place in the sysvol\domain\scripts directory. This is where the Netlogon share is pointed to. The script is one line to map a drive which I have already shared. I have tried using just the script name in the login field and have also used the sysvol\domain\scripts before the name of the script but the script is not running. Can someone help me troubleshoot this problem unser win2003 server.

Thanks.
 
The specific drive is not being mapped. Is there an echo command that I can use to popup on the screen?

Thanks.
 
Wscript.Echo, Msgbox, WshShell.Popup (can specify time)
 
Thanks, that did the trick. I found the error and corrected it.
 
Time to start using GPOs for your scripts instead of Netlogon.

faq329-5798

I hope you find this post helpful.

Regards,

Mark
 
Um... MS only allows you to execute .bat and .cmd files from the "scripts" property of the user account. You would have to call a batch file that calls your .vbs file.

Good Luck!

PSC

Governments and corporations need people like you and me. We are samurai. The keyboard cowboys. And all those other people out there who have no idea what's going on are the cattle. Mooo! --Mr. The Plague, from the movie "Hackers
 
We run our VBScripts as VBScripts at logon all the time.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
we can but we use .cmd to error check on WSH problems...perhaps...
 
The recept of restriction to .bat or .cmd is a reminiscence of under legacy winNT. It is no longer a restriction long ago since win2k. Concretely how one designs the whole thing is of course up to users.
 
I saw that restriction recently in some MS documentation. It may still be there to encourage compatibility with mixed client networks. I generally call out all my VBS files from group policy or from cmd scripts.

PSC

Governments and corporations need people like you and me. We are samurai. The keyboard cowboys. And all those other people out there who have no idea what's going on are the cattle. Mooo! --Mr. The Plague, from the movie "Hackers
 
Thanks for all the great tips! I have just recently downloaded GPMC from MS which should help me create the policies I need to roll out. Can anyone recommend a good VB scripting book which can help me decipher some of these scripts in the forum. I know a little VB but not enough to do it without a scripting book.

Thanks.
 
get a book on ADSI and a book on WMI, i like the newriders ones
 
microsoft.com/scripting has the vbscript manual.

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top