Windows 7 - Strange behaviour with a batch file

Clanger

Moderator
Staff member
I have found some strange behaviour with the attached batch file. I use it to show desktop content view layout. It works fine, explorer restarts and i get the attached view.

When i ran the file using Power Run v1.3 64bit exe from Sordum explorer restarted and my desktop stuff disappeared. When i opened the start menu i was no longer in the Administrator account, I was now in System account. I had to log out and back into the admin account. The system ran fine without problems.

I just want to know what the hell happend, have i found a secret backdoor by sheer luck? :confused:

Power Run blurb - "PowerRun is a portable freeware to launch regedit.exe , Cmd.exe or other software with the same privileges as the TrustedInstaller / Nt Authority/system".
 

Attachments

  • Capture.PNG
    Capture.PNG
    192.8 KB
  • Content_view_layout_for_desktop.bat.txt
    568 bytes
Last edited:
When i ran the file using Power Run v1.3 64bit exe from Sordum explorer restarted and my desktop stuff disappeared. When i opened the start menu i was no longer in the Administrator account, I was now in System account. I had to log out and back into the admin account. The system ran fine without problems.

I just want to know what the hell happend, have i found a secret backdoor by sheer luck? :confused:

That is an expected behavior:
'Power run' runs as system, the batch file restart explorer.exe as system user and that is why you're no longer in your (built-in or not) admin account.

For some time i had an admin account that asked to run programs as admin, i ran cmd as admin, restarted explorer from the cmd and there wasn't needed to allow to run programs as admin, just ran my programs without prompts until explorer got restarted due to issues, closed session or restarted the PC.
 
I get ya. A simple explorer restart bat or cmd started from power run will get me into System account. So no file or setting will be blanked out, i will be able to access any setting and delete any file or folder. Hey, would this sort pmikep's problem with the mount folder?
 
If you think it may help him can you post on his thread because you know and understand better than i do?
 
What did you do, just run a restart.cmd by "Run As Administrator"?
right click on command line shortcut (here is translated similar to 'system's symbol'), run as administrator, run taskmgr or use taskkill (in a batch worked too but now it doesn't work in any way, could be due to updates) and after killing explorer, run explorer again from the 'DOS'.

My batch is called a.cmd, just type 'a' & enter.

This is the batch's content:
cd \
cls
taskkill /F /IM explorer.exe &&explorer.exe &&exit
 
Back
Top