• Home
  • About 404TS
  • Contact

404 Tech Support

Where IT Help is Found

  • Articles
    • Code
    • Entertainment
    • Going Green
    • Hardware, Gadgets, and Products
    • Management
    • Network
    • News
    • Operating Systems
    • Security and Privacy
    • Software
    • System Administration
    • Talking Points
    • Tech Solutions
    • Web
    • Webmaster
  • Reviews
  • Media
    • Infographics
    • Videos
  • Tech Events
  • Tools
    • How do I find my IP address?
    • Browser and plugin tests
  • Get a Technical Consultation
You are here: Home / Articles / Tech Solutions / Logon scripts to map drives don’t work properly in Windows 8

Logon scripts to map drives don’t work properly in Windows 8

2012-11-20 by Jason

More testing of Windows 8 at my organization revealed another problem to troubleshoot. Our desktop management group policy automatically mapped a drive using Group Policy Preferences and mapped another through a logon script. The purpose of the logon script was to use local variables and map the drive directly to the folder with the user’s username. As it turns out, apparently logon scripts in Windows 8 behave a little differently than in Windows 7 where the script was working just fine.

The batch script was a straight forward ‘net use’ command to get the drive mapped with the %username% variable. A PowerShell script had the same results. The interesting trick was that the drive was actually getting mapped, it just wasn’t visible.

If you ran ‘net use’ in a command prompt, it would only list the one drive that used Group Policy Preferences and was visible under Computer. However, if you ran ‘net use’ in an elevated command prompt, it would list both drives as mapped, through Group Policy Preference and the logon script.

With logon scripts running at the highest privilege, apparently the drive was being mapped as administrator and not the regular user. There were two options, disable UAC completely (type ‘UAC’ in the Start Screen and slide the selector to the bottom) or use a Group Policy Preference instead to map the drive. Since I believe UAC has some value in protecting users from malware and software running without permission, I opted for the second route. I added to the already existing Group Policy a new preference for a new drive to be mapped.

Remember, you can find a list of System Defined Variables by pressing F3 when in the Drive properties. I set the Location of the drive to \ServerShare%LogonUser% and the drive mapping worked perfectly. I disabled the logon script and tested a few different instances on Windows 7 and Windows 8 to great success.

Filed Under: Tech Solutions

Trending

  • Tab Key Does Not Change List Level in Microsoft Word
    In Software, Tech Solutions
  • Using Meraki’s free MDM tools for the mobile devices in your household
    In Network, Security and Privacy
  • HP Discover 2011: HP – From Cloud To Devices In Your Hands And Revolutionizing Along The Way
    In Going Green, Hardware, Gadgets, and Products, News

Latest Media Posts

Find Out Where To Download SNES ROMs

Find Out Where To Download SNES ROMs

Multifunctional Video Conversion Tools – Wondershare Video Converter

Multifunctional Video Conversion Tools – Wondershare Video Converter

  • Popular
  • Latest
  • Today Week Month All
  • How to ‘Unblock’ multiple files at a time with PowerShell How to 'Unblock' multiple files at a time with PowerShell
  • Command line to take ownership and change permissions Command line to take ownership and change permissions
  • Increase IIS Private Memory Limit to improve WSUS availability Increase IIS Private Memory Limit to improve WSUS availability
  • SOLVED: “This modification is not allowed because the selection is locked.” SOLVED: "This modification is not allowed because the selection is locked."
  • Read the Event Logs on Windows Server Core Read the Event Logs on Windows Server Core
  • Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams
  • customer contactless payment for drink with mobile phon at cafe counter bar,seller coffee shop accept payment by mobile.new normal lifestyle concept The Latest Innovations In Payment Technology
  • How Digital Technology Brought the Rise of the CMO   How Digital Technology Brought the Rise of the CMO  
  • How to Purchase Cryptocurrencies? How to Purchase Cryptocurrencies?
  • Top 6 necessary aspects to consider when hiring Angular developers Top 6 necessary aspects to consider when hiring Angular developers
Ajax spinner

Elevator Pitch

404 Tech Support documents solutions to IT problems, shares worthwhile software and websites, and reviews hardware, consumer electronics, and technology-related books.

Subscribe to 404TS articles by email.

Recent Posts

  • Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams
  • The Latest Innovations In Payment Technology
  • How Digital Technology Brought the Rise of the CMO  

Search

FTC Disclaimer

404TechSupport is an Amazon.com affiliate; when you click on an Amazon link from 404TS, the site gets a cut of the proceeds from whatever you buy. This site also uses Skimlinks for smart monetization of other affiliate links.
Use of this site requires displaying and viewing ads as they are presented.

Copyright © 2023 · Magazine Pro Theme on Genesis Framework · WordPress · Log in