+ Post New Thread
Results 1 to 15 of 15
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 ...
  1. #1

    Join Date
    Aug 2005
    Location
    Farnborough, Hants, England
    Posts
    43
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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!!

  2. #2

    Join Date
    Aug 2005
    Location
    Farnborough, Hants, England
    Posts
    43
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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

  3. #3

    russdev's Avatar
    Join Date
    Jun 2005
    Location
    Leicestershire
    Posts
    6,985
    Thank Post
    735
    Thanked 559 Times in 374 Posts
    Blog Entries
    3
    Rep Power
    206

    Re: God Dam Logon Scripts

    isnt it /delete and not /d

    russ

  4. #4
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,505
    Thank Post
    10
    Thanked 508 Times in 445 Posts
    Rep Power
    116

    Re: God Dam Logon Scripts

    and if you don't want them stored in profiles add /PERSISTENT:NO when you map the drives.

  5. #5

    Join Date
    Jun 2005
    Posts
    223
    Thank Post
    6
    Thanked 8 Times in 8 Posts
    Rep Power
    31

    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.

  6. #6
    Guest

    Re: God Dam Logon Scripts

    Another vote for /PERSISTENT:NO

  7. #7

    russdev's Avatar
    Join Date
    Jun 2005
    Location
    Leicestershire
    Posts
    6,985
    Thank Post
    735
    Thanked 559 Times in 374 Posts
    Blog Entries
    3
    Rep Power
    206

    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

  8. #8

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    Boston, MA
    Posts
    7,601
    Thank Post
    110
    Thanked 771 Times in 599 Posts
    Rep Power
    183

    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...

  9. #9

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,422
    Thank Post
    645
    Thanked 967 Times in 667 Posts
    Blog Entries
    2
    Rep Power
    328

    Re: God Dam Logon Scripts

    As someone once said, "In theory, practice and theory should be the same. But in practice, they're not"

  10. #10

    Join Date
    Aug 2005
    Location
    Farnborough, Hants, England
    Posts
    43
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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!!

  11. #11

    Join Date
    Jun 2005
    Posts
    223
    Thank Post
    6
    Thanked 8 Times in 8 Posts
    Rep Power
    31

    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!

  12. #12

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    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.

  13. #13

    Join Date
    Aug 2005
    Location
    Farnborough, Hants, England
    Posts
    43
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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!!

  14. #14

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: God Dam Logon Scripts

    um, shouldn't you be redirecting those?

  15. #15
    steve's Avatar
    Join Date
    Oct 2005
    Location
    West Yorkshire
    Posts
    1,047
    Thank Post
    22
    Thanked 178 Times in 124 Posts
    Rep Power
    53

    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:
+ Post New Thread

Similar Threads

  1. Logon scripts
    By mmoseley in forum Windows
    Replies: 1
    Last Post: 24th December 2007, 12:46 AM
  2. Mac Logon Scripts
    By atfnet in forum Mac
    Replies: 2
    Last Post: 12th September 2007, 07:23 PM
  3. Vista isn't running logon scripts
    By woody in forum Windows Vista
    Replies: 6
    Last Post: 30th January 2007, 04:32 PM
  4. What do you use for your logon scripts.
    By Kyle in forum How do you do....it?
    Replies: 17
    Last Post: 13th October 2006, 08:54 AM
  5. Synchronous logon scripts - FFS!!!
    By SpuffMonkey in forum Windows
    Replies: 8
    Last Post: 28th June 2006, 02: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
  •