I have a .bat file which is

net use z: \\....

to map network drive, and tested it with no problem under win xp

Then I try to put that as "startup script" under GPO (which is managed by 2k8 AD) -> Computer -> Policies -> Windows. After restarting computer, the script should be executed (I checked gpresult and the script is there), but the drive is not mounted. Any one have idea on what's happening ?

link|improve this question
feedback

4 Answers

up vote 5 down vote accepted

You should be using User Configuration > Windows Settings > Scripts > Logon

You are mapping the the drive using the 'computer user account' rather than the users own account.

Edit: You could also use the new Group Policy Preferences in 2K8 to map a drive ( make sure you have the Group Policy Client Side Extensions installed on the machines you want apply the policy to)

link|improve this answer
Also, bear in mind that if you go the logon script route and are logged-on as an "Administrator" the "drive" still won't be available once Explorer starts. See: serverfault.com/questions/63738/… – Evan Anderson Sep 25 '09 at 12:43
Good point, thx. My script is not working before coz my XP client havent installed the KB943729. – xandy Sep 28 '09 at 7:52
feedback

If it's running as a startup script the computer account will need permissions to the network share, which I'm guessing it doesn't have. You need to set it as a logon script instead unless the former is your desired behaviour.

link|improve this answer
feedback

This site has a decent list of working logon scripts and bruteforce logon scripts that could help you out, there is also further detail on how to implement them through gpo. Logon Scripts Site

link|improve this answer
feedback

Go to this site For mapping Network Drives using VB Script. : http://www.computerperformance.co.uk/Logon/Logon%5FHomeDir.htm

This helps if you have to use User Authentication aswell. And it seems you have a user Permission issue, so this should help you out.

I had the same problem a while back and got hold of that site(Will not let that site go either).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.