Jump to content


lalajee

Windows 10 20H2 RSAT tools are failing to install from FOD

Recommended Posts

Hi,

I'm trying to install RSAT tools on Windows 10 20H2 but it keep failing

Step I use to install.
I download the FOD from Microsoft site "Windows 10 2004 FOD" which is also for 20H2
Then run this script to extract the files 

$FoD_Source = "C:\Downloads\W10RSAT_FOD\2004\2004_FoD_Disk.iso"
    
 Mount-DiskImage -ImagePath "$FoD_Source"
    
 $path = (Get-DiskImage "$FoD_Source" | Get-Volume).DriveLetter
    
 $lang = "en-US"
    
    
    
 $dest = New-Item -ItemType Directory -Path "$env:SystemDrive\temp\RSAT_2004_$lang" -force
    
    
 Get-ChildItem ($path+":\") -name -recurse -include *~amd64~~.cab,*~wow64~~.cab,*~amd64~$lang~.cab,*~wow64~$lang~.cab -exclude *languagefeatures*,*Holographic*,*NetFx3*,*OpenSSH*,*Msix* |
 ForEach-Object {copy-item -Path ($path+“:\”+$_) -Destination $dest.FullName -Force -Container}
    
 #get metadata
    
 copy-item ($path+":\metadata") -Destination $dest.FullName -Recurse
    
 copy-item ($path +“:\"+“FoDMetadata_Client.cab”) -Destination $dest.FullName -Force -Container
    
 #Dismount ISO
    
 Dismount-DiskImage -ImagePath "$FOD_Source"

 

Then use this script to install the RSAT tools 

 $FoD_Source = "$env:SystemDrive\temp\RSAT_2004_en_US"
    
 $RSAT_FoD = Get-WindowsCapability Online | Where-Object Name -like 'RSAT*'
    
 #Install RSAT Tools
 Foreach ($RSAT_FoD_Item in $RSAT_FoD)
 {
     Add-WindowsCapability -Online -Name $RSAT_FoD_Item.name -Source $FoD_Source -LimitAccess
 }

but i get this error message 

Add-WindowsCapability : The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more
information on specifying a source location, see https://go.microsoft.com/fwlink/?LinkId=243077.

At line:1 char:39
+ ... $RSAT_FoD){Add-WindowsCapability -Online -Name $RSAT_FoD_Item.name - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Add-WindowsCapability], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsCapabilityCommand

 

Share this post


Link to post
Share on other sites

here's the error, verify that the source files are in the locations specified in your -source path,

 

Add-WindowsCapability : The source files could not be found.

Share this post


Link to post
Share on other sites

We have WU blocked as all patching is handled by MEMCM.  I found this workaround script to temporarily enable in the registry, add the feature, then set the registry back to what is was prior.

 

$currentWU = Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" | select -ExpandProperty UseWUServer
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" -Value 0
Restart-Service wuauserv
Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability –Online
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" -Value $currentWU
Restart-Service wuauserv

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...