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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group Policy Logon Script error

Status
Not open for further replies.

Duran

IS-IT--Management
Dec 4, 2001
183
GB
Hello,

I am having an error with a logon script I am using in my AD domain, the OS's are 2003 R2. To be honest this is more out of curiousity as the script still works, but I wonder how I could prevent the error. Ran asynchonously I can see the DOS box begin with...

'\\domainname.local\SysVol\domainname.local\Policies\{10F46A88-2426-4D2B}\User\Scripts\Logon'
CMD.EXE was started with the above path as the current directory
UNC paths are not supported. Defaulting to Windows directory.

It then goes on to do its job ok. I did try putting in the actual path begining with C: etc, but then it didnt work at all. The error bothers me even though its not causing a problem as such. Any idea's anyone?

Thank you for any replys.

Regards,
D.

I plug you in, dim the lights,
Electric Barbarella !
 
CMD tried to open in the current directory which is a UNC path as it doesn't support UNC it defaults to a local path for it's working directory.

What it the script doing, i take it it's a .bat file?
 
Hello, Big Trouble in Little China, must have seen that a thousand times. Thanks for your reply, yes its a .bat file. I tried a local path but it didnt work at all with that.

Regards,
D

I plug you in, dim the lights,
Electric Barbarella !
 
Ditch the batch file and go with VBScript. Refer to my FAQ for full example code and easy to add options.

faq329-5798

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top