Q&A Monday:How can I display computer information on my desktop?
Question:
I was visiting another data center and while given a glimpse of their servers, I saw on the desktops of their server had their server information. I’ve seen this at other companies, and with the large amount of physical and virtual servers I have in my data center, it would help me keep the server information viewable just by logging in.
Answer:
Good Question. I think one of the first things a new administrator to a job should do, if it’s not already done, is do this exact thing to a server. When you start out at a new job, the specs/ip addresses/OS Versions are hard to keep track of, so I do this exact thing. It helps me look at a server…and know what the type and specs are. So I set it up, so on the lower left of my screen I get something like this:
This is something that is actually very easy to set up. It’s a product called BgInfo from Sysinternals.com. Don’t worry it’s Free and quick to install and configure. (download).
- Download and Unzip the file
(NOTE: I downloaded the zip file to a folder I created in Progam Files) - I went into schedule tasks
- click “Add Schedule Task”
- Next
- Click Browse
- Browse to the programs folder or unzip locations and select the bginfo.exe
- Name it whatever you want and for now schedule it to run daily, click next
- We’re going to add other settings, so just click next
- Enter the running credentials
- Then click on “Open Advanced Properties for this task when I click finished” and click finish
- At the end of the RUN text section (after bginfo.exe in the path) add /timer:0
- Click Schedule Tab
- Click Advanced Click repeat task…and set it to whatever you interval you want…I did 10 minutes.
- Click OK
Now the program is set to run when someone logs in and will update at whatever interval you set. Then start the program for the first time, browsing to where the file was placed and click the bginfo.exe and you’ll get the options:
Here you can select what the program displays and what font and size it is displayed. I usually don’t use all the settings, I usually limit it to what I need to see on the servers. You can also choose where the information is displayed on the screen, as in lower corner or upper corner…or even centered.
——————————————————————————————–
If you have any questions that you want Jim to answer, from business servers to home computers, drop him a line at me@jimguckin.com, and he’ll try to answer your question. Check back every Monday for a new Question and Answer session, and check back Wednesday and Friday for other technical insights.
Blackberry Java Exception
A Blackberry was handed to me, that wouldn’t turn on the Bluetooth on the device. When I would click to turn it on…it would try and then uncheck the box and show me a red X. Going to the Bluetooth options or attempting to connect the Bluetooth would do nothing…I could click and click and nothing would happen. When I rebooted the device, the first message I would see was:
"Uncaught exception:java.lang.illegal argument exception"
I did some searching around the internet for the Bluetooth problems and I didn’t find anything of real use to me. Then I thought maybe these two issues (The Bluetooth and Java Exception) were the same thing. Though like a lot of searching around the internet, I found a couple different answers.
The first option had me pushing down the default and company policies from the Blackberry Enterprise Server down to the device and remove the battery and then see if that worked. Well it didn’t do it for me. So I decided to start to uninstall the applications to see if one of them was the cause…and it was a dead end…when restarted it popped up the same error. I went into the option and went to do a security wipe, and one of the options just let me do the programs and tried that…once again no success. Finally, I did a full security wipe:
1. From the home screen, press the Menu button.
2. Select Options.
3. Select Security Options.
4. Select Security Wipe.
5. Check all the items
6. Type blackberry in the box.
When it rebooted the message was gone and all I needed to do was to do the Blackberry Enterprise Activation and get the users information synced back up. Problem solved and all in about 2 hours…less next time around, when I can just wipe it and get it back.
Q&A Monday: Move Files to New Computer
Question:
Hi,
I have an XP SP3 setup that I’ve tweaked to perfection (for me at least) and would like to maintain those files and settings when I get a new PC.
Both machines have ASUS motherboards, the old with Intel Core 2 Duo E8400, the new with Intel i5. I have done some research into sysprep but it seems able to be used in a number of ways. For example, to deploy many copies of the same configuration. I just don’t know whether it can be used to migrate a single setup to a new hardware environment.
I suppose my question is:
What’s the easiest way to migrate the setup I have now, to the new machine?
Answer:
The quickest (and easiest in my opinion) is using the File and Settings Transfer Wizard. It’s done in two parts, one on the current PC and the other on the newer PC:
Step 1: Get the files and the settings from the old computer
On the old computer, click Start, then All Programs, then to Accessories, finally to System Tools, and then click Files and Settings Transfer Wizard.
In the Files and Settings Transfer Wizard dialog box, click Next, and then click Old Computer.
Click Next, and then select a transfer method, such as Floppy drive or other removable media.
Click Next, and then click the option that corresponds to the items that you want to transfer. For example, you can click Settings only, Files only, or Both files and settings.
Click Next two times, and then wait as the “Files and Settings Transfer Wizard” processes the items to transfer.
Click Finish.
Step 2: Transfer the files and the settings to the new computer
On the new computer, click Start, point to All Programs, point to Accessories, point to System Tools, and then click Files and Settings Transfer Wizard.
In the Files and Settings Transfer Wizard dialog box, click Next, and then click New Computer.
Click Next, and then click I don’t need the Wizard Disk. I have already collected my files and settings from my old computer.
Click Next, and then select a transfer method, such as Floppy drive or other removable media.
Note You must select the same transfer method that you selected on the old computer.
Click Next, and then wait as the “Files and Settings Transfer Wizard” processes the items to transfer.
Click Finish.
I’ve used this method many time with great sucess. I mostly used SysPrep if I plan to image the old machine and redeloy that image on the new system. This isn’t out of the question, but you would need to have an imaging software (like Symantec Ghost). Let me know if this helps.
——————————————————————————————–
If you have any questions that you want Jim to answer, from business servers to home computers, drop him a line at me@jimguckin.com, and he’ll try to answer your question. Check back every Monday for a new Question and Answer session, and check back Wednesday and Friday for other technical insights.
Helpful XP Registry Hacks – Part 2
I had a couple more registry hacks that I thought might be interesting, but not as useful as the first bunch. Since it is Friday and usually I have these things thought out, I’m going to throw more registry hacks at you…and maybe you’ll find them more useful than I do.
Change categories in the Control Panel
Windows XP’s Control Panel is broken down by category in the default Category view, but the group to which an item belongs is not always obvious. If you disagree with Microsoft’s assignments, you can switch them around. To assign a different category to an item, go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\{305CA226-D286-468e-B848-2B2E8E697B74} 2
Find the item you want to change and double-click it to bring up a dialog box. Change the item’s DWORD value to your preference. Use Table A as a guide (shown with decimal numbers, which is the way you should enter them).
Table A
Category DWORD value to set
Other Control Panel Options 0
Appearance and Themes 1
Printers and Other Hardware 2
Network and Internet Connections 3
Sounds, Speed, and Audio Devices 4
Performance and Maintenance 5
Date, Time, Language, and Regional Options 6
Accessibility Options 7
Add or Remove Programs 8
User Accounts 9
Sort menus alphabetically
When you install a new program for a user, it doesn’t find its place in the alphabetical Start menu hierarchy right away; it hangs out at the bottom for a little while. If your users employ the Classic Start menu, they can realphabetize it manually by right-clicking the taskbar and choosing Properties, clicking the Customize button next to the Classic Start Menu, and clicking the Sort button. With the Windows XP style of Start menu, however, you don’t have an equivalent button. To make Windows always alphabetize the list, remove the permissions from the Registry key that controls the sort order for the Start menu. To do so, go to:
# HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder
Choose Edit | Permissions and click the Advanced button. Deselect the Inherit From Parent The Permission Entries That Apply To Child Objects check box and then click Copy when the Security dialog box pops up. Click OK and clear the Full Control entry for your account and all security groups you are a member of. Leave only Read permission.
Change the desktop cleanup frequency
Through Display Properties (Desktop tab, Customize Desktop button, General tab), you can turn on and off a feature that runs the Desktop Cleanup Wizard every 60 days. You don’t have an option to set a different interval there, but you can change the interval in the Registry. To do so, go to:
# HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz
Change the Days Between Clean Up Value to some other number of days (in decimal format).
Use desktop patterns
Windows XP provides no direct support for the Patterns feature that was present in earlier versions of Windows, but the feature is still there. It’s just hidden in the Registry. To enable a pattern, first set None as the background in Display Properties. Then you need to find out the code for that pattern. To look up a code, go to:
# HKEY_CURRENT_USER\Control Panel\Patterns
A variety of patterns is listed, and each one has a Data value. Copy the value you want to the Clipboard. Then go to:
# HKEY_CURRENT_USER\Control Panel\Desktop
Add a string value called Pattern. Then paste the string from the clipboard in as its value. The new pattern will appear the next time you log on.
Delete the Files Stored On This Computer category in the My Computer window
In Windows XP, the My Computer window’s listing is broken down by categories: Hard Disk Drives, Devices With Removable Storage, and so on. One of these categories is Files Stored On This Computer, which appears at the top of the My Computer window. If a user doesn’t need it (and most folks don’t), you can get rid of it. To do so, go to:
# HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\Delegate Folders
Delete the {59031a47-3f72-44a7-89c55595fe6b30ee} subkey to remove the category.
Dell PowerVault NAS 8002801d error
Ok, so if you are reading this entry, then that means like me, you are administering a Dell PowerVault NAS error and when going to certain managment websites you got one of the following errors:
Persistent Images to Restore, error ‘8002801d’ ,Library not registered. /snapshots/psm_vr_list.asp, line 513
Volume Settings, error ‘8002801d’ ,Library not registered. /snapshots/psm_setup_list.asp, line 399
Persistent Images, error ‘8002801d’ ,Library not registered. ,/snapshots/psm_pi_list.asp, line 640
Now looking around the internet for the answer is really a hit or miss kind of way of solving this problem. I spent a good chunk of time trying to track down this problem, because I didn’t know what the server contained and what it was doing, so a reformat wasn’t the best option. Plus like in many IT senerios one of the RAID 5 Array’s disks have failed and didn’t want to put the stress on the other, possibly causing one of them to fail as well. So after exhaustive research I found the solution…it was so simple…that I spent a good time mad after it worked, because it was one of those kind of answers:
Start->Run
regsvr32 %systemroot%\system32\vbscript.dll
Start->Run
regsvr32 %systemroot%\system32\jscript.dll
Then it worked again and my ActiveArchives part of the NAS server worked again no problem. I don’t expect many people to run into this issue, but I did see others looking for a similar answer which is why I posted it here…that and if I run into this again…I want to save myself the stress, by making this note.
Q&A Monday: Finding Enabled Active Directory Users
Question:
We are looking at a couple different software packages for several processes in my company, though a lot of vendors are charging by active AD accounts. Is there a way to just find all enabled active directory accounts, without having to goto all OU’s and count them.
Answer:
I have been there many times, and I know that sorting through that information can be a headache. You are lucky there is a command line way to find out the enabled users in Active directory. Depending on how long your been the admin of the servers it might have been a command that you’ve used before.
Export to a Text File
DSQuery * -Filter “(&(sAMAccountType=805306368)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))” -Attr samAccountName -Limit 0 >EnabledAccount.txt
Export to a CSV
DSQuery * -Filter “(&(sAMAccountType=805306368)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))” -Attr samAccountName -Limit 0 >EnabledAccount.csv
You can change the EnabledAccount.csv(or .txt) to whatever you want. You want to remember that whatever directory you are in when in the command prompt, is where the file where be stored. (Note: Most of the time it’ll be C:\Documents and Settings\%UserAccount%\EnabledAccount.csv – where C: is your hard drive and %useraccount% is the user your currently logged on with.)
——————————————————————————————–
If you have any questions that you want Jim to answer, from business servers to home computers, drop him a line at me@jimguckin.com, and he’ll try to answer your question. Check back every Monday for a new Question and Answer session, and check back Wednesday and Friday for other technical insights.
Helpful XP Registry Hacks
Every-once in a while, someone asks me for neat little tricks or how to customize their computer. One of the things that I find fun to do, are registry hacks to make Windows XP do things that otherwise I couldn’t do. Also some of these things can be implemented as minor security measures or help you troubleshoot a problem. So below are five of the registry hacks I’ve used recently.
Create a hidden user account
The user accounts you’ve set up appear on the Welcome screen (another new feature in Windows XP) when you start up the PC. To hide one of the user accounts so that it doesn’t appear here, go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList
Right-click anywhere within the Registry Window and click New to create a new DWORD value with the name of the account to be hidden. Set the value to 0 (decimal). This account won’t be accessible when switching users with Fast User Switching; you’ll only be able to access it from the Log On To Windows dialog box. Keep in mind that it is not a totally hidden account; the account’s profile will appear in the Documents And Settings folder. Also, the account appears in Local Users And Groups when an administrator is logged on.
Prevent programs from loading at start-up
Remember back in the good old days of Windows 3.1 when you could open up the Win.ini file in a text editor and remove an item from the RUN= line to disable it from running at start up? With Windows 9x and above, the Win.ini file became less useful because 32-bit programs were set to run at start-up from within the Registry instead.
One way to selectively disable programs from loading at startup is to use MSCONFIG (from the Run command) to deselect certain items. Another way to remove them is to edit the Registry directly. Consider the following locations:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
for applications that start up for all users
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
for applications that start up when the current user logs on
Remove the entry for a program by right-clicking it and selecting Delete to prevent it from loading.
Erase the swap file at shutdown
You might be concerned about someone browsing your users’ swap files and gathering up little bits of their sensitive data. A remote possibility, to be sure, but it could happen. For that extra measure of security, go to:
# HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Memory Management
Set the ClearPageFileAtShutdown DWORD to 1. This will make shutdowns take longer, because it overwrites everything in the swap file with zeroes. Don’t turn this feature on unless you have a serious security threat.
Adjusting System Restore values
The new System Restore feature will automatically back up a snapshot of your system, once every 24 hours and will save this snapshot for 90 days. Now these values aren’t directly editable in the System Restore tab, but you can actually change them in the Registry. Go to:
# HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\SystemRestore
You’ll find all sorts of settings here. To change when the computer automatically created restore points, change the RPGlobalInterval setting. To how long a restore point is retained in days, change the RPLifeInterval setting.
System Restore time intervals are measured in seconds, not days, so you must convert the number of days you want into seconds. There are 86,400 seconds in a day, so multiply 86,400 by the number of days you want to determine the value. There are 3,600 seconds in an hour.
Create a right-click command prompt option
You can right-click a folder to get a list of actions you can apply to it. Here’s a way to modify a right-click menu that opens a command prompt window with the selected folder already selected. In Notepad (or your own text editor), type or copy and paste the following:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Folder\shell\Cmd Here]@=”Command &Prompt Here”
[HKEY_CLASSES-ROOT\Folder\shell\Cmd Here\command]@=”cmd.exe /k pushd %L”
This is simple, just name the file and add “.reg” at the end of the file. Then goto the location where you saved the file and double-click it and choose Yes to merge the file’s information into the Registry when prompted. You can delete the file if you are done with it, or save it elsewhere as the file doen’t need to stay there to run. Right-click any folder you want and you’ll see the CommandPrompt Here option.
Hope these help you make the changes to your Windows XP box, and make it work more like you want.
Q&A Wednesday: Screen Saver Group Policy
Since I for some reason thought that Monday was Wednesday, it only seems right for me to post Q&A Monday on Wednesday:
Question:
Hi
I am currently running Windows 2003 on my servers. I have two DC’s in my environment. Clients are running Windows XP. I have 5 OUs created for the varying users in the different departments in my organisation.
I created a GPO, going through AD – > Selecting the OU -> Add new GPO -> Called it screen saver
Enabled the Hide Screen Saver tab, Enabled Screen Saver, Password protect the screen saver and screen saver timeout 900 seconds. Performed the gpupdate command on the DC. However I left the system idle for 15 minutes and the system did not lock and the screen saver tab is still available. Am I missing a step. What is required for this to be activated.
Anwser:
This sounds like a mistake that I have made many times when I first started messing with Group Policy. I would check to make sure that your users are in the OU that the Group Policy Object is tied to. If they aren’t then your policy wont stick unless it’s the defualt domain policy. Once you confirm that, on the workstations run “gpupdate/force” (without the quotes) and that will force the XP workstations to look to the domain controller for the updated settings. Let me know if that helped you.
——————————————————————————————–
If you have any questions that you want Jim to answer, from business servers to home computers, drop him a line at me@jimguckin.com, and he’ll try to answer your question. Check back every Monday for a new Question and Answer session, and check back Wednesday and Friday for other technical insights.
SysPrep for Windows Server 2008
c:\Windows\System32\sysprep\sysprep.exe
The experience is also streamlined considerably. Simply run sysprep.exe above and you are presented with:
Check the “Generalize” checkbox which regenerates system SID (you don’t want to forget this), then change the Shutdown Options to “Shutdown”, and click OK. The system then goes through the sysprep process al by itself and then shuts itself down.