Can i delete package cache

broken image
broken image

$Features = 'Microsoft-Hyper-V-All ', 'Microsoft-Hyper-V-Tools-All ', 'Microsoft-Hyper-V-Management-PowerShell ' | ForEach-Object | Select-Object -expand FeatureName

broken image

# Make sure the necessary Windows features are enabled. $CachePath = Join-Path $ env:ProgramData 'Package Cache ' Import-Module 'Dism ', 'Storage ', 'ScheduledTasks ' # Make sure modules are loaded (Tip: PSv3 supports '# Requires -Modules '). Write-Error 'Elevated privileges are required to move the package cache. $Principal = New-Object (::GetCurrent()) # Require elevated privileges (Tip: PSv4 supports '# Requires -RunAsAdministrator'). Learn more about bidirectional Unicode characters To review, open the file in an editor that reveals hidden Unicode characters. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below.