Wmic command placed in a batch file is not responding and refuse to work without administrator privilegies
Posted: 16 Mar 2020 03:19
I came across this weird behaviour with Wmic:
Another Example file:
- Running WMIC from manually opened command prompt without administrator privilegies - works properly and output is delivered as expected.
- Running WMIC from batch file without administrator privilegies - Wmic is stuck in the permanent loop without any output.
- Running WMIC from batch file with administrator privilegies - Wmic is showing output and everything is as expected.
Code: Select all
@ECHO OFF
WMIC
pause
Code: Select all
@ECHO OFF
WMIC Path Win32_LocalTime Get Day
pause