Downloads:

65,962

Downloads of v 2.1:

13,951

Last Update:

11/13/2017

Package Maintainer(s):

Software Author(s):

  • microsoft

Tags:

rsat admin administration

rsat (Install)

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

2.1 | Updated: 11/13/2017

Downloads:

65,962

Downloads of v 2.1:

13,951

Software Author(s):

  • microsoft

rsat (Install) 2.1

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

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

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:

>

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

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • 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://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. Enter your internal repository url

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

4. Choose your deployment method:


choco upgrade rsat -y --source="'STEP 3 URL'" [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="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Ensure rsat installed
  win_chocolatey:
    name: rsat
    state: present
    version: 2.1
    source: STEP 3 URL

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

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'rsat' do
  action    :install
  version  '2.1'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: rsat,
    Version: 2.1,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller rsat
{
   Name     = 'rsat'
   Ensure   = 'Present'
   Version  = '2.1'
   Source   = 'STEP 3 URL'
}

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


package { 'rsat':
  provider => 'chocolatey',
  ensure   => '2.1',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install rsat version="2.1" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 5/17/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>

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.

Version Downloads Last Updated Status
Remote Server Administration Tools 2.1809.0.20190111 882 Monday, January 28, 2019 Approved
Remote Server Administration Tools 2.1809 3108 Wednesday, December 12, 2018 Approved
Remote Server Administration Tools 2.1803.0.201806011 6602 Monday, June 11, 2018 Approved
Remote Server Administration Tools 2.1803.0.20180604 1190 Monday, June 4, 2018 Approved
Remote Server Administration Tools 2.1803.0.20180601 401 Friday, June 1, 2018 Approved
Remote Server Administration Tools 2.1803 623 Thursday, May 31, 2018 Approved
rsat (Install) 2.1 13951 Monday, November 13, 2017 Approved
rsat (Install) 2.0 1921 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