|
Exit(ERROR_ACCESS_DENIED); |
psupdate.exe -silent && echo success || echo fail returns success in a non-elevated command prompt on Windows Server 2012 R2.
The contents of the log file are:
2019-05-30 19:01:46 Getting windows user.
2019-05-30 19:01:46 Checking if user is an administrator.
PlexServerAutoUpdater/Program.cs
Line 73 in 651d6a4
psupdate.exe -silent && echo success || echo failreturnssuccessin a non-elevated command prompt on Windows Server 2012 R2.The contents of the log file are:
2019-05-30 19:01:46 Getting windows user.
2019-05-30 19:01:46 Checking if user is an administrator.