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: 6/13/2014 1:18:56 AM(UTC)
3 Lansweeper User-Inventory
by  jhache  
Go to last post Go to first unread
Last post: 11/14/2014 3:29:48 PM(UTC)
4 Lansweeper Unlock Password Customization
by  Hobbs13  
Go to last post Go to first unread
Last post: 7/26/2012 2:50:56 PM(UTC)
5 Lansweeper LS not pulling in corrected version of Visio/Project
by  ldellinger  
Go to last post Go to first unread
Last post: 12/4/2014 3:41:41 PM(UTC)
6 Lansweeper Place Main Page Tab before Global Tabs?
by  dkramer  
Go to last post Go to first unread
Last post: Today at 4:32:14 AM(UTC)
7 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)

Active Discussions

Action Delete old user profiles
by  Dogeron   Go to last post Go to first unread
Last post: 12/16/2014 12:32:08 PM(UTC)
Action Runas remote CMD
by  seraphielx  
Go to last post Go to first unread
Last post: 11/28/2014 2:09:54 PM(UTC)
Action Run as c$ share
by  seraphielx   Go to last post Go to first unread
Last post: 11/28/2014 2:08:15 PM(UTC)
Action Remote NBTstat
by  seraphielx  
Go to last post Go to first unread
Last post: 11/28/2014 2:03:52 PM(UTC)
Action IE History XP
by  seraphielx   Go to last post Go to first unread
Last post: 11/28/2014 2:01:08 PM(UTC)
Action View IE History Win7
by  seraphielx  
Go to last post Go to first unread
Last post: 11/28/2014 1:59:56 PM(UTC)
Action Chrome History
by  seraphielx   Go to last post Go to first unread
Last post: 11/28/2014 1:56:48 PM(UTC)
Action Connect to remote registry tool
by  esserto  
Go to last post Go to first unread
Last post: 11/27/2014 8:27:26 AM(UTC)