net use mapping not working in batch files but works in cmd
        Posted  
        
            by 
                Philippe
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Philippe
        
        
        
        Published on 2011-04-04T15:28:50Z
        Indexed on 
            2013/10/18
            3:58 UTC
        
        
        Read the original article
        Hit count: 483
        
Ok so here's the problem :
I've got users using logon script in the domain (username.bat). The script simply lists 4 or 5 (net use letter: \\SERVER\directory\). However, when they open their session, the logon script doesnt work and returns system error 53 or 67 for all of them. I tried running the script after the profile has loaded and evrything is running, and it still gives me the error.
I've then tried to run the same command in the cmd.exe. Everything mapped correctly. It also works fine if I map the drives using the "Tools > Map network drives" utility.
Is there anything that can prevent a command to work when ran in a batch-file but works correctly when typed in manually?
© Server Fault or respective owner