Notices: This section not yet converted to new layout. Download stats are rolling back out.

9,527

Downloads

1,063

Downloads of v 2.0

8/29/2017

Last update

rsat (Install)

2.0

Package test results are passing.

This package was approved as a trusted package on 8/29/2017.

The Remote Server Administration Tools (RSAT) pack is a feature that is
included with Windows Server Operation systems.

To install rsat (Install), run the following command from the command line or from PowerShell:

C:\> choco install rsat

To upgrade rsat (Install), run the following command from the command line or from PowerShell:

C:\> choco upgrade rsat

Files

Hide
  • tools\chocolateybeforemodify.ps1 Show
    # This runs in 0.9.10+ before upgrade and uninstall.
    # Use this file to do things like stop services prior to upgrade or uninstall.
    # NOTE: It is an anti-pattern to call chocolateyUninstall.ps1 from here. If you
    #  need to uninstall an MSI prior to upgrade, put the functionality in this
    #  file without calling the uninstall script. Make it idempotent in the
    #  uninstall script so that it doesn't fail when it is already uninstalled.
    # NOTE: For upgrades - like the uninstall script, this script always runs from 
    #  the currently installed version, not from the new upgraded package version.
    
    
  • tools\chocolateyinstall.ps1 Show
    #Requires -RunAsAdministrator
    
    #	Source : Drew Robinson, XENOPHANE, Felix Benoit
    
    $packageName = 'RSAT'
    $osInfo = Get-WmiObject Win32_OperatingSystem | SELECT Version, ProductType, Caption
    $osInfo.Version = [version] $osInfo.Version
    
    if ($osInfo.Version -lt [version]'6.0') {
        Write-Host 'The Remote System Administration Tool (RSAT) requires Windows Vista or later.'
        return
    }
    elseif ($osInfo.ProductType -ne 1) {
        Write-Host 'The RSAT is built into Windows server OSes, making this effectively a stub package'
    }
    else {
    	$Lang=[System.Globalization.Cultureinfo]::CurrentCulture
    	$Lang=$Lang.Name.ToLower()
        if ($osInfo.Version.Major -eq 6) {
            if ($osInfo.Version.Minor -eq 0) { #Windows Vista
    			Write-host 'Vista Detected' -foregroundcolor yellow
    			$web = Invoke-WebRequest https://www.microsoft.com/$Lang/download/confirmation.aspx?id=21090 -UseBasicParsing
            }
            elseif ($osInfo.Version.Minor -eq 1) { #Windows 7
    			Write-host 'Windows 7 Detected' -foregroundcolor yellow
    			$web = Invoke-WebRequest https://www.microsoft.com/$Lang/download/confirmation.aspx?id=7887 -UseBasicParsing
            }
            elseif ($osInfo.Version.Minor -eq 2) { #Windows 8
    			Write-host 'Windows 8 Detected' -foregroundcolor yellow
    			$web = Invoke-WebRequest https://www.microsoft.com/$Lang/download/confirmation.aspx?id=28972 -UseBasicParsing
            }
    		elseif ($osInfo.Version.Minor -eq 3) { #Windows 8.1
    			Write-host 'Windows 8.1 Detected' -foregroundcolor yellow
    			$web = Invoke-WebRequest https://www.microsoft.com/$Lang/download/confirmation.aspx?id=39296 -UseBasicParsing
            }
        }elseif ($osInfo.Version.Major -eq 10) { #Windows 10
            if ($osInfo.Version.Minor -eq 0) {
    			Write-host 'Windows 10 Detected' -foregroundcolor yellow
    			$web = Invoke-WebRequest https://www.microsoft.com/$Lang/download/confirmation.aspx?id=45520 -UseBasicParsing
    		}
        }
    	if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64"){
    		Write-host 'x64 Detected' -foregroundcolor yellow
    		if ($osInfo.Version.Major -eq 6 -And $osInfo.Version.Minor -eq 0) {write-host 'Vista x64 is not supported, exiting';break}
    	}else{
    		Write-host 'x86 Detected' -forgroundcolor yellow
    	}
    	
    	$toolsDir   = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
    	$url        = $web.links.href |where-Object {$_ -like "*x86*" } | Select-Object -Unique
    	$url64      = $web.links.href |where-Object {$_ -like "*x64*" } | Select-Object -Unique
    
    	$packageArgs = @{
    	  packageName   = $packageName
    	  fileType      = 'msu'
    	  url           = $url
    	  url64bit      = $url64
    	  silentArgs    = "/quiet /norestart"
    	  validExitCodes= @(0,3010,-2146233087,2359302)
    	}
    	Install-ChocolateyPackage @packageArgs
    }
    
  • tools\chocolateyuninstall.ps1 Show
    #Requires -RunAsAdministrator
    
    $package = 'RSAT'
    $osInfo = Get-WmiObject Win32_OperatingSystem | SELECT Version, ProductType, Caption
    $osInfo.Version = [version] $osInfo.Version
    
    if ($osInfo.Version -lt [version]'6.0') {
        Write-Host 'The Remote System Administration Tool (RSAT) requires Windows Vista, Windows 2008 Server or later.'
        return
    }
    elseif ($osInfo.ProductType -ne 1) {
        Write-Host 'The RSAT is built into Windows server OSes, making this effectively a stub package'
    }
    else {
        if ($osInfo.Version.Major -eq 6) {
            if ($osInfo.Version.Minor -eq 0) { #Windows Vista
            }
            elseif ($osInfo.Version.Minor -eq 1) { #Windows 7
            }
            elseif ($osInfo.Version.Minor -eq 2) { #Windows 8
            }
    		elseif ($osInfo.Version.Minor -eq 3) { #Windows 8.1
            }
    		dism /online /get-features | Select-String -Pattern remote* | %{$Exec = "dism.exe /online /disable-feature /featurename:RemoteServerAdministrationTools /featurename:" + ($_).ToString().Replace('Feature Name : ',''); Invoke-expression $Exec}
        }elseif ($osInfo.Version.Major -eq 10) {
            if ($osInfo.Version.Minor -eq 0) { #Windows 10
            }
    		dism /online /get-features | Select-String -Pattern rsat* | %{$Exec = "dism.exe /online /disable-feature /featurename:RSATClient /featurename:" + ($_).ToString().Replace('Feature Name : ',''); Invoke-expression $Exec}
        }
    }
    
  • tools\LICENSE.txt Show
    Note: Include this file if including binaries you have the right to distribute. 
    Otherwise delete. this file.
    
    ===DELETE ABOVE THIS LINE AND THIS LINE===
    
    From: <insert applicable license url here>
    
    LICENSE
    
    <Insert License Here>
    
  • tools\VERIFICATION.txt Show
    Note: Include this file if including binaries you have the right to distribute. 
    Otherwise delete. this file.
    
    ===DELETE ABOVE THIS LINE AND THIS LINE===
    
    VERIFICATION
    Verification is intended to assist the Chocolatey moderators and community
    in verifying that this package's contents are trustworthy.
     
    <Include details of how to verify checksum contents>

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Maintainer(s)

Software Author(s)

  • microsoft

Tags

Version History

Version Downloads Last updated Status

Discussion for the rsat (Install) Package

Ground rules:

  • This discussion is only about rsat (Install) and the rsat (Install) package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or rsat (Install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus