Home > Windows 7 > Windows 7 Drive Map Script Not Working

Windows 7 Drive Map Script Not Working


The EnableLinkedConnections=1 fixed all of this. This is giving me headaches as I have the logon.vbs calling some other scripts for users with administrative rights. And the reason it works fine on XP is because that code isn't run on XP, only on strOSVer >= 6.0″, i.e. As you'll probably have noticed, network drives connected in one context are not visible in the other. http://powerglobaldesigns.com/windows-7/windows-7-drive-mapping-script-not-working.html

If i log in as a standard user, member of only the domain users group, with no admin rights what so ever the script runs, but still fails to mount the All rights reserved. The reasons I'm writing all this up are that: Microsoft’s example script has some illegal character/line-wrap in there - copying and pasting it won't work! But somehow the drives didn't map, the solution was disabling the wifi network card (turn it off will also do it). https://community.spiceworks.com/topic/257086-win-7-client-not-mapping-network-drives-via-login-script

Network Drives Not Mapping Windows 7

This is in fact by design, and it's caused by the way UAC works. The libraries feature in windows 7 makes this particularly easy and once set up, I've found that most users prefer it to mapped drives 9after they get over their initial resistance) I'm betting your users are Administrators, and because you have User Account Control enabled the users' filtered token, under which Explorer runs, doesn't have access to the "drives" that were "mapped" About Advertising Privacy Terms Help Sitemap × Join millions of IT pros like you Log in to Spiceworks Reset community password Agree to Terms of Service Connect with Or Sign up

  1. I added code to the login script to wait for the userinit.exe process to disappear before the "net use" commands are run and that seems to work but I cannot explain
  2. Please try the request again.
  3. When you're a member of the Administrators group and you log in, your account is busted down to a non-privileged user by UAC.
  4. My particular problem was that I needed to launch a script with a space character in the path, e.g.: cscript.exe //nologo "\\domain.com\netlogon\departmentX users\logon.vbs" For me changing this path name was not an option as
  5. After several days of finding, the root cause of this issues due to the “Act as part of the operating system” configure for only domain users and administrator.

Do no ask me, why. Dim WshNetwork Set WshNetwork = WScript.CreateObject("WScript.Network") WshNetwork.MapNetworkDrive "g:", "\\\Saturn\data\" WshNetwork.MapNetworkDrive "k:", "\\\Saturn\stuff\" Works fine for Windows XP. User Configuration > Preferences > Windows Settings > Drive Maps –Safado Apr 27 '12 at 17:34 1 Also, I used to map drives through login scripts before I switched it Network Drives Not Mapping On Startup the launchapp.wsf which doesn't work for many users ( http://technet.microsoft.com/en-us/library/cc766208%28WS.10%29.aspx ) ii.

BTW a way I use to get the IP (though if you are happy with yours so be it) is: http://scripts.dragon-it.co.uk/links/batch-get-tcpip-subnet Can I suggest you simplify and try a script having So, the solution for me was to add the missing drive letter to the script (ie. it network drive mapping part should contain something like the following: Code: net use x: \\server\share You might need a net use x: /DELETE in a line before it if that computer script then, as that won't work for mapping the drives for the user?

I use the login script from time to time to make small changes to the HKEY_CURRENT_USER hive as this can not be done with any of my PSEXEC scripts. Rerun Logon Script does the script launch at all? What is the explanation for this visual proof of the sum of squares? Also have you considered using group policy to push down the changes you are trying to make to user hive, either using an existing template, or create one of your own

Enablelinkedconnections =1

that rules out anything else script wise. Shortly... Network Drives Not Mapping Windows 7 Your example could be adapted to look like this: Set shell = CreateObject("Wscript.Shell") shell.Run "net use g: \\Saturn\data", 7, True shell.Run "net use k: \\Saturn\stuff", 7, True (The '7' causes the Windows 7 Enablelinkedconnections Tim Reply ↓ Russ Collier May 9, 2012 at 12:24 I did not want to use the MS reg hack, but also I did not want to use Task Scheduler as

Any help appreciated! this contact form Microsoft Customer Support Microsoft Community Forums Windows Server TechCenter   Sign in United States (English) Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Indonesia (Bahasa)Italia (Italiano)România (Română)Türkiye (Türkçe)Россия (Русский)ישראל (עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 vBulletin Security provided by vBSecurity v2.1.0 Patch Level 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.Copyright EduGeek.netDigital Point modules: Sphinx-based search Follow EduGeek via current I haven't really tried it but I did play around with the idea of creating multiple tasks in the Task Scheduler for each objShell.Run command.. Users Network Drives Not Mapping

If that doesn’t work then you have a generic problem with your workstation security settings. Can you tie up these Laurent sequences? If I could just see the script run at login I think I could figure it out, but even though I have it set to be visible at login, it's not http://powerglobaldesigns.com/windows-7/windows-7-printer-script-not-working.html Here is an example : ' maps a shared documents folder "S:/" to the same folder as the OU that the user is in.

net use i: /delete) before mapping it. Login Script Not Running Windows 7 For instances, some would map, some wouldn't. [email protected] November 16, 2010 at 18:20 Patters, thanks again for all your help.

Not the answer you're looking for?

That is their domain login is a member of the local administrators group so they have elevated privileges. Run logon scripts synchronously Send PM 19th September 2009,07:30 PM #5 Bruce123 Join Date Oct 2008 Location Leeds Posts 285 Thank Post 23 Thanked 25 Times in 21 Posts Rep How about you download the scriptomatic tool here: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=09dfc342-648b-4119-b7eb-783b0f7d1178 and query some WMI objects, specifically say the running processes. Windows 10 Logon Script Not Running When the batch script would run it would get to that drive letter and not finish because it asks if that drive should stop being persistent.

Stephen October 22, 2010 at 19:29 Thanks Patters, removing the RemoteApp portion did the trick! It is available here: http://technet.microsoft.com/en-us/library/cc766208(WS.10).aspx Look for the section titled “Group Policy Scripts can fail due to User Account Control” and also Appendix A, which is the source code for launchapp.wsf. share|improve this answer answered Jan 3 '13 at 22:03 Gump3rs 1 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign http://powerglobaldesigns.com/windows-7/windows-7-shutdown-script-not-working.html You could also just publish your file server on DFS, i.e.