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.

Active Discussions

Lansweeper "Last Seen Assets" is seeing things
by  rseiler   Go to last post Go to first unread
Last post: Today at 10:13:32 PM(UTC)
Lansweeper System UUID Report
by  MikeMc  
Go to last post Go to first unread
Last post: Today at 9:25:07 PM(UTC)
Lansweeper Processor Specific Report
by  kerry-ann   Go to last post Go to first unread
Last post: Today at 9:00:16 PM(UTC)
Lansweeper Deployment Tab missing after upgrade from 5. to 6.0.22
by  JasonT  
Go to last post Go to first unread
Last post: Today at 8:47:39 PM(UTC)
Lansweeper Email alert when computer is nearing retirement date?
by  blasto   Go to last post Go to first unread
Last post: Today at 8:29:28 PM(UTC)
Lansweeper Report with IP count for each IP Location
by  MikeMc  
Go to last post Go to first unread
Last post: Today at 6:51:22 PM(UTC)
Lansweeper Most logged in User for asset
by  MikeMc   Go to last post Go to first unread
Last post: Today at 6:35:30 PM(UTC)
Lansweeper Active Directory Monitoring
by  brandonmcgrath  
Go to last post Go to first unread
Last post: Today at 3:41:27 PM(UTC)