This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -RunAsAdministrator | |
#Adapted from https://blogs.technet.microsoft.com/drew/2016/12/23/installing-remote-server-admin-tools-rsat-via-powershell/ | |
$web = Invoke-WebRequest https://www.microsoft.com/en-us/download/confirmation.aspx?id=45520 -UseBasicParsing | |
$MachineOS = (Get-WmiObject Win32_OperatingSystem).Name | |
#Check for Windows Server 2012 R2 | |
IF ($MachineOS -like "*Microsoft Windows Server*") { |
NewerOlder