See if this helps(assuming you're in Windows 7):
Right-click the file, select 'Properties', click the 'Compatibility' tab and then select this option:
windows7.jpg
This is a discussion on run shortcut as different user (windows 7) within the Windows 7 Support forums, part of the Microsoft Support category; Hello guys, Need some help here! Basically - I always log in under a normal user account (eg. ninetynemo). I ...
Hello guys,
Need some help here!
Basically - I always log in under a normal user account (eg. ninetynemo).
I have local admin rights on the machine with that account BUT need to run some applications with my domain admin rights (adm-ninetynemo)
This is what I've tried so far:
edited the target with this cmdlet
so in the program I want to run it will look like this:Code:C:\Windows\System32\runas.exe /savecred /user:adm-ninetynemo
Now when I click the shortcut - it does run as, asking my credentials for the admin account..Code:C:\Windows\System32\runas.exe /savecred /user:adm-ninetynemo "C:\Program Files\Microsoft Configuration Manager Console\AdminUI\bin\adminconsole.msc"
though it fails to run the application
P.S. I don't wanna run a batch file / vba script for this - coz I know this should work.
See if this helps(assuming you're in Windows 7):
Right-click the file, select 'Properties', click the 'Compatibility' tab and then select this option:
windows7.jpg
That's still local admin, is it not?
Even if that works.. i'd still like to figure out how the runas works.
Or rather .. why it keeps failing on me
Edit:
Btw.. it's not even an option 'cause config manager is a part of win7.
So compmode isn't even activated:
windows71.jpg
dunno if it's the solution you want, but hold shift then right click the application > run as different user
as for what you're trying, is anything appearing in the event viewer after you enter your credentials to say why it might be failing? (might be on the DC log, not local)
That's how I run the apps at the moment.
The idea behind my runas is that it will save my creds & will always run under that account
Update:
I tried running the command in cmd which gave me following error
Though when I run the application without the runas command I doesn't give any problems193: C:\Program Files\Microsoft Configuration Manager Console\AdminUI\bin\adminconsole.msc is not a valid Win32 application.![]()
Bookmarks