Wednesday, November 16, 2011

Scripting: Disable Network Location Wizard for Windows Vista-7-2008

Just set up custom CSS styling for <code> tags which should make it easier for me to post some of my favorite code snippets and scripts. Figured I'd start with a basic batch script I wrote to disable that annoying Network Location Wizard in Windows Vista-7-2008. Just copy and paste the following in your favorite text editor, save it with a .CMD or .BAT extension and run it:

@ECHO OFF ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: TITLE Disable Network Location Wizard for Windows Vista-7-2008 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ECHO Disable Network Location Wizard for Windows Vista-7-2008... ECHO. :: Create blank key "NewNetworkWindowOff" to disable Network Location Wizard for all users: REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" :: Uncomment "PAUSE" to view script results: :: ECHO. :: PAUSE
This script can also be added to an MDT task sequence to automate the application of this setting during a deployment.

No comments:

Post a Comment