Last active
August 29, 2015 14:13
-
-
Save sangram-chavan/7aefe6975af31ebd5465 to your computer and use it in GitHub Desktop.
Utilities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
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. | |
echo goto theEnd | |
:do_clear | |
echo clearing %1 | |
wevtutil.exe cl %1 | |
goto :eof | |
:noAdmin | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wmic bios get serialnumber |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment