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 Network Printer by user
by  mikesecond  
Go to last post Go to first unread
Last post: 1/1/2015 6:13:41 AM(UTC)
3 Lansweeper Deployment Organization
by  Niley  
Go to last post Go to first unread
Last post: 7/10/2015 10:50:17 AM(UTC)
4 Lansweeper Deployment monitor
by  DaveinJP  
Go to last post Go to first unread
Last post: 3/19/2015 1:36:19 PM(UTC)
5 Lansweeper Custom Fields for User Pages
by  novasam  
Go to last post Go to first unread
Last post: 3/18/2015 1:23:33 PM(UTC)
6 Lansweeper Better Backup
by  sullivane  
Go to last post Go to first unread
Last post: 5/26/2015 2:11:03 PM(UTC)
7 Lansweeper Open user profile folder (asset action)
by  servicedesk  
Go to last post Go to first unread
Last post: 6/15/2015 2:52:18 PM(UTC)
8 Lansweeper Network Printer Installation Script
by  enz1ey  
Go to last post Go to first unread
Last post: 5/5/2015 8:16:21 PM(UTC)

Active Discussions

Lansweeper Computers Left on Overnight
by  rhodges   Go to last post Go to first unread
Last post: Today at 3:12:02 PM(UTC)
Lansweeper Deployment component improvements
by  jprateragg  
Go to last post Go to first unread
Last post: Today at 2:33:53 PM(UTC)
Lansweeper Automate Reports / Command Line options
by  TJa   Go to last post Go to first unread
Last post: Today at 9:10:05 AM(UTC)
Lansweeper Recent Updates Postetd?
by  Karel DS  
Go to last post Go to first unread
Last post: Today at 7:03:31 AM(UTC)
Lansweeper Asset out of warranty
by  MR1371   Go to last post Go to first unread
Last post: Yesterday at 8:37:35 PM(UTC)
Lansweeper Scanning Monitors
by  gnohs  
Go to last post Go to first unread
Last post: Yesterday at 7:51:27 PM(UTC)
Lansweeper Multiple companies same IP Scheme
by  gnohs   Go to last post Go to first unread
Last post: Yesterday at 7:47:59 PM(UTC)
Lansweeper Not seeing Macintosh computers in "Computer" asset reports
by  bbazian  
Go to last post Go to first unread
Last post: Yesterday at 6:51:24 PM(UTC)