XP one-click to quickly complete system user Switching

Source: Internet
Author: User
Keywords Desktop nbsp; can other exe

&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Windows XP is all called the Windows operating system Experience edition. It's a Windows operating system released by Microsoft. It was issued on October 25, 2001, the original name is Whistler.

Microsoft initially released two editions, the home version and the Professional Edition (Professional). The home version of the consumer object is home users, Professional edition in the home version of the new business-oriented design of the network certification, dual processor features. The Home Edition supports only 1 processors, while the Professional Edition supports 2. The letter XP represents the "experience" of an English word (experience).

Windows XP is a product based on Windows2000 code and has a new user graphical interface (called the Moon god Luna) that includes minor modifications, some of which appear to be from the Linux desktop Environment (desktopenvironmen) Inspiration for things like KDE. A login interface with user graphics is an example. In addition, Windows XP introduces a "People based" user interface that allows the toolbar to access specific details of the task.

Windows XP is a multi-user operating system, and each user's My Documents can be set to private folders (provided it is an NTFS partition), and other users do not have access to the files placed here. But sometimes in the current user environment to access the "Private folder" data, such as the author of the report, often need to invoke other colleagues "dedicated folder" in the customer information, although through the win key +l fast switch, However, in the process of switching the need to log in as other users and will disrupt the current user's network connection, to use a lot of inconvenience. Now with the "runas command + batch" can be implemented in the current user environment a key switch function.

First, the production of batch processing

Open Notepad to enter the following text (Figure 1), save it as a batch qiehuan.bat and place it under f:\.




Taskkill/im explorer.exe/f
RUNAS/PROFILE/USER:YMF C:\windows\explorer.exe
EXIT

which:

Im Explorer.exe: Specifies the name of the image (desktop process) to terminate the process
/F: Force the desktop process to terminate
/profile: Load the user's profile so that the private folder can be fully accessed as a user
/USER:YMF:YMF user account name that needs to be switched
Exit: Auto Exit command Prompt

Through the introduction of the Starling Network (http://www.it8g.com) expert, we know that the above command is used to force the end of the current user's desktop with the Taskill command, and then start the desktop as a YMF user (and load its configuration file).

Two, the same

Now if you want to access the YMF "Private Folders", as long as you run "Qiehuan.bat", the system will immediately close the current desktop, and then prompted to enter the YMF login password (see Figure 2), after successfully running "Explorer.exe", the desktop becomes the YMF desktop, open the " My computer can easily access private folders. Because the landing is the YMF desktop, the program started through the desktop are run as YMF (such as running Regedit.exe, you can edit YMF registry key values). You can refer to the above command, and then make a return to the original desktop script (as long as the editor supplied: After the user name can), easy to switch back and forth.

Figure 2

On the law to know other users login password (if the user has no login password can not use), in fact, limited files (folders) inaccessible because there is no corresponding permissions, such as the previous example, when the folder is set to "Private folder", the system has only "YMF" and "system" have Full Control permissions. Through the system cacls command can quickly change user rights, first as a system administrator login, input "cacls" C:\Documents and SETTINGS\YMF "/e/p administrator:f", This sets the current user (administrator) to full control of the YMF private folder permissions. Ditto, you can also make this command a script to quickly access other user-limited documents. However, this method requires a permission change operation for each file (folder).

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.