Downloads:

187,427

Downloads of v 2.1:

14,129

Last Update:

13 Nov 2017

Package Maintainer(s):

Software Author(s):

  • microsoft

Tags:

rsat admin administration

rsat (Install)

This is not the latest version of rsat (Install) available.

  • 1
  • 2
  • 3

2.1 | Updated: 13 Nov 2017

Downloads:

187,427

Downloads of v 2.1:

14,129

Software Author(s):

  • microsoft

  • 1
  • 2
  • 3
rsat (Install) 2.1

This is not the latest version of rsat (Install) available.

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

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

>

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

>

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

>

Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade rsat -y --source="'INTERNAL REPO URL'" --version="'2.1'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade rsat -y --source="'INTERNAL REPO URL'" --version="'2.1'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install rsat
  win_chocolatey:
    name: rsat
    version: '2.1'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'rsat' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '2.1'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller rsat
{
    Name     = "rsat"
    Version  = "2.1"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'rsat':
  ensure   => '2.1',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 17 May 2018.

Description

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


tools\chocolateybeforemodify.ps1
# 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
#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-string -Pattern 'WS2016' -NotMatch | Select-Object -Unique 
	$url64      = $web.links.href |where-Object {$_ -like "*x64*" } | select-string -Pattern 'WS2016' -NotMatch | 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
#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
From: Lowmach1ne

LICENSE

Microsoft
tools\VERIFICATION.txt

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>

Log in or click on link to see number of positives.

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.

Add to Builder Version Downloads Last Updated Status
Remote Server Administration Tools 2.1809.0.20210804 3086 Wednesday, August 4, 2021 Approved
Remote Server Administration Tools 2.1809.0.20210707 5803 Wednesday, July 7, 2021 Approved
Remote Server Administration Tools 2.1809.0.20200703 39826 Friday, July 3, 2020 Approved
Remote Server Administration Tools 2.1809.0.20200528 5087 Thursday, May 28, 2020 Approved
Remote Server Administration Tools 2.1809.0.20190205 45807 Wednesday, February 6, 2019 Approved
Remote Server Administration Tools 2.1809.0.20190111 1027 Monday, January 28, 2019 Approved
Remote Server Administration Tools 2.1809 3259 Wednesday, December 12, 2018 Approved
Remote Server Administration Tools 2.1803.0.201806011 6786 Monday, June 11, 2018 Approved
Remote Server Administration Tools 2.1803.0.20180604 1333 Monday, June 4, 2018 Approved
Remote Server Administration Tools 2.1803.0.20180601 520 Friday, June 1, 2018 Approved
Remote Server Administration Tools 2.1803 786 Thursday, May 31, 2018 Approved
rsat (Install) 2.1 14129 Monday, November 13, 2017 Approved
rsat (Install) 2.0 2150 Tuesday, August 29, 2017 Approved

This package has no dependencies.

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