Login script not mapping drives for users

I am in the process of configuring a new Windows 2008 terminal server in an existing Windows 2003 domain.  The TS is installed on a member server running Windows Server 2008 SP2.  The problem is that the domain login script (set in group policy) does not seem to be working for the users.  
I have a special TS group policy for the new terminal server and have enabled loopback processing on the default domain policy. The only setting configured in the TS policy is the location of the user's terminal server roaming profile. This seems to be working.  Other than the login script, other elements of the domain-level group policy, such as folder redirection, seem to be working. When I run the GP result tool on the terminal server, it shows all of the appropriate group policies from both the TS policy and the domain-level policy, including the login script.  This login script is vital, since it does drive mapping for a bunch of resources on the domain that users need to run certain programs.  The odd thing is that the login script runs for the Administrator account, which uses a separate group policy that has inheritance blocked.
Any help would be appreciated!
Laurie

I realize this is old, but for anyone who comes here after me, here goes.  What i found, is that instead of running a vbs script to map the drives, i run a vbs script to get the parameters i need, then i run a batch file from the vbs and pass it the
parameters.  For some reason, when the logon script is run as a batch file, all of the drives map, even for users who are local admins.  It seems to run in the users current context, unlike a vbs script.  Here is an example :
' maps a shared documents folder "S:/" to the same folder as the OU that the user is in.
Set objSysInfo = CreateObject("ADSystemInfo")
strUser = objSysInfo.UserName
Set objUser = GetObject("LDAP://" & strUser)
strUserName = objUser.samAccountName
strOUPath = objUser.Parent
arrContainers = Split(strOUPath, ",")
arrOU = Split(arrContainers(0), "=")
strOU = arrOU(1)
Set objShell = CreateObject("WScript.Shell")
objShell.Run "\\domainname\NETLOGON\Login.bat """ & strOU & """", , TRUE
And the batch file takes the parameters like so :
:: Initialize variables
set parentOU=%~1
:: Delete all known shares
net use s: /delete
:: Map all known shares
net use S: "\\domainname\mainshare\%parentOU%" /persistent:yes
Make sure to use quotes around the variable in the vbs file, or your batch file will see it as two parameters.  Then make sure to use %~1 as the variable in the batch file to remove the quotes from the parameter that is passed.

Similar Messages

  • Login scripts not running with AnyConnect NAM and ISE 1.2

    I am using AnyConnect 3.1 NAM as my 802.1x supplicant for ISE 1.2.  When users log in with EAP Chaining (User and Machine Auth), the login script seems hit or miss on if it runs to map their drives.  If I uninstall the NAM client, they map drives every time.  I would think that running a login script to map drives is a common scenario and I was wondering if anyone else using AnyConnect NAM was having similar issues or how they were dealing with it.

    I have the same issue and I solve the issue with change these parameters.
    1.- You must change on configuration profile "before user logon". I have 5 seconds
    2.- You must change on configuration profile  "port authentication Exception policy" and you must enable checkbox "enable port exceptions" and select "allow data traffic before authentication"
    3.- You must enable in the option of interface Ethernet Intel on PC "Wait for link" this option It's in "configured advanced of Intel. You must select "on" in this option.
    4.- (this recommendation it was by Cisco) 
    Active Direct GPO has a setting "Computer Configuration\Administrative
    Templates\System\Logon\ Always wait for the network at computer startup and logon" that
    can be enabled to make the logon scripts wait till 802.1x authentication is completed.
    With those changes the logon script run fine.
    Regards
    David.

  • List mapped drives for all users

    Is there a way to list all mapped drives for every user  in the domain? I'd like to export it out to csv.

    Hi Ctrl,
    We can use "net use" or Wmi query "Get-WmiObject Win32_MappedLogicalDisk " in powershell, however,  these methods has some limitations, whether the current user which is used to remote access has Administrative privileges
    to their computer can determine whether that returns anything or not.
    For example, we can use Powershell Remoting to query the mapped drive from remote computers, beacause the mapped drive is to a specified user, so we also need to provide the computername and the relevant credential.
    If you deployed the GPP Drive maps, you can refer to this script:
    Get all GPP Drive maps in a Domain
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Error: property is not set correctly for User Defined Fields.

    Hi Gurus,
    I am trying to define a new field Department of type Lookup. For this i have created a new field in user defined fields. But when i click on create user in web console it give me "property is not set correctly for User Defined Fields."
    I created a lookup field for department , but looks like i have to some kind of mapping. How can it be done?
    Thanks,
    sat

    Hi Kevin,
    I couldnt get it done. This is what I had done so far.
    Created Lookup.Users.Dept ( with code code=23 & decode=treasury)
    Added two field in xlwebadmin.properties & xlwebadmin_en.properties
    lookupfield.header.users.deptcode=Department code
    lookupfield.header.users.deptname=Department name
    In my lookfield properties in
    column caption=Department code,Department name
    Column query= Not sure what to give? here
    Thanks,
    sat

  • My Windows 7 Ultimate {32bit} does not install driver for my LG HDD HXD5 320GB

    My windows 7 does not install driver for my LG EXTERNAL HDD HXD5 320GB & its attached using a USB.
    It works perfectly on Other computers having Windows 7 & Windows XP & Windows Vista, just doesn't work on mines.
    I have had internet connected when it was installing hence it got the opportunity to search Windows Update for it but it fails :(
    It works even on my computer ( I have DUAL OS) on windows XP SP3 but i need it to work in Windows 7.
    Please help Thanks :)
    & i have already tried tried the solution which was proposed for another topic in this forum on which it was to Uninstall the driver using Device Manager and unplug the HDD and attach again and let the computer detect and install it again, my computer
    does detect it but fails to install the drivers.
    My Computer has a 2GB of RAM & 2.40GHZ (32bit) with an Intel Core 2 Duo Processor and had come with Windows Vista Home Premium 32bit installed, & i upgraded to Windows 7 Ultimate 32 Bit which is completely updated to all the Updates that Microsoft
    had offered (using the built in Windows Update in Control Panel)
    I have got screen shots of it too.
    http://shumayal.fileave.com/HDD.zip
    PS: Same is the case with some of my USB Flash drives, but in their case they don't get detected at all but get in Windows XP SP3 (which is another OS on my pc) as well as on windows 7 and other OS on OTHER COMPUTERS but not mines in Windows 7.
    Thanks :)

    Hi,
    I recommend you try to update the BIOS and the motherboard chipset drivers for Windows 7 firstly.
    After that, please refresh the USB Stack:
    Control Panel – Device Manager – USB Serial Controllers – Right Click on EVERYTHING and UNINSTALL all except the category itself – Reboot
    . This refreshes the drive and the USB stack
    Then, right click on the LG EXTERNAL HDD HXD 5 320GB in Device Manager and select Update Driver Software.
    You may also try the Windows 7 built-in
    Hardware and Devices troubleshooter.
    Hope it can help you!
    Best Regards,
    Miya Yao
    This posting is provided "AS IS" with no warranties, and confers no rights. | Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial
    to other community members reading the thread.

  • Can not find driver for Thinkpad T500

    I can not find driver for Thinkpad T500? Could you please help me?
    Moderator edit: Matched Subject to content.

    Thanks to the folks at Kepware. I was able to get this working for CompactLogix L32E.
    Step 1: In NI OPC Server Create a new Channel. Channel Name can be whatever you want.
    Step 2: Device driver will be ControlLogix Ethernet.  You can also enable diagnostics if you want.
    Step 3: Network adapter. I used default setting.
    Step 4: Write only latest values.  Duty at 10. ( These are default settings and are recommended.)
    Step 5: Finish new Channel setup
    Step 6: Click on Icon to create new device
    Step 7: Device Name can be whatever you chose.
    Step 8: Select Device Model in this case CompactLogix 5300
    Step 9: Device ID For me was IP Address XXX.XXX.XXX.XXX,1,0    (Note the 1 directs path to backplane. The 0 to the slot where processor is)
    Step 9: Device timing.  Leave at defaults.
    Step 10: Auto demotion leave unchecked.
    Step 11: Leave at defaults Do not generate on startup Delete on create and allow subgroups
    Step 12: Port and watchdogs at default settings
    Step 13: Project options leave at default. (In my case I changed to short as that is what most of my tags were)
    Step 14: Create tagname from device.
    Step 14: Finish Device setup.
    You now have two options. 
    Option 1: Start creating tags as you need them. (This is what I did)
    Option 2: Right Click newly created device and select properities.  Then select database creation and click auto create.
    Go To Lookout  and create new driver. 
    Select OPC Client
    Server name will be from dropdown menu. National Instruments:NIOPCServers
    Click okay
    You should be done and smiling. 

  • 10.5.5 update hangs panic msg. can not find driver for 7,2,5 system dualG5

    Down loaded 10.5.5 and ran it, loaded software and rebooted on G5 Dual 2Ghz system.
    10.5.4 worked no problem.
    Got back panic saying can not find driver for platform 7,2,5
    Anybody know how to back this update back to 10.5.4?
    or fix this to get 10.5.5 working.
    Thanks

    I am experiencing something very similar. After downloading the update, it closes all app's and attempts to install. I've been looking at a stalled progress bar for 30 minutes.... No error messages yet, but my prospects don't look good. Any advice?

  • Part of login script not processing

    Running OES 11 with Windows 7 clients.
    I have a couple of drives that are not OES based. One is a NAS box
    and the other is a virtual appliance. I can manually execute the NET
    USE command on any Windows 7 PC in my office and map a drive letter to
    either unit. The NAS box works fine in my login script. Everyone
    company wide needs access to it, so the login script includes these
    two lines:
    @NET USE U: /DELETE
    @NET USE U: \\nas_box\path /PERSISTENT:NO
    Now I need to add the appliance. The net use command works fine
    manually for the appliance. Only a few specific people need access to
    it, so I created a group in eDirectory and added these lines to my
    login script
    IF MEMBER OF "appliance_group.my_org" THEN BEGIN
    @NET USE P: /DELETE
    @NET USE P: \\appliance\path /PERSISTENT:NO /USER:username password
    END
    The drive is not showing up. I'm stumped. I can't find any typos,
    the group exists and has the right members, and I can manually run the
    command and it works. So why wouldn't it run/map during the login
    script? How can I troubleshoot this?
    Thanks!
    Ken

    On 10/02/2014 15:58, KeN Etter wrote:
    > Running OES 11 with Windows 7 clients.
    >
    > I have a couple of drives that are not OES based. One is a NAS box
    > and the other is a virtual appliance. I can manually execute the NET
    > USE command on any Windows 7 PC in my office and map a drive letter to
    > either unit. The NAS box works fine in my login script. Everyone
    > company wide needs access to it, so the login script includes these
    > two lines:
    >
    > @NET USE U: /DELETE
    > @NET USE U: \\nas_box\path /PERSISTENT:NO
    >
    > Now I need to add the appliance. The net use command works fine
    > manually for the appliance. Only a few specific people need access to
    > it, so I created a group in eDirectory and added these lines to my
    > login script
    >
    > IF MEMBER OF "appliance_group.my_org" THEN BEGIN
    > @NET USE P: /DELETE
    > @NET USE P: \\appliance\path /PERSISTENT:NO /USER:username password
    > END
    >
    > The drive is not showing up. I'm stumped. I can't find any typos,
    > the group exists and has the right members, and I can manually run the
    > command and it works. So why wouldn't it run/map during the login
    > script? How can I troubleshoot this?
    TID 7014158[1] perhaps?
    HTH.
    [1] http://www.novell.com/support/kb/doc.php?id=7014158
    Simon
    Novell Knowledge Partner
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below. Thanks.

  • OC4J when started as Win Service does not map URL for analytics website

    Hi All,
    When OC4J is started as a console and user enters the URL http://server-1/analytics it is automatically mapped to URL http://bof-iclu-1/analytics/saw.dll?Dashboard and we get the dashboard login page displayed.
    Now I have created a Windows Service to Automatically start the OC4J serivce.
    When OC4J is started as a service and user enters the URL http://server-1/analytics it does not map to the Dashboard URL and we get the website cannot display the page. However entering the complete URL http://server-1/analytics/saw.dll?Dashboard the login page is displayed.
    I believe the issue is cause by the OC4J being started as a service and not as a console start.
    Any idea what the issue could be?
    Do I need to change any of the configuration xml files?
    Where do the configuration setting for website mapping and welcome files is mentioned in the Oc4j?
    Any help is greatly appreciated.
    Best Regards
    B

    This is not going to help but you shouldn't be using OC4J for anything other than development.

  • Error 8804 - not mapping drive

    Not sure I'm in the right forum but here goes:
    I suddenly have many clients unable to map drives to a particular server
    (blade2) via login scripts and get error codes 8884 and 8804. I cant
    connect by name but can by IP and after connecting once via ip and logging
    back in via client 4.92sp4 they get the mappings. I have checked DNS
    config and it looks good and they can resolve other servers, internet etc.
    Any ideas and if I am you think I'm in the wrong forum please point me
    where you think I should be.
    Thanks in advance
    Hazel

    Duplicate post (client32 forum). Please do not post a query in more than
    one forum at once, thank you.
    Andrew C Taubman
    Novell Support Forums Volunteer SysOp
    http://support.novell.com/forums
    (Sorry, support is not provided via e-mail)
    Opinions expressed above are not
    necessarily those of Novell Inc.

  • Open Files on Server 2012 - Why Do All Mapped Drives (and users) Show as Open

    Our office just installed Server 2012 (Standard).  We used to run Server 2003 Standard. 
    We have 3 shared/mapped folders on the server - and have 12 users mapped to those shared folders.
    When I go to Computer Management/Shared/Open files, it used to be empty if no users were currently using one of the shared folders (in Server 2003).   Now even if no users are currently using one of the mapped folders - most of the users
    are listed with the mapped drive reference. 
    Is this something new in Server 2012?
    I used to use this to determine exactly who was in a share if we had problems and needed to close that particular workstation.  Now with them all listed, I am wondering if things are not closing properly??
    Thank you for any insight you can provide!

    Thank you for your reply.  Now I notice that even though a workstation (Windows 7.0 Pro) has closed our Prosystem FX tax program, there will still be at least one file showing as "open"  for that program on Server 2012 even though the user has
    exited the program and we have rebooted the workstation.
    The tax program itself doesn't seem to "think" the files are open as it lets me do tasks that require all users to be out of the program.
    Just wondering why files that aren't open seem to show as open on Server 2012.  They did not do this with Server 2003 and XP workstations.  Or even with Server 2003 and Windows 7 Pro workstations.  Just when we changed to Server 2012 and have
    our Windows 7.0 workstations.
    Thank you again,
    Brenda

  • SQLloder scripts not getting generated for CLOBs

    I am trying to migrate MYSQL 3.23 database into Oracle 8.1.7 and after creating the Oracle model and after converting the MYSQL text datatype into CLOB of the Oracle model the SQLloader scripts is not getting generated for CLOB datatypes. I mean the scripts are getting created but there is no change in the script for CLOB datatype.
    The script generates the following for the table containing CLOB datatypes:
    mysqldump -h <HOST> -u <USERNAME> -p<PASSWORD> -T <DESTINATION_PATH> fields-terminated-by="<ec>" lines-terminated-by="<er>" test av_wbt_course
    Please let me know how to load data when the datatype is of CLOB ?

    I was able to resolve this issue by using OWM Oracle Migration instead of using offline method by sqlloader scripts.

  • Critical: Personal Time Zone not showing up for users

    Hi Experts,
    There's a issue that we are facing regarding time zones for users. Even  after maintaining Personal time zones of users in there SU01, users are not able to see data in the system as per there local time zone. It is still showing in the default time zone. Is there paramter that is to be maintained for putting personal time zone into effect.
    Regards
    Rasheed

    Hi Rasheed,
    Usually when Timezone customizations are performed, the display is only converted on the screen for the end user. The actual data in DB still refers to System time zone... This conversion (Display) is supported for only a few objects like Notifications, confirmations and orders... Usually objects like change documents, logs, archived data and workcenter data does not have this conversion functionality...
    In this case, i dont think we have timestamp in MB51 as its only posting dates that get logged... You can consider posting a query in MM forum to get answers on customizations but from a security standpoint i dont think we have any way to attain this requirement....
    ~Sri

  • Windows does not recognize driver for pci-4461

    Hello,I am currently running windows xp with labview 7.0 on my computer.  Recently trying purchased and trying to install PCI-4461 Audio Analyzer PC card.  I downloaded the latest driver 9.0.2 off the NI website.  After the install I verified the driver exist by using the Measurement & Automation tool.  However, window does not recognize any driver for the hardware. When I point it to the directory where the driver is "suppose" to exist, windows gives me an error message saying that the driver does not exist or is corrupted.  I've tried uninstalling and reinstalling several times. Has anyone ran into this problem and can give me some advise?  I know that the version on DAQmx 9.0.2 is not compatible with the version of labView I am running.  However it should not affect windows from locating and installing hardware. Thank you,Ruth

    Hi Ruth,
    Did you install the PCI-4461 card in your computer before or after you installed the DAQmx 9.0.2 drivers? It would be best to install the drivers first and then the card.  Windows XP will pop up the New Hardware Wizard, saying it detected new hardware.  Click Next, and then to Search for Drivers Automatically.  Do not try to navigate  and select the appropriate driver folder.  As long as the drivers are installed correctly Windows will be able to find the correct driver automatically.
    You can also remove the PCI-4461 card and try it in a different PCI slot.  This will cause the new hardware wizzard to appear on the next restart.
    Eric S.
    Eric S.
    AE Specialist | Global Support
    National Instruments

  • Login window not displaying list of users

    Hello, i work in a networked office environment, where we regularly sync our networked users to mobile accounts, using homesync.
    On most of our computers, the login window displays the admin account, guest account, other (for network login) and any users synced. However on some computers, it just displays the username/password dialogue. I've checked the login preferences - and "display login window as: list of users" is selected. Also this information is grayed out as though it can't be changed. Is there a rogue system preference file that's causing this to not work correctly? If so where is it, can i delete it, or modify it to fix this situation? thanks!

    I tried the commands you've listed. Upon checking the com.apple.loginwindow.plist files, I noticed that the changes ARE being made to the file, but loginwindow.app is flat-out ignoring the settings. As for the stuff I tried earlier:
    Boot into Single-User Mode
    /sbin/fsck -fy
    /sbin/mount -uw /
    cd /Library/Preferences
    rm com.apple.loginwindow.plist
    rm com.apple.windowserver.plist
    cd /Library/Caches
    rm -r *
    cd /System/Library
    rm Extensions.kextcache
    cd /System/Library/Caches
    rm -r *
    reboot
    ...and after this had no effect, I deleted the loginwindow plists listed above several times from the Finder to force loginwindow.app to regenerate them.
    It seems like my problem has evolved slightly since my first post. At first, changes made in the Accounts preference pane would have no effect on the contents of /Library/Preferences/com.apple.loginwindow.plist. Now, the changes ARE made in the file, but loginwindow.app does not heed them. Any ideas?

Maybe you are looking for

  • Safari quit unexpectedly 5.1.6 Mac OS X 10.7.4

    Safari crashes right away, does not even start-up.  Re-installed OS X twice, without erase.  Delete safari cache.  Process:     Safari [442] Path:        /Applications/Safari.app/Contents/MacOS/Safari Identifier:  com.apple.Safari Version:     5.1.6

  • Can I buy a late 2013 macbook pro retina SSD from Apple?

    I bought a late 2013 model Macbook Pro with Retina 13 inch last week, This machine has 256GB PCIE SSD, today, I think it's not enough space for me. Can I buy an additional SSD from apple, and replace the one inside my MBP? How to buy?

  • HELP! Did I irrevocably fry my iPod?

    -or did I merely burn out a replaceable part? I docked my 3rd gen iPod into a powered-on speaker device designed for 4th gen iPods and it is now totally inert: -no response from controls; -no response/recognition when connected to my Mac or my Bose S

  • Asset Panel DW MX

    Hi, I'm using Dreamweaver MX and I am trying to remove assets from the Asset Panel. I've deleted the files on my hard drive and I then tried doing a "Manual Cache" and a "Refresh Site List". As per the help files I did "Control-click(Windows) in the

  • Disable Status Manager Approval

    I Have the Task Status Manager Approval set to disabled but the person who published the project is seeing task approvals in the Approval Center.  Is this the designed behavior? The behavior I want is when someone submits their timesheet, I want it t