Enable-WinGetLocalManifest.ps1 (790B)
1 Function Enable-WinGetLocalManifest 2 { 3 <# 4 .SYNOPSIS 5 Enables the Windows Package Manager to work with local manifest files. 6 7 .DESCRIPTION 8 By running this cmdlet the Windows Package Manager will configured to support working with manifests on the file system. 9 10 .PARAMETER VerboseLog 11 Used to provide verbose logging for the Windows Package Manager. 12 #> 13 14 PARAM ( 15 [Parameter()] [switch] $VerboseLog 16 ) 17 BEGIN 18 { 19 [string[]] $WinGetArgs = "Settings", "--enable", "LocalManifestFiles" 20 $WinGetArgs += "--Verbose-Logs", $VerboseLog 21 } 22 PROCESS{ 23 & "WinGet" $WingetArgs 24 } 25 END{ 26 return 27 } 28 } 29 30 Export-ModuleMember -Function Enable-WinGetLocalManifest