Link to home
Start Free TrialLog in
Avatar of SnAkEhIpS
SnAkEhIpSFlag for United States of America

asked on

PowerShell GUI overlay for msra and mstc

Got a PowerShell idea. I'd like to create a gui that will launch either msra.exe or mstc.exe depending on my entry. What I envision is this:

1. I have a field where I type a username
2. Based on that username (I'm guessing it checks with Active Directory) the primary workstation of that user is determined and displayed (maybe last 5 logons makes a user a primary user)
3. There are 2 buttons; "Assist" and "RDC"

Anyone have any leads or willing to produce such a PS script?
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

2. Based on that username (I'm guessing it checks with Active Directory) the primary workstation of that user is determined and displayed (maybe last 5 logons makes a user a primary user)
This information is not in Active Directory unless you log it to an attribute. Have a look at the process in this article that records the user to the computer object.
https://www.experts-exchange.com/articles/30891/Automated-object-placement-using-AutoAD.html
Avatar of SnAkEhIpS

ASKER

Could this info be gleaned from a security policy audit on a domain controller or an audit on a client-by-client basis? I'm curious how this was accomplished with a COTS enterprise computer inventory application I used in a previous environment. it gave me the ability to specify the number of successful logins; default was 5. Ultimately, any user who had the last 5 logins on a computer was deemed the primary owner. It displayed "primary owner" along with other inventory details in the app.
ASKER CERTIFIED SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you Shaun. i think I've got it now. See ya again soon!