Oct 12, 2009

specify i386 sourcepath in windows registry

Many times when we add/remove windows components, i386 source files are required. To avoid searching for CD and reading it, we can copy i386 files to hard disk.
Copy /i386 to your hard drive. (d:\source\i386). Now use regedit, and set sourcepath. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\SourcePath to d:\source\i386\.

Oct 6, 2009

runas admin in windows xp

Many a times we are required to run /install some applications on windows xp with administrative rights when already logged as normal user wirh limited rights. In that scenario we can use runas command as given below.

runas /user:computername\admin cmd

in this example the local machine name is "computername" and the local admistrator account is "admin"

You will then be asked to enter the admin (member of administrators group on local computer) password.

This will open up a new Command window running with local administrator priveleges - check the title bar of the command window.
To run Computer Management, for example to modify user rights, in this window type: compmgmt.msc

To run control panel, for example when you need to modify network adapter settings, type: control.exe