' NAME: setLogonTo.vbs
'
' AUTHOR: Charles Wastell
' DATE : 7/24/2006
'
' Updates
'
' 7/24/06 - Initial Revision
'
' COMMENT: Changes the default Logon To at the Gina login box to the default domain.
' You can comment out lines 27 and 43 if you only have one domain to logon to.
'
'
'
' **********************************************************************************
' Variable Declarations
' **********************************************************************************
Dim defaultDomain, defaultAltDomain
Dim WshShell
' **********************************************************************************
' User Customizable Section
' **********************************************************************************
defaultDomain = "YOURDOMAIN"
defaultAltDomain = "YOURSECONDARYDOMAIN"
' **********************************************************************************
' Variable Initialization
' **********************************************************************************
Set WshShell = CreateObject("Wscript.Shell")
' **********************************************************************************
' Write Reg Keys
' **********************************************************************************
On Error Resume Next
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultDomainName", defaultDomain ,"REG_SZ"
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AltDefaultDomainName", defaultAltDomain , "REG_SZ"
WScript.Quit
Blog for information, notes, and other useful tidbits from an IT worker administering Windows Server, Server Core, Exchange, and System Center Configuration Manger ( SCCM ). With a nice thin layer of PowerShell tying it all together.
Monday, July 24, 2006
Logon Script to Set Windows Default Log on To Domain
Simple little Visual Basic script today. It writes the registry key to specify which Domain Windows will choose for displaying in the GINA Log On To drop down box. It allows you to specify two different choices, a primary and an alternate, but you can always comment out the alternate if you wish.
Thursday, July 20, 2006
Windows Command Line CDP Capture Utility
Cisco Discovery Packets (CDP) will give you a lot of valuable information if you can capture them: they will give you your IP, the switch your on, and the port on that switch you're connected to. When combined with a database that maps switch ports to datajack, you can directly locate where a computer is on your network.
The only problem is that capturing this little buggers is tough in Windows: CDPR will do it, as will Ethereal, but both require WinPcap to be installed. Luckily I found version of TCPDump for Windows thats built on the WinPCap SDK; this means the little 400k utility can capture CDP packets on a machine without any additional tools. You can get it from micoOLAP here. The manual page for WinDump (version of TCPDump that needs WinPCap ) can be found over here.
The final step is getting TCPDUMP to capture the CDP Packet. Command line we're using it "tcpdump -nn -v -s 1500 -c 1 ether[20:2] == 0x2000" (from another blog). It takes up to 60 seconds (depending on switch settings), but eventually pulls down the CDP Packet. I'll see if I can't wrangle up some VBS Login scripts to run it in a bit.
-Charles
The only problem is that capturing this little buggers is tough in Windows: CDPR will do it, as will Ethereal, but both require WinPcap to be installed. Luckily I found version of TCPDump for Windows thats built on the WinPCap SDK; this means the little 400k utility can capture CDP packets on a machine without any additional tools. You can get it from micoOLAP here. The manual page for WinDump (version of TCPDump that needs WinPCap ) can be found over here.
The final step is getting TCPDUMP to capture the CDP Packet. Command line we're using it "tcpdump -nn -v -s 1500 -c 1 ether[20:2] == 0x2000" (from another blog). It takes up to 60 seconds (depending on switch settings), but eventually pulls down the CDP Packet. I'll see if I can't wrangle up some VBS Login scripts to run it in a bit.
-Charles
Wednesday, July 12, 2006
Brother MFC-8440 Multifunction Windows Server 2003 Fax, Print, and Scanner Drivers
Brother International does not support their line of multifunction printers in Windows Server 2003. Well, they do support the print functions, but if you want to use the Fax or Scanner functions you are SOL. I would guess it has something to do with them offering a nice network fax and scanner driver as an optional but expensive accessory, but I digress. I wanted to share the Fax Machine off our Brother MFC-8440 printer with the rest of our IT Department, but being that it wouldn't work with 2k3, and XP doesn't allow you to share faxes.
So what I did was methodically combine the Windows XP Drivers with the Windows Server 2003 Drivers so that I was using the most up to date file versions, then edited the associated INF files so that it would install. After some tweaking and some wall to head interaction, it's working great and we can fax from any of the computers in our office using the wonderful Microsoft Fax Services. The driver files are available here: http://www.alwaysnetwork.com/wss/brother-mfc-8440.zip.
While editing the drivers, I think I have made the correct changes so that it will work with Vista, but I am unable to check as I don't have any Vista boxes laying around. Also be aware that these drivers, while tested on my systems here, come with no guarantee that they won't hose up your system and come with no warranty what so ever.
-Charles
So what I did was methodically combine the Windows XP Drivers with the Windows Server 2003 Drivers so that I was using the most up to date file versions, then edited the associated INF files so that it would install. After some tweaking and some wall to head interaction, it's working great and we can fax from any of the computers in our office using the wonderful Microsoft Fax Services. The driver files are available here: http://www.alwaysnetwork.com/wss/brother-mfc-8440.zip.
While editing the drivers, I think I have made the correct changes so that it will work with Vista, but I am unable to check as I don't have any Vista boxes laying around. Also be aware that these drivers, while tested on my systems here, come with no guarantee that they won't hose up your system and come with no warranty what so ever.
-Charles
Wednesday, July 05, 2006
Override Adobe Creative Suite 2 Minimum Requirements
Adobe Creative Suite 2 checks the system that you are installing it on in order to see if it meets the minimum requirements for running it. Of course it will run on systems that don't meet the minimum requirements, just not well. By default it wants at least 384 megs of RAM, 1024x768 screen resolution, and 1.5 GB of hard drive space: if you system doesn't meet these requirements it won't install, giving you some cryptic message about getting a better computer.We ran into issues where users "needed" to upgrade to CS2 from CS to resolve version errors between them and other departments.
To get CS2 to install we had to "edit" the requirements so that it would install on their machines. The process is to do this is relatively simple: copy the contents of CD1 to a directory on your PC. Open up the setup.ini file in the root directory in your favorite text editor. Under [Requirements] there are a list of 5 different types of checks that the setup file will do: RAM, Administrative Rights, OS, Screen Resolution and Hard Drive space. Simply edit the various values to a point sufficiently low enough for your computer. Our [Requirements] section is setup to allow installs on machines with 100 megs of RAM, 640x480x16bit screen resolution, and 1.5 GB of space on the drive. A copy of our requirement section is below. Once you have made the changes, simply save the ini file and burn the contents back to a CD. You can now use this to install off of rather then the original disk.
To get CS2 to install we had to "edit" the requirements so that it would install on their machines. The process is to do this is relatively simple: copy the contents of CD1 to a directory on your PC. Open up the setup.ini file in the root directory in your favorite text editor. Under [Requirements] there are a list of 5 different types of checks that the setup file will do: RAM, Administrative Rights, OS, Screen Resolution and Hard Drive space. Simply edit the various values to a point sufficiently low enough for your computer. Our [Requirements] section is setup to allow installs on machines with 100 megs of RAM, 640x480x16bit screen resolution, and 1.5 GB of space on the drive. A copy of our requirement section is below. Once you have made the changes, simply save the ini file and burn the contents back to a CD. You can now use this to install off of rather then the original disk.
[Requirements]
Requirement1Type=RamRequirement
Requirement1MsgFailure="$$$/ACS/ReqCheckFailureRam=The Adobe Creative Suite 2 needs at least 384 MB of RAM\ninstalled in your computer in order to run properly. Adding even more\nRAM will increase performance. Please add more RAM to your\ncomputer and then restart the installer.\n\nThe minimum system requirements for the Adobe Creative Suite are:\n\t- Windows 2000, XP\n\t- Pentium III processor or better\n\t- 3 GB of hard disk space\n\t- 384 MB of RAM\n\t- 1024x768, 16-bit color monitor"
Requirement1MsgSuccess=
Requirement1Value1=100
Requirement2Type=AdminRequirement
Requirement2MsgFailure="$$$/ACS/ReqCheckAdminFailure=Administrative privileges are required to install the Adobe Creative Suite 2.\n\nPlease quit the installer, log in as an administrator, and run the installer\nagain to continue installation."
Requirement2MsgSuccess=
Requirement3Type=OSRequirement
Requirement3MsgFailure="$$$/ACS/ReqCheckFailureOS=The Adobe Creative Suite 2 requires that at least Windows 2000\nor Windows XP be installed in order to run properly. Please upgrade\nyour operating system and then restart the installer.\n\nThe minimum system requirements for the Adobe Creative Suite are:\n\t- Windows 2000,XP\n\t- Pentium III Processor or better\n\t- 3 GB of hard disk space\n\t- 384 MB of RAM\n\t- 1024x768, 16-bit color monitor"
Requirement3MsgSuccess=
Requirement3Value1=5
Requirement4Type=ScreenRequirement
Requirement4MsgFailure="$$$/ACS/ReqCheckFailureScreen=The Adobe Creative Suite 2 needs your monitor to support a\nresolution of at least 1024x768 with 16-bit color in order to run\nproperly. Please connect a compatible display device to your computer\nand then restart the installer.\n\nThe minimum system requirements for the Adobe Creative Suite are:\n\t- Windows 2000,XP\n\t- Pentium III Processor or better\n\t- 3 GB of hard disk space\n\t- 384 MB of RAM\n\t- 1024x768, 16-bit color monitor"
Requirement4MsgSuccess=
Requirement4Value1=640
Requirement4Value2=480
Requirement4Value3=16
Requirement5Type=HardDiskSpaceReq
Requirement5MsgFailure="$$$/ACS/ReqCheckFailureMinFreeSpace=1.5 GB of space must exist on your startup disk to start installation\nof the Adobe Creative Suite 2. Please delete unneeded files to free\nup additional disk space and then restart the installer.\n\nThe minimum system requirements for the Adobe Creative Suite are:\n\t- Windows 2000,XP\n\t- Pentium III Processor or better\n\t- 3 GB of hard disk space\n\t- 384 MB of RAM\n\t- 1024x768, 16-bit color monitor"
Requirement5MsgSuccess=
Requirement5Value1=1536
Monday, July 03, 2006
RIS Welcome.OSC Featuring Vi Clippy (aka Vigor)
Everyone loves Clippy. And where better to have Clippy then on the Welcome screen for Remote Installation Services? With that in mind, below is the source code for using Vi Clippy in your Welcome.OSC file on your RIS server (it's under \RemoteInstall\OSChooser\ ). The Welcome.OSC template used to build Vi Clippy was from Server 2k3 SP1, but it should work on any RIS server.
Screen shot:
Download it here
Screen shot:
Source:
Download it here
Subscribe to:
Posts (Atom)