Grommit Posted December 17, 2007 Posted December 17, 2007 Hi Is there a way in a logon bat script to un-map mapped drives that have are to be mapped in the script later on ? Bit like Con2prt deleting all printers and then adding them.?
Grommit Posted December 17, 2007 Author Posted December 17, 2007 net use * /delete /yes So this would go at the start of the script ... and then the mappings further down ?
Jackd Posted December 17, 2007 Posted December 17, 2007 Yes the script that webman gave you would go at the top this would delete any network drives already mapped, then you would put the drives to map at the bottom of the script
Grommit Posted December 18, 2007 Author Posted December 18, 2007 Yes the script that webman gave you would go at the top this would delete any network drives already mapped, then you would put the drives to map at the bottom of the script Did that net use * /delete /yes time server net use W: \\SERVERNAME\FOLDER net use X: \\SERVERNAME\FOLDER1 I run this scrpit and when the user logs on there is no Drives except c and d... heh heh net use f: /delete /y
intrigue Posted December 18, 2007 Posted December 18, 2007 Do they have permissions with the shares? Have you tried running the batch script once they are logged on?
Grommit Posted January 27, 2008 Author Posted January 27, 2008 Did that net use * /delete /yes time server net use W: \\SERVERNAME\FOLDER net use X: \\SERVERNAME\FOLDER1 I run this scrpit and when the user logs on there is no Drives except c and d... heh heh net use f: /delete /y Well it sorta worked... used this command and it removed the mappings... BUT the mappings that shold have been thare and were is the script were not there ... my computer was empty! any ideas ? (Yes I did leave the mappings in unsed the delete line)
webman Posted January 27, 2008 Posted January 27, 2008 "time server" is not a command. Should that be this? net time \\server /set /yes
pallen Posted January 28, 2008 Posted January 28, 2008 Permissoins? Although I assume that if this was altering an existing script that all the drives where showing before?
Ryan Posted January 28, 2008 Posted January 28, 2008 @webman & Grommit Yup, net time \\servername /set /y
apeo Posted January 28, 2008 Posted January 28, 2008 Time command will halt the script as all it will ask for the new time.
Grommit Posted January 28, 2008 Author Posted January 28, 2008 "time server" is not a command. Should that be this? net time \\server /set /yes Ja Ja... I know... it was just here to show the lines :-)
apeo Posted January 28, 2008 Posted January 28, 2008 Ja Ja... I know... it was just here to show the lines :-) So have you fixed the problem then?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now