Windows XP system user switching cool trick

  

Users using Windows 2000/XP dual system, in daily work, it is best not to log in as an administrator group member, usually should log in as a normal user (members of the Users group) Because the accounts of the Users group cannot modify the system registry settings, operating system files or program files, it has innate immunity to viruses and Trojans! However, users cannot use applications that can only be executed by a system administrator.

What if you want to use all the features? Just use the "User Switch" function. Let's take Windows XP as an example to see how to use the fast user switching feature.

First, perform fast user switching

Use the fast user switching function to run the application as an administrator directly in the current user environment!

Suppose we are in the normal user environment and want to configure the trust domain of Norton Personal Security. However, because the current user's "face" (ie, permissions) is not large enough, the firewall configuration program refuses to execute. Let's come up with a quick user switch. "Block": Open “Start →All Programs & Rarr; Norton Internet Security", right-click on the "Norton Internet Security" menu item and select "Run Mode" Menu item, the program will open the "Run Identity" dialog box, click on the "The following users" box, and then select an administrator account in the "User Name" drop-down list box, and in the In the "Password" text box, enter the corresponding account password. Finally click the “OK” button. Next, the system will run Norton Personal Security's configuration program as an administrator!

Second, use “ logout & rdquo; menu method

The most common way to switch users is to access the user switching function through the “ logout & rdquo; menu. To do this, click on “Start →Logout”, in the Open “Logout Windows” dialog box, click the “Switch User” button, the system will retain the current session state. On the surface, this is no different from logging out users, but using the switch user method can keep the session opened by the original user account (for example, if you are in the process of downloading the software, the download task will continue after the user switch. If you use "Logout", then the software download task will be forcibly closed).

Third, use the Runas command

There is a su command in the Linux/UNIX system. With this command, users can freely perform "ld face" between super users and ordinary users. Now Windows 2000/XP has a similar command? ? Runas command. Runas is a DOS command that runs only in the Windows 2000/XP DOS command window. It allows the user to run specified tools and programs with other privileges instead of the permissions provided by the currently logged in user account. The syntax is as follows:

Runas [{/profile| /noprofile}] [/env] [/netonly] [/showtrustlevels] [/trustlevel] /user:UserAccountName program

The role of each parameter is as follows:

/profile: load user profile Is the default parameter of the Runas command.

/no profile: Does not load the user profile, which can improve the loading speed of the application, but because some applications need to read the configuration file of a specific user, it is not recommended to use this parameter.

/env: Specifies the network environment currently in use, not the user's local environment.

/netonly: Indicates that the specified user information is only used for remote access.

/showtrustlevels: Lists the /trustlevel switch.

/trustlevel: Specifies the authorization level at which the application runs.

/user:UserAccountName: Specifies the name of the user account under which the program will run. For stand-alone users, the following format can be used:

/user:UserName@ComputerName

or /user:ComputerNameSERNAME

USERNAME here should use a specific user account Instead, COMPUTERNAME refers to the computer name.

For domain or workgroup users, you can use the following format:

/USER:USERNME@DOMAINNAME(WORKGROUPNAME)

or /USER:DOMAINNAME(WORKGROUPNAME)SERNAME< Br>

The DOMAINNAME (WORKGROUPNAME) here refers to the domain name of the domain where the computer is located (or the name of the workgroup).

PROGRAM: Specify the program or command to run. You can use the RUNAS command to launch any application, MMC console project, or “control panel” project. It should be noted here that not all projects can be started with RUNAS, such as "Printers" folders and desktop items.

IV. Summary

The three user switching methods described above can be described as different. The logout menu method is the most cumbersome, but also the most thorough method; while using the "Run Identity" dialog box and the RUNAS command, although it is relatively simple to use, not all tasks can be completed, such as setting folder sharing.

Copyright © Windows knowledge All Rights Reserved