0

I need to put this command that works in PowerShell into the deployment file of SysPrep (FirstLogonCommands => SyncronousCommand area).

Get-AppXPackage -AllUsers |Where-Object {$_.InstallLocation -like "*SystemApps*"} | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

How would you call powershell to execute that command so that it can be executed correctly on the first startup (Windows Server 2022)?

Andrea
  • 103
  • 8

0 Answers0