XP system several strokes to achieve user Switching

Source: Internet
Author: User
Tags administrator password

XP system allows the setting of multi-user to improve the security between users, so in the daily use of a computer often need to use the user Switching function, today, Small series will guide you how to switch users.

Use the Logout menu method

The most common way to switch users is through the Logout menu to access the user Switching function. Click start → logout, and in the Logout Windows dialog box that is open as shown in Figure 1, click the Toggle User button and the system retains the current session state. On the surface, this is no different from logging off the user, but using the toggle user method to keep the original user account open session (for example, you are downloading the software, the download task will continue after the user switches.) If you use logoff, the software download task will be forcibly closed.

For Fast User Switching

Obviously, the above method is quite cumbersome: users need to switch to the admin environment before logging back in. In fact, many times there is no need to labor it, we can use the Fast User Switching function, directly in the current user environment as an administrator to run the application!

Let's say that we are now in the normal user environment and would like to configure Norton Personal Security's trusting domain. However, because the current user's "Face (ie permissions)" is not big enough, the firewall configuration program refused to execute. We're here to sacrifice Fast User Switching this "precious DAO": Open "start → All programs →norton Internet Security", right-click the "Norton Internet Security" menu item, select the "Run as" menu item, the program will open the run identity dialog box, click the following user radio box, and then select an administrator account in the User Name Drop-down list box and enter the appropriate account password in the Password text box. Finally click the OK button, as shown in Figure 2. Next, the system will be the administrator to run the Norton Personal Security Agent configuration program!

Using the runas command

Familiar with Linux/unix's friends for SU This command must not unfamiliar, use this command users can be superuser, ordinary users freely between the "face". Windows 2000/XP now has a similar command--runas command. runas is a DOS command that runs only in the Windows 2000/xp DOS command window, allowing the user to run the specified tools and programs with other privileges, rather than the permissions provided by the current Logged-on user account. The syntax is as follows:

Runas [{/profile|/noprofile}] [/env] [/netonly] [/showtrustlevels] [/trustlevel]/user:useraccountname Program

The functions of each parameter are as follows:

/profile: Load user profile, is the default parameter of the runas command.

/no profile: Does not load user profiles, which can increase application loading speed, although some applications need to read a specific user's profile, 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 used for remote access only.

/showtrustlevels: Lists/trustlevel switch items.

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

/user:useraccountname: Specifies the name of the user account under which the program is run. For stand-alone users, you can use the following format:

/userusername@computername

or/user:computernameusername

The username should be replaced with a specific user account, ComputerName refers to the computer name.

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

/userusernme@domainname (Workgroupname)

or/user:domainname (workgroupname) UserName

DomainName (Workgroupname) here refers to the domain name (or the name of the workgroup) where the computer is located.

Program: Specifies the programs or commands that you want to run. You can use the RunAs command to start any application, MMC console project, or Control Panel project. Note here that not all items can be started with runas, such as the Printers folder and desktop items.

application Example:

To allow the runas command to "show" its extraordinary skill, here's an example. Suppose you want to run Group Policy with the administrator identity:

(1) Open the "Run" dialog box, enter "CMD" and return, open the DOS command window;

(2) at the command prompt, type "runas/profile/user:ourcomputeradministrator" mmc gpedit.msc "" and enter;

(3) The system will be prompted to enter the Administrator account password, note that this does not display the input account! As shown in Figure 3.

(4) If the account number, the password is correct, then the system will be the administrator to start the Group Policy Management program.

Tips for using:

Obviously, it can be tedious to enter a long list of commands each time you start the Group Policy manager. Fortunately, RunAs also provides the ability to create shortcuts, we simply create a shortcut on the desktop, you can save the trouble of each input command. Suppose we often run the Computer Management program as an administrator:

(1) Right-click the blank space on the desktop, click new → shortcut on the shortcut menu that pops up, and open the Create Shortcut Wizard dialog box.

(2) in the Project Location text box, type "runas.exe/user:ourcomputeradministrator" mmc%windir%system32compmgmt.msc "", then specify the name of the shortcut according to the ScreenTip, and then "OK".

(3) In the future, just double-click the shortcut, you can pop up a DOS command window, prompted to enter the administrator password, enter the correct password to start the "Computer Management" program.

Summary

The above three kinds of user switching methods are different. The Logout menu method is the most cumbersome, but also the most thorough method, while using the Run As dialog box and the runas command, although easy to use, but not all tasks can be done, such as setting up folder sharing.

One thing to note here: To ensure that you use Fast User Switching, you must make sure that the secondary Logon service and the Fast Users switching compatibility service are started, which is best set to start automatically with Windows. The methods for opening these two services are:

Double-click Control panel → administrative tools → services, and then locate the Fast User switching Compatibility service in the window. Then double-click the Open Service Properties dialog box, switch to the General tab, and select the Auto option in the Startup Type Drop-down list box. Then switch to the Dependencies tab to ensure that the dependent services shown below are set to run automatically

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.