Winget Pre-Install
Troubleshooting the Winget Pre-Install
Troubleshooting Winget Pre-Install with Pckgr
Setup PowerShell to Run as SYSTEM
To effectively test PowerShell scripts as the System account, follow the guidelines provided in the PowerShell Toolbox. This ensures that your scripts have the appropriate permissions to execute and interact with system-level components.
Running the Winget Check Script
Execute the following script to verify the installation and version of Winget on your system. The script will identify the path to the Winget executable(s), determine the latest version, and check if it meets the required version criteria. Please run the script using the STSYEM account and report any errors encountered during execution.
Script Breakdown
Retrieve Winget Paths:
The script searches for
winget.exe
within theC:\Program Files\WindowsApps
directory and retrieves the full paths of any found instances.
Identify Latest Version:
If multiple
winget.exe
files are found, the script extracts and sorts their version numbers to identify the latest one.
Check Winget Installation:
The script runs the identified
winget.exe
and checks for the presence of "Windows Package Manager" in its output.
Verify Winget Version:
The version of Winget is compared to the required version (
1.6.3482
). The script provides feedback on whether Winget is up to date or not.
Reporting Issues
After running the script, please report any errors or unexpected outputs. This information will help diagnose and resolve any issues related to Winget installation or version discrepancies.
Last updated