Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, March 11, 2015 7:29 PM
Creating a UI for password resets and account unlock tool for supervisors to use (after delegating permissions)
I found one that someone created and modified it quite a bit (cleaned it up, added in some email notification of tool use for security) and it seems to be working well. The tool has a prerequisite of RSAT on the computer. I would like to build this into the tool to query and install if not installed. This would be easy with windows server 2012 or windows 8 as they have the new command add-feature etc.
I can not seem to find this for windows 7 though.
Anyone have any ideas of how to query rsat on windows 7, and install if not installed - via powershell
Thanks
John
All replies (8)
Thursday, March 12, 2015 2:04 AM ✅Answered | 2 votes
RSAT is an application that can be detected on system where it is installed. Just query for it.
if(get-module -list activedirectory){'found'}
That is all. There is not magic.
¯\(ツ)_/¯
Wednesday, March 11, 2015 7:59 PM
Creating a UI for password resets and account unlock tool for supervisors to use (after delegating permissions)
I found one that someone created and modified it quite a bit (cleaned it up, added in some email notification of tool use for security) and it seems to be working well. The tool has a prerequisite of RSAT on the computer. I would like to build this into the tool to query and install if not installed. This would be easy with windows server 2012 or windows 8 as they have the new command add-feature etc.
I can not seem to find this for windows 7 though.
Anyone have any ideas of how to query rsat on windows 7, and install if not installed - via powershell
Thanks
John
Hi
Get-WindowsFeature only works on Server Operating system.
although it exists in windows 8 and 8.1, but is not usable & alerts you to use it on server OS.
you have to use the combination 0f DISM.exe & powershell's IF statement.
try:
dism /online /get-features | more
please mark as answered if it was the correct answer. :-)
Wednesday, March 11, 2015 8:05 PM
http://www.amandhally.net/2012/02/13/automate-server-administration-tools/
Wednesday, March 11, 2015 8:06 PM
https://gallery.technet.microsoft.com/scriptcenter/Remote-Server-Administratio-a4ffaf7e
Wednesday, March 11, 2015 8:09 PM
you can also use Client Manager Module
Thursday, March 12, 2015 7:28 AM
Hi John,
You can use if and else statement to check if the RSAT is installed, if this tool hasn't been installed, please refer to this script to deploy, which need you to download the RSAT for windows 7 sp1 from HERE and share this file:
"Remote Server Administration Tools" Deployment using PowerShell
If there is anything else regarding this issue, please feel free to post back.
If you have any feedback on our support, please click here.
Best Regards,
Anna Wang
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Thursday, March 12, 2015 9:39 AM
RSAT is an application that can be detected on system where it is installed. Just query for it.
if(get-module -list activedirectory){'found'}
That is all. There is not magic.
¯\(ツ)_/¯
Hi jrv. how are you?
may you please have a look at my question here
strange-problem-with-selectstring
i didn't find a technical answer for my question. i think you will know the answer
Friday, March 27, 2015 1:49 PM
$rsatAD = Get-WindowsFeature | Where {$_.Name -eq "RSAT-AD-Tools"}
if($rsatAD.Installed -eq "False"){Install-Feature -Name RSAT-AD-Tools}
- This only works on windows Server, but was looking and figured others would so wanted to have something for them as well.