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

Lansweeper Windows 10 Build Version report
by  pfenton   Go to last post Go to first unread
Last post: Yesterday at 4:23:31 AM(UTC)
Lansweeper Scan an IP range from a different subnet
by  pfenton  
Go to last post Go to first unread
Last post: Yesterday at 4:03:06 AM(UTC)
Lansweeper Adobe reader install
by  Cardealer_Roc   Go to last post Go to first unread
Last post: 11/17/2017 11:19:28 PM(UTC)
Lansweeper Add MIB for snmp devices
by  crashff  
Go to last post Go to first unread
Last post: 11/17/2017 10:56:03 PM(UTC)
Lansweeper Wrong uptimes for windows 10 assets
by  cbenedict   Go to last post Go to first unread
Last post: 11/17/2017 9:13:48 PM(UTC)
Lansweeper Hide a ticket for just me
by  jeremy.parker  
Go to last post Go to first unread
Last post: 11/17/2017 8:21:41 PM(UTC)
Lansweeper Cleanup options don't work
by  czubai   Go to last post Go to first unread
Last post: 11/17/2017 6:08:49 PM(UTC)
Lansweeper Lansweeper Raports problem
by  RpiTMS  
Go to last post Go to first unread
Last post: 11/17/2017 3:24:54 PM(UTC)