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 Post here about your lansweeper setup.
by  Lansweeper  
Go to last post Go to first unread
Last post: 1/4/2015 11:20:06 PM(UTC)
3 Lansweeper Approve software only for certain PCs or Users
by  sarmo  
Go to last post Go to first unread
Last post: 11/13/2014 4:09:33 PM(UTC)
5 Lansweeper Deployment monitor
by  DaveinJP  
Go to last post Go to first unread
Last post: 1/17/2015 12:27:22 PM(UTC)
6 Lansweeper Deploy package - pre-defined "run mode" by package
by  servicedesk  
Go to last post Go to first unread
Last post: 1/7/2015 1:58:53 PM(UTC)
7 Lansweeper Add ability to adjust asset state visibility
by  WING987  
Go to last post Go to first unread
Last post: 1/9/2015 10:51:34 AM(UTC)
8 Lansweeper Exclude Specific Asset Groups from Reports
by  WhatTheFrenchToast  
Go to last post Go to first unread
Last post: 1/9/2015 11:00:24 PM(UTC)

Active Discussions

Lansweeper Query warranty
by  jmichiels   Go to last post Go to first unread
Last post: Today at 4:39:01 PM(UTC)
Lansweeper OUs for Apple Computers?
by  cloy.tobola@ndscs.edu  
Go to last post Go to first unread
Last post: Today at 3:30:23 PM(UTC)
Lansweeper Ownership History
by  Matt8   Go to last post Go to first unread
Last post: Today at 3:18:09 PM(UTC)
Lansweeper Merge Two Assets or Update Based on Serial Number
by  Matt8  
Go to last post Go to first unread
Last post: Today at 2:49:24 PM(UTC)
Lansweeper WMI Scanning for USB attached peripherals
by  Susan.A   Go to last post Go to first unread
Last post: Today at 2:45:04 PM(UTC)
Lansweeper Deployment: Using IP instead of DNS-Name
by  Susan.A  
Go to last post Go to first unread
Last post: Today at 2:35:45 PM(UTC)
Lansweeper None IP Assets
by  Susan.A   Go to last post Go to first unread
Last post: Today at 2:33:41 PM(UTC)
Lansweeper Lansweeper Slow
by  Susan.A  
Go to last post Go to first unread
Last post: Today at 2:10:00 PM(UTC)