Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

Windows 2003 logon scripts don't run

I use a batch file for a logon script to map network drives
When logging on to the network the logon script doesn't run. I have tried putting it in the NETLOGON share and using group policies. If I logon to the server locally or run the scripts on the workstation they work fine.
If I try and run them accross the net work I get the following:

"cmd.exe was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory"

The script is a simple batch file:

Net use g: \\server\share
Net use h: \\server\share

This works fine on Win NT
0
Ray2006
Asked:
Ray2006
1 Solution
 
canaliCommented:
Your script should run fine, also if u receive the message:
"cmd.exe was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory"

http://support.microsoft.com/?kbid=156276
http://www.jsifaq.com/SUBT/tip9800/rh9890.htm

Try your script locally on some workstation and look the result...

Gastone
0
 
Ray2006Author Commented:
Does the registry edit need to be done on the server or on every workstation.
Does this mean I have to run around to every computer on the network and add this entry to the registry??? Surely not.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
canaliCommented:
It's not necessary run around to add the entry, but the script will do the work 4 u
modify your logon script adding the  regedit line:

regedit /s %0\..\unc.reg
Net use g: \\server\share
Net use h: \\server\share


save the file as unc.reg and put where is your logon script:

REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
"DisableUNCCheck"=dword:00000001

Bye Gastone
0
 
Ray2006Author Commented:
I just realised the problem was only happening on the workstation I was using. I removed it from the domain and re-added it and the scripts run ok now.
0
 
DarthModCommented:
PAQed with points refunded (500)

DarthMod
Community Support Moderator
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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