According to your screenshot you are running command window as a regular user, do you get the same access denied when running it as administrator?
UAC is disabled on my system though and my account is an administrator.
*edit: The batch file mentioned in this thread exhibits this behavior. I am able to run a blank one after all.
Last edited by LuzTeTT; 28 Oct 2012 at 22:15.
When you say UAC is disabled, do you mean you turned the slider down? Because that doesn't actually disable UAC, it just auto-approves all the popups so they happen silently.
Disabling UAC in Windows 8 will cause a number of problems, particularly with Metro apps.
What is it exactly you are trying to do?
I have no problems executing a batch file by right clicking on it and choosing "Run as Administrator". Batch file
I created a new text file on my desktop, added a single line "pause" to it, then renamed the extension to .bat (also works with .cmd) and right clicked on it and chose Run as Administrator. Worked fine.
I am unable to run this specific batch file. When I attempt it, I am left with "Access is denied..." to C:\Windows\.
If I attempt to run it elevated or under the Administrator credentials, by right clicking it, it doesn't do anything at all.
The batch script is fairly simple, shown in the first post of this thread.
And to reiterate. I have no problems doing such. That means whatever the problem is, it's not a Windows 8 problem.
This batch file is a bit more complex than yours,
but it ran perfectly on Win 7 and it runs fine in Win 8.
But again, assure you are running cmd as Administrator.
Also, your Win 8 Login Account should be set to Administrator.
It just cleans EVERY Event Log file know to man...so be sure you WANT that
to actually happen before you run it!!!
FOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%V
IF (%adminTest%)==(Access) goto noAdmin
for /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G")
echo Event Logs have been cleared! ^<press any key^>
echo clearing %1
wevtutil.exe cl %1
echo You must run this script as an Administrator!
echo ^<press any key^>
I'm gonna make a batch of cookies myself :)
Thank you for your declarations. I am using a fresh install of Windows 8.
Please read the initial post.