Due to the strange ways that Windows works, all I want is to permanentlylook at https://nircmd.nirsoft.net/runas.html
have the "Show more details" working whenever I "Run as administrator" any given "*.bat" file that I select, en masse, to run.
Is there an option checkbox in the registry perhaps to always "Show more details" when running a batch file as administrator in Windows 10?
A confluence of Windows peculiar traits is only why I need that option.
That is, I don't "want" that option - I just want it as a workaround.
[1] Windows, when I select a handful of files to right click and execute,
I can never tell the _order_ that those files will be executed
(as Windows has its own peculiarities on how it orders files).
[2] The batch file has to have administrator permission because it changes
the routing table but a Windows particular is that there isn't any
known way to set that user _inside_ the batch file itself, such as:
RunThisBatchFileAsAdministrator = YES
[3] Not every batch file will work (as they're running network commands)
but _one_ of those batch files will always end up working. Therefore
the problem is figuring out, after the fact, which batch file it was.
All of these issues are caused purely by Windows particular quirks which is why I want to have "Show more details" on by default.
But what would negate the need for that would be a command that I could put _inside_ the batch file that says "RunMeAsAdminPlease = YES" if that
exists.
Or, some way to make _all_ batch files run as Administrator, although that has the obvious security risk so I just want to have the command inside if
I can.
But if there is no command that tells Windows to run the batch file as administrator, then at least tell me which of the many batch files it was.
Due to the strange ways that Windows works, all I want is to permanentlylook at https://nircmd.nirsoft.net/runas.html
have the "Show more details" working whenever I "Run as administrator" any given "*.bat" file that I select, en masse, to run.
Is there an option checkbox in the registry perhaps to always "Show more details" when running a batch file as administrator in Windows 10?
A confluence of Windows peculiar traits is only why I need that option.
That is, I don't "want" that option - I just want it as a workaround.
[1] Windows, when I select a handful of files to right click and execute,
I can never tell the _order_ that those files will be executed
(as Windows has its own peculiarities on how it orders files).
[2] The batch file has to have administrator permission because it changes
the routing table but a Windows particular is that there isn't any
known way to set that user _inside_ the batch file itself, such as:
RunThisBatchFileAsAdministrator = YES
[3] Not every batch file will work (as they're running network commands)
but _one_ of those batch files will always end up working. Therefore
the problem is figuring out, after the fact, which batch file it was.
All of these issues are caused purely by Windows particular quirks which is why I want to have "Show more details" on by default.
But what would negate the need for that would be a command that I could put _inside_ the batch file that says "RunMeAsAdminPlease = YES" if that
exists.
Or, some way to make _all_ batch files run as Administrator, although that has the obvious security risk so I just want to have the command inside if
I can.
But if there is no command that tells Windows to run the batch file as administrator, then at least tell me which of the many batch files it was.
But if there is no command that tells Windows to run the batch file as administrator, then at least tell me which of the many batch files it was.
look at https://nircmd.nirsoft.net/runas.html
Or
run using TaskScheduler: SCHTASKS /RUN /TN <task name> set for highest privileges
look at https://nircmd.nirsoft.net/runas.html
First see if you have secure logon enabled.
PS] Get-Service seclogon
Third take a look at the existing key credentials
C:] c:\windows\system32\rundll32.exe keymgr.dll, KRShowKeyMgr
Fourth save the administrator password into the key credentials store
C:] c:\windows\system32\runas.exe /user:administrator /savecred "C:\Windows\System32\cmd.exe"
Enter the password for administrator:
Fifth is to run any command as admin without entering any password
C:] c:\windows\system32\runas.exe /user:administrator /readcred "C:\Windows\System32\cmd.exe"
Sixth, replace "C:\Windows\System32\cmd.exe" with your batch file
C:] c:\windows\system32\runas.exe /user:administrator /readcred "C:\yourpath\yourfile.bat"
https://woshub.com/run-program-as-different-user-windows/
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 06:40:27 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,336,029 |