Link to home
Create AccountLog in
Avatar of storyconstruction
storyconstruction

asked on

Network drives keep disappearing

Hi

We have a number of network drives mapped to Shares on a DFSRoot using a batch file which runs each time the user logs on. Intermittently a number of these drives disconnect themselves and disappear from display within 'my computer'.  There seems no pattern to why these drives are disconnecting as it happens to different computers at different times of day. I have already tried editing the registry to turn off autodisconnect of network drives but this doesn't seem to have worked.

We are running Windows XP PCs on a Windows 2003 domain.

Can anybody please help?
Avatar of virtuatech
virtuatech
Flag of United States of America image

You might have to use /persistent:no or /p:no in your command.  Check:
http://www.ss64.com/nt/net_use.html
Avatar of storyconstruction
storyconstruction

ASKER

I already have the /persistent:yes switch enabled on the batch file. I have attached the code in the batch file
net use g: /d
net use i: /d
net use n: /d
net use o: /d
net use p: /d
net use r: /d
net use s: /d
net use t: /d
net use x: /d
net use w: /d
 
 
net use f: \\storyconstruct.local\dfsroot\HCUsers\%username% /persistent:yes
net use g: \\storyconstruct.local\dfsroot\common /persistent:yes
net use i: \\storyconstruct.local\dfsroot\SYS /persistent:yes
net use o: \\storyconstruct.local\dfsroot\Archive /persistent:yes
net use p: \\storyconstruct.local\dfsroot\Causeway /persistent:yes
net use r: \\storyconstruct.local\dfsroot\StoryRail /persistent:yes
net use x: \\storyconstruct.local\dfsroot\StoryHomes /persistent:yes
net use w: \\storyconstruct.local\dfsroot\StoryImages /persistent:yes
 
\\storyconstruct.local\netlogon\bginfo  \\storyconstruct.local\netlogon\config.bgi /timer:0
 
net config server /autodisconnect:-1
 
\\dcserver\ezaudit\ezstart.exe /auto

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of virtuatech
virtuatech
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer