

Write-Log "RSAT DNS Tools were already installed. State: $adState" -Source "ALTU"Īdd-WindowsCapability -Name $dhcpTools -Online -LimitAccess -Source $Sources Write-Log "RSAT AD Tools were already installed. State: $gpoState" -Source "ALTU"Īdd-WindowsCapability -Name $adTools -Online -LimitAccess -Source $Sources Write-Log "RSAT GPO Tools were already installed. State: $dnsState" -Source "ALTU"Īdd-WindowsCapability -Name $gpoTools -Online -LimitAccess -Source $Sources $Sources = Join-Path -Path $dirFiles -ChildPath $OSĪdd-WindowsCapability -Name $dnsTools -Online -LimitAccess -Source $Sources Write-Log "Microsoft RSAT Tools for Windows 10 $OS will be installed." -Source "ALTU" $FSState = Get-WindowsCapability -Name $FSTools -Online | Select-Object -ExpandProperty State $dhcpState = Get-WindowsCapability -Name $dhcpTools -Online | Select-Object -ExpandProperty State $adState = Get-WindowsCapability -Name $adTools -Online | Select-Object -ExpandProperty State

$gpoState = Get-WindowsCapability -Name $gpoTools -Online | Select-Object -ExpandProperty State $dnsState = Get-WindowsCapability -Name $dnsTools -Online | Select-Object -ExpandProperty State Write-Log "Installation will abort." -Source "ALTU" Write-Log "Only Windows 10 version 18 are supported." -Source "ALTU" No RSAT Tools found which are compatible with this version." -Source "ALTU" Write-Log "Windows 10 version $OS detected.

#Features on Demand for 1909 is the same for 1903 If 3010 is passed back to SCCM, a reboot prompt will be triggered.Ĭhanges to "user install mode" and back to "user execute mode" for installing/uninstalling applications for Remote Destkop Session Hosts/Citrix servers.ĭisables logging to file for the script. NonInteractive mode is automatically set if it is detected that the process is not user interactive.Īllows the 3010 return code (requires restart) to be passed back to the parent process (e.g.

Options: Interactive = Shows dialogs, Silent = No dialogs, NonInteractive = Very silent, i.e. Specifies whether the installation should be run in Interactive, Silent, or NonInteractive mode. The script dot-sources the AppDeployToolkitMain.ps1 script which contains the logic and functions required to install or uninstall an application. The install deployment type is broken down into 3 main sections/phases: Pre-Install, Install, and Post-Install. The script either performs an "Install" deployment type or an "Uninstall" deployment type. The script is provided as a template to perform an install or uninstall of an application(s). My Files folder contains two folders for the Windows 10 version for which you want to make RSAT available: You can obviously copy more RSAT components but these are the ones we use. I copied the whole metadata folder without filtering as it’s only 500KB.
