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.

Top Rated

1 Lansweeper Lansweeper 5.2 (recent update)
by  MikeInLa  
Go to last post Go to first unread
Last post: 11/26/2014 9:57:29 AM(UTC)
2 Lansweeper Better Backup
by  sullivane  
Go to last post Go to first unread
Last post: Yesterday at 2:11:03 PM(UTC)
3 Lansweeper Deployment monitor
by  DaveinJP  
Go to last post Go to first unread
Last post: 3/19/2015 1:36:19 PM(UTC)
4 Lansweeper Deployment Organization
by  Niley  
Go to last post Go to first unread
Last post: 1/15/2015 3:19:39 PM(UTC)
5 Lansweeper IOS App for scannability
by  AdamBird  
Go to last post Go to first unread
Last post: 2/5/2015 12:28:19 PM(UTC)
6 Lansweeper Merge Two Assets or Update Based on Serial Number
by  Matt8  
Go to last post Go to first unread
Last post: 2/9/2015 2:33:36 PM(UTC)
7 Lansweeper Custom Deployment Retry Time
by  jlorsung  
Go to last post Go to first unread
Last post: 2/27/2015 10:40:49 AM(UTC)
8 Lansweeper VMware ESXi Host Scanning
by  sukaitsu  
Go to last post Go to first unread
Last post: 3/23/2015 5:44:08 PM(UTC)

Active Discussions

Lansweeper New employees by months
by  soucyinter   Go to last post Go to first unread
Last post: Today at 2:10:24 PM(UTC)
Lansweeper Non-correct SNMP-parsing...
by  ivonin  
Go to last post Go to first unread
Last post: Today at 8:39:03 AM(UTC)
Lansweeper Report of Software for PC/Mac mixed network
by  Casey4147  
Go to last post Go to first unread
Last post: Yesterday at 10:37:31 PM(UTC)
Lansweeper Running a custom vbscript?
by  greyclear   Go to last post Go to first unread
Last post: Yesterday at 9:53:36 PM(UTC)
Lansweeper Custom URL for Web Console?
by  jstevens5591  
Go to last post Go to first unread
Last post: Yesterday at 9:37:43 PM(UTC)
Lansweeper Asset Report Request
by  TheITGuy   Go to last post Go to first unread
Last post: Yesterday at 8:43:13 PM(UTC)
Lansweeper Last time to use a program.
by  Daniel.B  
Go to last post Go to first unread
Last post: Yesterday at 7:00:05 PM(UTC)