Examples
To use the same role to open the Computer Management application locally and access a remote server in zone1
, you might run a command similar to the following:
runasrole /role:role1/zone1 mmc.exe c:\windows\system64\compmgmt.msc
To use the role named SQLdba
from the finance
zone as a local role to open the Services application, you might run a command similar to the following:
runasrole /localrole:SQLdba/finance mmc.exe c:\windows\system64\services.msc
To use role1
from zone1
as a local role to open the Computer Management application and use network access rights from role2
in zone2
, you might run a command similar to the following:
runasrole /localrole:role1/zone1 /networkrole:role2/zone2 mmc.exe compmgmt.msc
To open the Services application using the role named SQLdba
from the finance
zone and have the runasrole
program remain open until you close the Services application, you might run a command similar to the following:
runasrole /wait /role:SQLdba/finance mmc.exe c:\windows\system64\services.msc