How do you do....it? Thread, God Dam Logon Scripts in Technical; I am in the throws of finishing a network migration to some new servers as our old one is quite ...
-
14th February 2006, 06:12 PM #1
- Rep Power
- 0
God Dam Logon Scripts
I am in the throws of finishing a network migration to some new servers as our old one is quite frankly knackered. I have moved various different areas to different servers and I am now trying to get the logon script to map to the new locations.
The new log on script reads..........
@echo off
REM "Removal of existing drive mappings"
if exist B:\ net use B: /d /y
if exist F:\ net use f: /d /y
if exist G:\ net use g: /d /y
if exist H:\ net use h: /d /y
if exist I:\ net use i: /d /y
if exist J:\ net use j: /d /y
if exist K:\ net use k: /d /y
if exist L:\ net use l: /d /y
if exist M:\ net use m: /d /y
if exist N:\ net use n: /d /y
if exist O:\ net use o: /d /y
if exist P:\ net use p: /d /y
if exist Q:\ net use q: /d /y
if exist R:\ net use r: /d /y
if exist S:\ net use s: /d /y
Rem "Map new drives"
net use N: "\\Servername\Shared Applications"
net use O: "\\Servername\staff shared area"
net use B: "\\Servername\Windows Installer Fix"
net use P: "\\servername\Student Temporary Folder"
net use H: "\\Servername\sims"
When mapping O: it says it is already in use but it shouldnt be it should have been removed. All the other drives do get removed. The only way I can find of sorting this is restting everones profile. But I dont want to have to do that. To much hassle to many (L)users. Please help.
The existing L K and Q drives don't unmap but the B and N drives do.
The names of the servers have been changed to protect the innocent!!
-
-
IDG Tech News
-
14th February 2006, 06:50 PM #2
- Rep Power
- 0
Re: God Dam Logon Scripts
Right.
I have worked out if I delete the NTUSER.DAT file the problem goes away apart from the problem that it also removed god dam outlook profile.
Any other suggestions anyone.
Thanks
-
-
14th February 2006, 07:11 PM #3 Re: God Dam Logon Scripts
isnt it /delete and not /d
russ
-
-
14th February 2006, 07:14 PM #4 Re: God Dam Logon Scripts
and if you don't want them stored in profiles add /PERSISTENT:NO when you map the drives.
-
-
14th February 2006, 09:13 PM #5 Re: God Dam Logon Scripts
I dont know if it will help but
net use * /delete /yes
is a little simpler (and i would assume quicker to process). This will clear any existing mappings.
-
-
15th February 2006, 08:38 AM #6 Re: God Dam Logon Scripts
Another vote for /PERSISTENT:NO
-
-
15th February 2006, 09:05 AM #7 Re: God Dam Logon Scripts
net use * /delete /yes
now wish i had known that pass two days been creating a server network with out the server for friend i.e what they want is a 2003 server but they havnt got it so trying to put something together for them on a peer to peer network for them...
russ
-
-
15th February 2006, 09:05 AM #8 Re: God Dam Logon Scripts
You could also try using VBScript to remove the mappings and remake them. In theory it shouldn't be any different but you know what theory did...
-
-
15th February 2006, 09:25 AM #9 Re: God Dam Logon Scripts
As someone once said, "In theory, practice and theory should be the same. But in practice, they're not"
-
-
15th February 2006, 12:03 PM #10
- Rep Power
- 0
Re: God Dam Logon Scripts
Thanks all for youre suggestions.
I have tried the VBS route and it did not work. I did this last night as a last ditch attempt at killing the dam thing.
I have added the \persistant:no swith in to the script but the drives still remain mapped. I have a funny feeling this needed to be run the first time the script was used when people logged in.
Man so frustrating.
When will people invent the button which says just F****N work!!
-
-
15th February 2006, 12:54 PM #11 Re: God Dam Logon Scripts
I have one of these at home
http://www.iwantoneofthose.com/searc...uctCode=PANBUT
makes me feel a whole lot better!
-
-
15th February 2006, 12:59 PM #12 Re: God Dam Logon Scripts
I have a funny feeling this needed to be run the first time the script was used when people logged in.
This kind of thing is in the userprofile. Nuke the profiles on the machines with delprof.
-
-
15th February 2006, 01:19 PM #13
- Rep Power
- 0
Re: God Dam Logon Scripts
If I do that it nukes the email profile. Doesnt it also remove the my favourites folder too!!
-
-
15th February 2006, 02:05 PM #14 Re: God Dam Logon Scripts
um, shouldn't you be redirecting those?
-
-
15th February 2006, 03:28 PM #15 Re: God Dam Logon Scripts
Think I had this once had this too.
Using your fave reg editing tool (I prefer Resplendent Registrar) you can remove the corrisponding registry keys in the ntuser.dat from
ntuser.dat\Software\Microsoft\Windows NT\CurrentVersion\Network\Persistent Connections
Or maybe script the removal - not tried that one myself.
-
SHARE:
Similar Threads
-
By mmoseley in forum Windows
Replies: 1
Last Post: 24th December 2007, 12:46 AM
-
Replies: 2
Last Post: 12th September 2007, 06:23 PM
-
By woody in forum Windows Vista
Replies: 6
Last Post: 30th January 2007, 04:32 PM
-
By Kyle in forum How do you do....it?
Replies: 17
Last Post: 13th October 2006, 07:54 AM
-
By SpuffMonkey in forum Windows
Replies: 8
Last Post: 28th June 2006, 01:56 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules