Archive

Archive for the ‘Windows XP’ Category

How to create an Administrative shortcut.

February 1, 2010 µ Leave a comment

As most systems administrators know, you should log into your computer as a normal domain user who does not have elevated privileges in your Active Directory domain and only run administrative programs with elevated privileges when necessary. You could hold down shift, right click the shortcut, and select “Run as different user” to run a program as a user who has elevated privileges in your Active Directory domain, but there’s an easier, more efficient way to run programs that always require elevated privileges.

Either create a new shortcut or modify an existing shortcut to a program that you need to run with elevated privileges. In this example, I will be using a shortcut to an MMC console so that any snap-in I add to the MMC console will be run with elevated privileges.

Change the target to the following, modifying the username to a user in your domain with elevated privileges and the domain to match your domain name:

 C:\Windows\System32\runas.exe /user:administrator@mikefrobbins.com /env "C:\Windows\System32\mmc.exe" 

In this example, the MMC console will run as a user named administrator in the mikefrobbins.com domain. When launched, you will be prompted to enter the password for the administrator user:

The same example can be applied to any shortcut. Here is an example of a shortcut to the “SQL Server Management Studio” console:

Change the target on the “SQL Server Management Studio” console to:

 C:\Windows\System32\runas.exe /user:administrator@mikefrobbins.com /env "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe" 

Creating administrative shortcuts to programs you frequently use that require elevated privileges is easier and more efficient than always having to do a “Run as different user” and it also helps to keep your network more secure by not being tempted to log into your computer as a user with elevated privileges in your Active Directory domain.

µ

System Optimization Tool

January 20, 2010 µ Leave a comment

One of the system optimization tools I periodically run on my computers is CCleaner. It is a freeware program from www.ccleaner.com. During the installation of CCleaner, I take the following options, but this is more of a personal preference than a requirement:


When I run the actual program, I choose the options shown in the image on the right and I don’t make any changes to the Applications tab. For new users, I would recommend taking a look at the help section of the CCleaner website to determine the most appropriate options so you don’t remove anything you may need.

Once I’ve completed running the Cleaner portion of the program, I run the registry cleaner which is the second icon from the top from within the program, taking the default options. I run this portion of the program multiple times until there are no issues left to correct.

I’ve personally used CCleaner on multiple Windows XP, Windows Vista, and Windows 7 based computers including 64 bit versions of these operating systems, although their website states that it’s not fully compatible with Windows XP x64 and Windows Vista x64. For several years it has been one of the better freeware tools in my toolkit and I would recommend it to anyone looking for a system optimization tool.

µ