Installing Remote Server Admin Tools (RSAT) via Powershell
I reload my boxes frequently, also I have a few installations that are enrolled in Windows Insider, which installs new builds frequently. The insider build update cycle will reset existing updates including Remote Server Tools (Active Directory Powershell, Active Directory Users and Computer, etc) .. Drew is not one to download and install things over and over again.. so so created the following PS code.
Following PS code will install server admin tools on 'Windows Server*' and Remote Server Administration Tools (RSAT) Windows 10 (x86/x64).
CODE:
|
|
#Update, W10 build 17682 includes RSAT on demand
#Example, List all RSAT
Get-WindowsCapability -Online | ? Name -like 'RSAT.*'
#Example, Install Directory Services
Get-WindowsCapability -Online | ? Name -like Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0 |Add-WindowsCapability -Online
#Example, install complete RSAT
Get-WindowsCapability -Online | ? Name -like 'RSAT.*' | Add-WindowsCapability -Online
Comments
- Anonymous
June 01, 2017
For anyone looking at this script, it is pointing to an older MSU and the certificate will date-check fail. You can try to update this script with valid installers by getting URL from latest from here. https://www.microsoft.com/en-us/download/details.aspx?id=45520- Anonymous
June 01, 2017
Hi Robert, thanks. I updated the request, it now scrapes the uri from the links, tested and confirmed works fine now.
- Anonymous
- Anonymous
June 01, 2017
I don't think the link I provided will provide direct links to the MSU downloads. I'm unable to determine easily what those would be without some wireshark or debugging in the browser.So, I'd suggest downloading each of these manually and placing on a locally accessible server. - Anonymous
November 08, 2017
The comment has been removed