Skip to content Matt's Blog
Matt's Blog

The musings of an IT professional

Matt's Blog

The musings of an IT professional

  • Search for:

Who needs logon scripts any more?

  • Home   /  IT   /  
  • Who needs logon scripts any more?
mattywhi IT GPO, Group Policy, Login Script, Microsoft

Who needs logon scripts any more?

I realise this is has been around for a while now but until a few weeks ago I never really appreciated the Group Policy Preferences and the simplicity they offer.

Back in the days of Windows NT, Server 2000 and Server 2003 server administrators would create login scripts to perform a number of commands such as mapping network drives, installing printers, creating shortcuts and folders… I could go on but you get the idea. In Server 2008 Microsoft introduced the Group Policy Preferences to allow you to use Group Policy to natively configure a whole host of setting in Group Policy that would otherwise be a number of lines of batch/kix/vb script.

As you can see from the image to the left there are a vast number of options that can be configured for a user when they login.  For most of the items there are four options: Create, Delete, Update and Replace which will let you make changes to the Drive Mappings, Folders etc. The difference between Update and Replace can vary from item to item but my general understanding is that the Update will attempt to modify the existing item to match what is in the Preference whereas the Replace option will remove what is there and recreate the new object (smilar to a net use P: /DELETE /Y followed by net use P: \ServerUsers%USERNAME%)

Another benefit is that in a single GPO you can define a number of different Preferences and then filter these around Group Membership.

This should all work Out of the Box with Windows Vista and above so for any legacy clients and servers (Windows XP, Server 2003) you will need to download the appropriate updates from Microsoft http://support.microsoft.com/kb/943729.

All in all this should save time and administrative overhead when they are fully adopted. The only problem is getting the legacy scripts switched over to the new Preferences.

Share this:

  • Tweet
  • Print
  • WhatsApp
  • Email

Search the blog

Recent Posts

  • Deploy custom fonts to Intune managed devices
  • Intune: Automatically set timezone on new device build
  • Mapping legacy files shares for Azure AD joined devices
  • Hello world
  • Remove additional languages from Windows 10 after 1803 upgrade

Recent Comments

  • Patrick on Mapping legacy files shares for Azure AD joined devices
  • Stefan Jagger on Mapping legacy files shares for Azure AD joined devices
  • Stefan Jagger on Mapping legacy files shares for Azure AD joined devices
  • Stefan Jagger on Mapping legacy files shares for Azure AD joined devices
  • mattywhi on Mapping legacy files shares for Azure AD joined devices

Top Posts & Pages

  • Mapping legacy files shares for Azure AD joined devices
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Blog Stats

  • 49,577 hits

Spam Blocked

63,513 spam blocked by Akismet

RSS Feeds

RSS Feed RSS - Posts

RSS Feed RSS - Comments

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 305 other subscribers.

Copyright © 2022 Matt's Blog | Powered by Specia WordPress Theme

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.