How to run Event Viewer as another user?

Posted by Ray Cheng on Super User See other posts from Super User or by Ray Cheng
Published on 2013-10-31T15:55:07Z Indexed on 2013/10/31 15:59 UTC
Read the original article Hit count: 368

I want to create a shortcut to run Windows Event Viewer as another user, but the following doesn't seem to work.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\System32>C:\Windows\System32\runas.exe /noprofile /user:domain\username "C:\Windows\system32\eventvwr.msc /s"
Enter the password for domain\username:
Attempting to start C:\Windows\system32\eventvwr.msc /s as user "dnr\adm_rche490" ...
RUNAS ERROR: Unable to run - C:\Windows\system32\eventvwr.msc /s
193: C:\Windows\system32\eventvwr.msc /s is not a valid Win32 application.

But if I create the shortcut without the runas part, it works but with the current logon user.

What am I doing wrong?

© Super User or respective owner

Related posts about windows-7

Related posts about command-line