Log in to the system as system account to delete files

  

Installed the system two days ago, I feel that Windows7 is almost mature, so be prepared to experience it. But unexpectedly, some of the original files of the D drive have no permissions when they are deleted. Only when the permissions are checked, the System has the delete permission. Even if I enable the Administrator account, I cannot delete those files. Tools that have been tried and removed from the Internet are not working well. Later, I saw a method on the Internet to run cmd through the service. At this time, the cmd will log in as the system account. This way we can delete the file in cmd, but it is not awkward. Set up a task, do not know what is going on, always do not execute, and later view the history of task execution, 103 and 203 errors, the result is no success.

Gossip less, later found a command on the Internet, successfully using the cmd executed by the system, in fact, only one cmd can be used by users. But this is enough. The command is as follows:

sc Create SuperCMD binPath= "cmd /K start" type= own type= interact

sc start SuperCMD

Save the above two lines of code to txt, Change the extension to bat and execute it. A query window may pop up, select "View Message" and you will enter the System interface, white background, only a black cmd is now in front.

Copyright © Windows knowledge All Rights Reserved