First, make a batch processing
Open Notepad and enter the following text (Figure 1), save it as batch qIEhuan.bat and place it under f:\\.
Taskkill /im explorer.exe /f
Runas /profile /user:ymf c:\\Windows\\explorer.exe
EXIT
where:
/IM explorer.exe: Specify the image name of the process to be terminated (desktop process)
/f: Force the desktop process to terminate
/profile: Load the user's configuration file so that it can be completely accessed as a user "Private Folder"
/user:ymf:ymf User account name to be switched
Exit: Automatically exit the command prompt
Via Stargo (http://www.it8g .com
) Expert introduction, we know that the above command is used to force the end of the current user's desktop with the Taskur command, and then start the desktop as a YMF user (and load its configuration file).
Second, combined into one
Now if you want to access YMF's "special folder", just run "qIEhuan.bat", the system will immediately close the current desktop, and then enter as prompted YMF login password
(Figure 2); After successfully running "explorer.exe", the desktop becomes YMF desktop, and "My Computer" can be opened to easily access "Dedicated Folder". Since the YMF desktop is logged in, the programs launched through the desktop are all running as YMF (such as running regedit.exe, you can edit the YMF registry key). You can refer to the above command and make a return to the original desktop script (just edit the user name after /user:), which is convenient to switch back and forth.
Figure 2
The law should know the login password of other users (if the user does not have a login password, it cannot be used). In fact, the restricted file (clip) cannot be accessed because there is no corresponding permission, such as For example, when the folder is set to "dedicated folder", only "YMF" and "system" have full control rights. You can quickly change user permissions through the system's CACLS command. After logging in as the system administrator, enter "cacls "C:\\Documents and Settings\\ymf" /e /p administrator:f", so that the current user (administrator) ) Set the dedicated folder permissions for YMF to full control. As above, you can also use this command as a script to quickly access other user-limited documents. However, this method requires a permission change operation for each file (folder).
In todays increasingly large-scale network, if you still use the previous mode of separate m
As we all know, Microsoft has introduced two new operating systems since Windows XP SP1: Win
XP SP3 has been released for a long time, but if you plan to install XP SP3 with
In our computers hard drive, there are some important data and secret files that we dont wan
Keep a glimpse of the movie, let you have an endless aftertaste
WIN XP changes the resolution on the blue screen
After five passes, the six will be: the actual WinXP SP2 firewall
Layers of advancement to solve the problem that the internal network can not go online
Have you met? The 10 most prone to PC disasters (2)
After XP starts, can you enter the command line mode directly?
Win XP virtual memory standard setting method
What should I do if the Windows XP input method is gone?
Real experience "free activation" WinXP "Shanghai VOL version"
Suggestions for backing up WinXP with GHOST
Win XP super support tool set comprehensive contact
Upgrade must-see: Win XP SP2 installation and installation manual
Three Tips for Effectively Improving Vista Search Efficiency
Windows modules installer worker What is the CPU /disk footprint high solution
Master teaches you to easily retrieve the win7 system volume icon
Win10 system IE browser fake death how to solve?
Win8 system may make the mouse become the doomsday
Ubuntu Linux 8.04 system JAVA environment configuration method
Win10 how to open the automatic search network device function tutorial