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 K.i.t.c.h.e.n. .U.n.i.t.s. .M.i.d.l.a.n.d.s
by  slowsnake   Go to last post Go to first unread
Last post: Yesterday at 9:09:01 AM(UTC)
Lansweeper K-i-t-c-h-e-n- -U-n-i-t-s- -M-i-d-l-a-n-d-s
by  slowsnake  
Go to last post Go to first unread
Last post: Yesterday at 9:06:20 AM(UTC)
Lansweeper SSH Mac and Linux Scanning
by  tcilmo   Go to last post Go to first unread
Last post: 12/9/2016 8:26:32 PM(UTC)
Lansweeper Office 2016 Deployment
by  GaryT  
Go to last post Go to first unread
Last post: 12/9/2016 4:49:40 PM(UTC)
Lansweeper Report login user 7 days
by  FbrAbreu   Go to last post Go to first unread
Last post: 12/9/2016 1:52:10 PM(UTC)
Lansweeper Null value for unchecked custom field check box.
by  ITops  
Go to last post Go to first unread
Last post: 12/9/2016 12:23:59 AM(UTC)
Lansweeper Outgoing Email template
by  gdudley   Go to last post Go to first unread
Last post: 12/8/2016 4:34:57 PM(UTC)
Lansweeper Unexpected results with added criteria
by  Jeff Henze  
Go to last post Go to first unread
Last post: 12/8/2016 3:50:51 PM(UTC)