xxxxxxxxxx
# Retrieve information about installed applications in Windows
Get-WmiObject -Class Win32_Product | Select-Object Name, Version
xxxxxxxxxx
Get-AppXPackage -allusers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_. InstallLocation)\AppXManifest. xml"}