Configure Auto Logon for Windows XP

 

You can configure Windows XP to autologon every time it’s booted up by configuring the following registry values. The registry import assumes that there’s a local account on the XP machine called User, and that account has no password.

Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon]
“DefaultUserName”=”User”
“AltDefaultUserName”=”Administrator”
“AutoAdminLogon”=”1”

Customize Windows 7 OEM Information

The following will show you how to customize the Windows 7 (and Windows Vista) OEM information to display information more specific to your environment. You’ll be able to add information like Manufacturer information, Support hours, Support phone number, and a Support website. (Oh yea, and add a custom logo image.)

The first thing you want to do (assuming you want to have your own logo image) is to create a 120 pixel by 120 pixel 24-bit bitmap image file. You’ll then need to place this file somewhere on the the local disk of the PC. I suggest creating a folder called OEM under the System32 folder and placing the image there with the name of OEMLogo.bmp. (C:WindowsSystem32OEM)

Now you need to open up the registry editor and go to HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionOEMInformation.

To add your custom logo, go tothe OEMInformation key create a new Reg_Z string value and name it Logo and give it a value of the path to the folder in which you put your image file.

To add a manufacturer name, create a Reg_Z string and name it Manufacturer and give it a value of whatever you would like the manufacturer to be.

To add support hours, create a Reg_Z string and name it SupportHours and give it a value of whatever you want your support hours to be.

To add a support phone number, create a Reg_Z string and name it SupportPhone and give it a value of whatever you want your support number to be.

To add a support website, create a Reg_Z string and name it SupportURL and give it a value of whatever your website is.

Look at the example image below if you’re not getting anywhere with the instructions above.

Here’s a quick registry import to.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionOEMInformation]
“Logo”=”C:WindowsSystem32OEMOEMLogo.bmp”
“Manufacturer”=”Company Name”
“SupportHours”=”24/7″
“SupportPhone”=”1-800-888-8888 ″
“SupportURL”=”www.intrntpirate.com

Managing the dns suffix search order with a script

Recently I ran into an issue where I needed to use a script to change the DNS Suffix search order on multiple Windows XP machines instead of using a GPO (which is the preferred way).

Prior to running the script, this is what you would see when you went to the DNS tab on the Advanced section of the properties for TCP/IP on your network adapter.

Here is what happens after you run the script.
Below is the VBS script. You can easily use ConfigMgr to deploy the script.

On Error Resume NextstrComputer = “.”
arrNewDNSSuffixSearchOrder = Array(“domain1.com”, “domain2.local”)

Set objWMIService = GetObject(“winmgmts:” _
& “{impersonationLevel=impersonate}!” & strComputer & “rootcimv2”)
Set colNicConfigs = objWMIService.ExecQuery _
(“SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True”)

For Each objNicConfig In colNicConfigs
strDNSHostName = objNicConfig.DNSHostName
Next

Set objNetworkSettings = _
objWMIService.Get(“Win32_NetworkAdapterConfiguration”)
intSetSuffixes = _
objNetworkSettings.SetDNSSuffixSearchOrder(arrNewDNSSuffixSearchOrder)

Set colNicConfigs = objWMIService.ExecQuery _
(“SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True”)
For Each objNicConfig In colNicConfigs Next

Set file associations with a script

So I’m ashamed to be presenting a scripting technique that doesn’t use PowerShell… but I don’t have the time right now to find out how to do it in PowerShell.

I’ve come across the need to set PDF files to open using Adobe Reader instead of another program. After looking into it, I found that I can create a batch file and use the assoc command, like so.

@echo off
assoc .pdf=AcroExch.Document
Simple as that.
Enjoy