Notification

Icon
Error

Runas Custom Actions

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

mseymour

Member Posts: 1
0
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.

Top Rated

1 Lansweeper List of Devices matching list of MAC addresses
by  atkinsjd  
Go to last post Go to first unread
Last post: 9/10/2013 11:36:51 PM(UTC)
2 Lansweeper Looking for customers in the US using LanSweeper
by  WbstDev  
Go to last post Go to first unread
Last post: 12/4/2013 10:30:34 PM(UTC)
4 Lansweeper Seperate logins
by  akosters  
Go to last post Go to first unread
Last post: 1/10/2014 6:20:40 AM(UTC)
5 Lansweeper 5.1 Lansweeper Error- Adding New Assets
by  Mlacombe  
Go to last post Go to first unread
Last post: 1/13/2014 5:41:35 PM(UTC)
6 Lansweeper Number of CPU cores and one result per server
by  jaekob  
Go to last post Go to first unread
Last post: 10/20/2014 3:31:46 PM(UTC)
8 Lansweeper Lansweeper Report
by  dlaporte  
Go to last post Go to first unread
Last post: 10/30/2013 8:16:40 PM(UTC)

Active Discussions

Lansweeper Firewall confirguation (Mcafee HIPS)
by  jasonw   Go to last post Go to first unread
Last post: Today at 8:39:08 AM(UTC)
Lansweeper Cheap Fitted Kitchens
by  tupperware  
Go to last post Go to first unread
Last post: Today at 3:50:50 AM(UTC)
Lansweeper Default Package Share username permissions
by  Susan.A   Go to last post Go to first unread
Last post: 11/22/2014 1:30:01 AM(UTC)
Lansweeper Is it possible to link a web page to an asset?
by  Susan.A  
Go to last post Go to first unread
Last post: 11/22/2014 1:24:10 AM(UTC)
Lansweeper LS v5.2 silentupgrade
by  MDGraves   Go to last post Go to first unread
Last post: 11/21/2014 2:45:43 PM(UTC)
Lansweeper Query Assets in Multiple Groups
by  Susan.A   Go to last post Go to first unread
Last post: 11/21/2014 2:18:06 PM(UTC)
Lansweeper Scanner Model Report
by  Susan.A  
Go to last post Go to first unread
Last post: 11/21/2014 2:00:09 PM(UTC)