+ Post New Thread
Results 1 to 4 of 4
Windows Thread, I'm dumb with scripting.... in Technical; I'm trying to create a number of mapped drives for our company's users. Being a total newbie to this, I ...
  1. #1

    Join Date
    Jul 2010
    Posts
    37
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    I'm dumb with scripting....

    I'm trying to create a number of mapped drives for our company's users. Being a total newbie to this, I decided to keep it as simple as possible with a batch file. Here's the code:
    Code:
    @echo off
    net use H: /delete
    MD \\ruffles\rnfile\Users\%USERNAME%
    net use H: \\ruffles\rnfile\Users\%USERNAME%
    
    net use I: /delete
    net use I: \\ruffles\rnfile\Working 
    
    net use J: /delete
    net use J: \\ruffles\rnfile\Reference
    
    net use K: /delete
    net use K: \\ruffles\rnfile\Music
    
    net use L: /delete
    net use L: \\ruffles\rnfile\Software 
    
    net use M: /delete
    net use M: \\ruffles\rnfile
    
    net use N: /delete
    
    net use O: /delete
    When users log into their machines, it takes 10 minutes from password input to getting a desktop (only a black screen in the middle). When I log into their machines, I get it right away. This seems to only be happening in our Windows 7 machines. Even log produces this error:
    The winlogon notification subscriber <GPClient> is taking a long time to handle notification even (startshell). - Error 6005

    The winlogon notification subscriber <GPClient> was unavailable to handle a notification event. - Error 6006
    Booting into safe mode works though....

  2. #2

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,095
    Thank Post
    857
    Thanked 2,680 Times in 2,273 Posts
    Blog Entries
    9
    Rep Power
    769
    Do your users have create permissions for the folder you are MDing to?

    It does not look like your script has issues, from the error it looks more like you have a corrupted policy or something. Sometimes the old ones used for XP can have weird settings and such left in them that break 7. You should be using WMI filtering and a seporate policy for 7 if you are not already for the most reliable implementation.

  3. #3

    Join Date
    Sep 2010
    Location
    Southern California
    Posts
    16
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Sounds like they do not have proper permissions to one or more shares. Additionally, if you have their Active Directory user accounts setup with a Home Directory and Drive Letter you could just use "NET USE /HOME" instead of "net use H: \\ruffles\rnfile\Users\%USERNAME%".

  4. #4

    nephilim's Avatar
    Join Date
    Nov 2008
    Location
    Dunstable
    Posts
    11,839
    Thank Post
    1,624
    Thanked 1,883 Times in 1,399 Posts
    Blog Entries
    2
    Rep Power
    427
    Net Use home is much better in this case if a drive letter and home drive is already set, however they also need create permissions for the script you're using.

    We had a similar issue on ours with our 2008R2 and W7 set up, once we set create permissions the problem went away and log in times dropped to around 20-30 seconds.

SHARE:
+ Post New Thread

Similar Threads

  1. [Video] Dumb cheerleaders
    By mattx in forum Jokes/Interweb Things
    Replies: 15
    Last Post: 19th December 2008, 08:14 AM
  2. dumb britain
    By torledo in forum General Chat
    Replies: 12
    Last Post: 11th February 2008, 09:28 AM
  3. this might look dumb but what is bett
    By callumtuckey in forum BETT 2014
    Replies: 26
    Last Post: 12th June 2007, 08:57 PM
  4. Really Dumb Question Time
    By richard in forum Wireless Networks
    Replies: 15
    Last Post: 4th August 2006, 12:47 PM
  5. Really dumb wireless question
    By richard in forum Wireless Networks
    Replies: 11
    Last Post: 14th February 2006, 11:37 AM

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
  •