Notification

Icon
Error

Runas Custom Actions

Posted: Friday, April 22, 2011 6:19:20 PM(UTC)
mseymour

mseymour

Member Posts: 1
0
Like
There are a couple of questions out there about how to add runas to a custom action, but I did not see any answers.

So here is how I got run as to work with computer management. There are several variations you can do with this but our need was to run computer manager as the local administrator (this enables us to add the domain admins into the local administrators group).

1. A local admin username and password must be the same on your local computer(where you are executing the runas command) and the computer you are connecting too.

2. Create a custom action with the following command -

runas /user:localadmin "mmc.exe compmgmt.msc /computer:{computer}"

That's it. When you run the custom action, you will be prompted for the password and then a few seconds later computer manager will load for the remote machine.

Once we get the domain admins group added to the local administrators group on all the machines we will change the /user:localadmin to /user:domain\domainadmin.

You should be able to configure most of your custom actions to runas an admin.

Active Discussions

Action Ping Sweep a Subnet
by  IFIT   Go to last post Go to first unread
Last post: 12/13/2016 7:33:35 PM(UTC)
Action Open remote C$ share
by  Jimurray   Go to last post Go to first unread
Last post: 10/19/2016 5:32:21 PM(UTC)
Action Find lost space the easy way (spacesniffer.exe)
by  danielm  
Go to last post Go to first unread
Last post: 9/9/2016 3:42:09 PM(UTC)
Action Delete old user profiles
by  BOFSD   Go to last post Go to first unread
Last post: 5/19/2016 10:06:41 PM(UTC)
Action Remote script execution.
by  Gerardo de Lira  
Go to last post Go to first unread
Last post: 5/6/2016 5:43:08 PM(UTC)
Action Wyse Zero Config Terminals: Send message and force reboot
by  Joshua  
Go to last post Go to first unread
Last post: 12/15/2015 2:35:30 AM(UTC)