PTI.Hosting header
Technology News and Insight by Prestige Technologies, Inc.
  • Home
  • IT Blog
    • Security
    • New Technologies
    • Windows
    • Email
    • Nagios
    • Microsoft
  • Design & Marketing
  • Prestige Technologies News
  • Posts
  • Comments

Red X on Mapped Drive in Windows 7 and Windows Vista [SOLVED]

By
Brad
Published: October 25, 2010Posted in: IT Blog, WindowsTags: Mapped Drives, Microsoft, Red X, UAC, User Account Control, Vista, Windows 7
Red X on Mapped Drive in Windows 7 and Windows Vista [SOLVED]
  • Comments [1]
  • Digg it!
  • Facebook

I have been plagued with a problem on Windows 7 Professional (may also apply to Windows Vista) with Red X’s on mapped drives after a logoff/reboot. I spent days on the phone with Microsoft support about this issue, to no avail. The problem was this… When logging on to Windows, a Red X appears on all mapped drives. If you click on the drive to open it, it open fine. So what’s the problem? If you do not manually click on that drive to activate it, software that you use that depends on resources in that drive will not work (in my case, QuickBooks).

Red X on Mapped Drives

Red X on Mapped Drives

I have Googled my fingers blue and could not find a resolution… Until recently. Upon my research in the various forums across the net’, I noticed one common factor with everyone having these issues – drives being mapped by a logon script. The problem with Windows Vista and Windows 7 is with it’s added security. I found that if I turned off UAC (User Account Control), the drives would map perfectly and no Red X’s would appear. Unfortunately for us, not having the UAC active is not an option. Try temporarily disabling the UAC on your PC – if it works and your drives are being mapped by a logon script, then this solution will most likely work for you. I also found that even after I resolved the issue, when leaving the computer locked overnight I came back in and My Computer was riddled with Red X’s again – this was as the result of another issue… So it seems the problem was a combination of two issues. Microsoft created a KB article here that addresses the latter issue.

UAC - Never Notify

UAC - Never Notify

I then recreated the logon scripts and made them vbscripts instead of batch files. If you are not the administrator of you network and cannot add this script into your company’s SYSVOL\[domain name\Scripts folder, you can just as easily add it into you computers Startup folder. The below example is the script I found that works to solve this issue – copy it into notepad, modify it to your settings and save it as winlogon.vbs

On Error Resume Next
Set objNetwork = CreateObject("Wscript.Network")
Set colDrives = objNetwork.EnumNetworkDrives

For i = 0 to colDrives.Count-1 Step 2
    objNetwork.RemoveNetworkDrive colDrives.Item(i)
Next

objNetwork.MapNetworkDrive "L:", "\\myserver\share1"
objNetwork.MapNetworkDrive "N:", "\\myserver\share2"
objNetwork.MapNetworkDrive "M:", "\\myserver\share3"

objNetwork.AddWindowsPrinterConnection "\\myserver\printer1"

Set objWSHShell = Wscript.CreateObject("Wscript.Shell")
strLogonServer = objWSHShell.ExpandEnvironmentStrings("%LOGONSERVER%")
objNetwork.MapNetworkDrive "N:", strLogonServer & "\root"

Resources:

Mapped Drives Unavailable VIA Escalated Command Prompt

After you turn on User Account Control in Windows Vista, programs may be unable to access some network locations

Mapped Drive Connection to Network Share May Be Lost

  • Comments [1]
  • Digg it!
  • Facebook

About the Author

Brad Laszlo is a Systems Engineer for Prestige Technologies, reigning from Michigan. Brad is specialized in server configuration and manipulation using both Microsoft and Linux technologies, and considers himself to be a novice tech writer (and Bio writer). Brad can be reached at bradlaszlo[at]prestigetech[dot]com or by visiting http://www.prestigetech.com

1 Comment

  1. Hagi
    Posted November 11, 2011 at 3:26 AM

    Thank you so much Brad by providing this solution. Nothing Else I found on the internet worked for me. Bless you.

Leave a Reply




XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Cancel Reply

  • Controls
    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • Search
    • Featured
    • Latest
    • Comments
    • Tag Cloud
    • How to Monitor MSSQL with Nagios using check_mssql
      20 January 2012 1:43 PM | 4 Comments
    • Prestige is looking for a Senior .NET Developer
      16 December 2011 2:15 PM | No Comments
    • IE9 won’t render some pages – Adobe PostScript fonts to blame
      12 December 2011 1:06 PM | 1 Comment
    • Windows Update error 643 when updating Windows Internal Database Service Pack 4 for x64 Edition KB2463332
      08 November 2011 5:15 PM | 2 Comments
    • “The message was not sent because of an error” when sending in AOL webmail
      14 October 2011 1:14 PM | 7 Comments
    • How to Monitor MSSQL with Nagios using check_mssql
      20 January 2012 1:43 PM | 4 Comments
    • Prestige is looking for a Senior .NET Developer
      16 December 2011 2:15 PM | No Comments
    • IE9 won’t render some pages – Adobe PostScript fonts to blame
      12 December 2011 1:06 PM | 1 Comment
    • Windows Update error 643 when updating Windows Internal Database Service Pack 4 for x64 Edition KB2463332
      08 November 2011 5:15 PM | 2 Comments
    • “The message was not sent because of an error” when sending in AOL webmail
      14 October 2011 1:14 PM | 7 Comments
    • vcbk on Force Excel 2007/2010 to open in seperate window
    • AlexCh on How to Monitor MSSQL with Nagios using check_mssql
    • christian on IE9 won’t render some pages – Adobe PostScript fonts to blame
    • Jonathan on Force Excel 2007/2010 to open in seperate window
    • Ram on How to Monitor MSSQL with Nagios using check_mssql
    • EByers on Force Excel 2007/2010 to open in seperate window
    • Jason on Force Excel 2007/2010 to open in seperate window
    • Mike on “The message was not sent because of an error” when sending in AOL webmail
    /tmp Adobe Acrobat ADUC adware AOL beta beta testing browsers Business Contact Manager CentOS 5 Computer Virus CSF+LFD DirectAdmin DNS Excel 2007 Excel 2010 Exchange Exchange System Manager filesystem Google Google Public DNS graphic design HTML IE IE9 IP address Linux malware Mapped Drives Microsoft noexec nosuid Office 2007 Office 2010 Outlook 2010 PDFMaker Red X RSAT spyware UAC User Account Control Vista web design Windows 7 Word 2010
  • Copyright

    Copyright Technology News and Insight by Prestige Technologies, Inc.. All Rights Reserved.