New
#80
Hi, Brink
I used option one of this tutorial, but I found the command codes as following might useless.
FOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%V
IF (%adminTest%)==(Access) goto noAdmin
I ran the bat without administrator privileges, but the bat didn't go to :noAdmin and show the words as following.
echo Current user permissions to execute this .BAT file are inadequate.
echo This .BAT file must be run with administrative privileges.
echo Exit now, right click on this .BAT file, and select "Run as administrator".
Q1. Could you please tell me how to modify this two command codes or delete them?
Q2. Could you please tell me (Access) should change to which word and then the bat would go to :noAdmin?
Best regards,
Steven.
Thanks for your test, Brink.
I have only one account in this PC and current account is administrator.
By the way, I disabled UAC by using the registry keys as following.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000000
"EnableLUA"=dword:00000000
"PromptOnSecureDesktop"=dword:00000000
Best regards,
Steven.
It might be this cause.
But, I tested the BAT by default UAC setting, the result is the same.
The BAT didn't go to :noAdmin and show the words as following.
echo Current user permissions to execute this .BAT file are inadequate.
echo This .BAT file must be run with administrative privileges.
echo Exit now, right click on this .BAT file, and select "Run as administrator".