{"id":7829,"date":"2024-04-12T03:13:51","date_gmt":"2024-04-12T03:13:51","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=7829"},"modified":"2024-10-06T11:15:36","modified_gmt":"2024-10-06T11:15:36","slug":"server-2019-2022-winget","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget","title":{"rendered":"Server 2019 \\ 2022 Winget"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/asheroto\/winget-install\">https:\/\/github.com\/asheroto\/winget-install<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">Install-PackageProvider -Name \"NuGet\" -Force\nSet-PSRepository -Name \"PSGallery\" -InstallationPolicy Trusted\nInstall-Script winget-install -Force\nwinget-install\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\"># Create WinGet Folder<br>New-Item -Path C:\\WinGet -ItemType directory -ErrorAction SilentlyContinue<br><br># Install VCLibs<br>Invoke-WebRequest -Uri https:\/\/aka.ms\/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile \"C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx\"<br>Add-AppxPackage \"C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx\"<br><br># Install Microsoft.UI.Xaml from NuGet<br>Invoke-WebRequest -Uri https:\/\/www.nuget.org\/api\/v2\/package\/Microsoft.UI.Xaml\/2.8.8 -OutFile \"C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip\"<br>Expand-Archive \"C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip\" -DestinationPath \"C:\\WinGet\\Microsoft.UI.Xaml.2.8.8\"<br>Add-AppxPackage \"C:\\WinGet\\Microsoft.UI.Xaml.2.8.6\\tools\\AppX\\x64\\Release\\Microsoft.UI.Xaml.2.8.appx\"<br><br># Install latest WinGet from GitHub<br>Invoke-WebRequest -Uri https:\/\/github.com\/microsoft\/winget-cli\/releases\/latest\/download\/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile \"C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle\"<br>Add-AppxPackage \"C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle\"<br><br># Fix Permissions<br>TAKEOWN \/F \"C:\\Program Files\\WindowsApps\" \/R \/A \/D Y<br>ICACLS \"C:\\Program Files\\WindowsApps\" \/grant Administrators:F \/T<br><br># Add Environment Path<br>$ResolveWingetPath = Resolve-Path \"C:\\Program Files\\WindowsApps\\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\"<br>if ($ResolveWingetPath) {<br>\t$WingetPath = $ResolveWingetPath[-1].Path<br>}<br>$ENV:PATH += \";$WingetPath\"<br>$SystemEnvPath = [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::Machine)<br>$SystemEnvPath += \";$WingetPath;\"<br>setx \/M PATH \"$SystemEnvPath\"<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">Write-Information \"This script needs be run on Windows Server 2019 or 2022\"<br><br>If ($PSVersionTable.PSVersion.Major -ge 7){ Write-Error \"This script needs be run by version of PowerShell prior to 7.0\" }<br><br># Define environment variables<br>$downloadDir = \"C:\\WinGet\"<br>$gitRepo = \"microsoft\/winget-cli\"<br>$msiFilenamePattern = \"*.msixbundle\"<br>$licenseFilenamePattern = \"*.xml\"<br>$releasesUri = \"https:\/\/api.github.com\/repos\/$gitRepo\/releases\/latest\"<br><br># Preparing working directory<br>New-Item -Path $downloadDir -ItemType Directory<br>Push-Location $downloadDir<br><br># Downloaing artifacts<br>function Install-Package {<br>    param (<br>        [string]$PackageFamilyName<br>    )<br><br>    Write-Host \"Querying latest $PackageFamilyName version and its dependencies...\"<br>    $response = Invoke-WebRequest `<br>        -Uri \"https:\/\/store.rg-adguard.net\/api\/GetFiles\" `<br>        -Method \"POST\" `<br>        -ContentType \"application\/x-www-form-urlencoded\" `<br>        -Body \"type=PackageFamilyName&amp;url=$PackageFamilyName&amp;ring=RP&amp;lang=en-US\" -UseBasicParsing<br><br>    Write-Host \"Parsing response...\"<br>    $regex = '&lt;td&gt;&lt;a href=\\\"([^\\\"]*)\\\"[^\\&gt;]*\\&gt;([^\\&lt;]*)&lt;\\\/a&gt;'<br>    $packages = (Select-String $regex -InputObject $response -AllMatches).Matches.Groups<br><br>    $result = $true<br>    for ($i = $packages.Count - 1; $i -ge 0; $i -= 3) {<br>        $url = $packages[$i - 1].Value;<br>        $name = $packages[$i].Value;<br>        $extCheck = @(\".appx\", \".appxbundle\", \".msix\", \".msixbundle\") | % { $x = $false } { $x = $x -or $name.EndsWith($_) } { $x }<br>        $archCheck = @(\"x64\", \"neutral\") | % { $x = $false } { $x = $x -or $name.Contains(\"_$($_)_\") } { $x }<br><br>        if ($extCheck -and $archCheck) {<br>            # Skip if package already exists on system<br>            $currentPackageFamilyName = (Select-String \"^[^_]+\" -InputObject $name).Matches.Value<br>            $installedVersion = (Get-AppxPackage \"$currentPackageFamilyName*\").Version<br>            $latestVersion = (Select-String \"_(\\d+\\.\\d+.\\d+.\\d+)_\" -InputObject $name).Matches.Value<br>            if ($installedVersion -and ($installedVersion -ge $latestVersion)) {<br>                Write-Host \"${currentPackageFamilyName} is already installed, skipping...\" -ForegroundColor \"Yellow\"<br>                continue<br>            }<br><br>            try {<br>                Write-Host \"Downloading package: $name\"<br>                $tempPath = \"$(Get-Location)\\$name\"<br>                Invoke-WebRequest -Uri $url -Method Get -OutFile $tempPath<br>                Add-AppxPackage -Path $tempPath<br>                Write-Host \"Successfully installed:\" $name<br>            } catch {<br>                $result = $false<br>            }<br>        }<br>    }<br><br>    return $result<br>}<br><br>Write-Host \"`n\"<br><br>function Install-Package-With-Retry {<br>    param (<br>        [string]$PackageFamilyName,<br>        [int]$RetryCount<br>    )<br><br>    for ($t = 0; $t -le $RetryCount; $t++) {<br>        Write-Host \"Attempt $($t + 1) out of $RetryCount...\" -ForegroundColor \"Cyan\"<br>        if (Install-Package $PackageFamilyName) {<br>            return $true<br>        }<br>    }<br><br>    return $false<br>}<br><br>$licenseDownloadUri = ((Invoke-RestMethod -Method GET -Uri $releasesUri).assets | Where-Object name -like $licenseFilenamePattern ).browser_download_url<br>$licenseFilename = ((Invoke-RestMethod -Method GET -Uri $releasesUri).assets | Where-Object name -like $licenseFilenamePattern ).name<br>$licenseJoinPath = Join-Path -Path $downloadDir -ChildPath $licenseFilename<br>Invoke-WebRequest -Uri $licenseDownloadUri -OutFile ( New-Item -Path $licenseJoinPath -Force )<br><br>$result = @(\"Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\") | ForEach-Object { $x = $true } { $x = $x -and (Install-Package-With-Retry $_ 3) } { $x }<br><br>$msiFilename = ((Get-ChildItem -Path $downloadDir) | Where-Object name -like $msiFilenamePattern ).name<br>$msiJoinPath = Join-Path -Path $downloadDir -ChildPath $msiFilename<br><br># Installing winget<br>Add-ProvisionedAppPackage -Online -PackagePath $msiJoinPath -LicensePath $licenseJoinPath -Verbose<br><br>Write-Host \"`n\"<br><br># Test if winget has been successfully installed<br>if ($result -and (Test-Path -Path \"$env:LOCALAPPDATA\\Microsoft\\WindowsApps\\winget.exe\")) {<br>    Write-Host \"Congratulations! Windows Package Manager (winget) $(winget --version) installed successfully\" -ForegroundColor \"Green\"<br>} else {<br>    Write-Host \"Oops... Failed to install Windows Package Manager (winget)\" -ForegroundColor \"Red\"<br>}<br><br># Cleanup<br>Push-Location $HOME<br>Remove-Item $downloadDir -Recurse -Force<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/github.com\/asheroto\/winget-install<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7829","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"https:\/\/github.com\/asheroto\/winget-install Install-PackageProvider -Name &quot;NuGet&quot; -Force Set-PSRepository -Name &quot;PSGallery&quot; -InstallationPolicy Trusted Install-Script winget-install -Force winget-install # Create WinGet FolderNew-Item -Path C:\\WinGet -ItemType directory -ErrorAction SilentlyContinue# Install VCLibsInvoke-WebRequest -Uri https:\/\/aka.ms\/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile &quot;C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx&quot;# Install Microsoft.UI.Xaml from NuGetInvoke-WebRequest -Uri https:\/\/www.nuget.org\/api\/v2\/package\/Microsoft.UI.Xaml\/2.8.8 -OutFile &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip&quot;Expand-Archive &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip&quot; -DestinationPath &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.6\\tools\\AppX\\x64\\Release\\Microsoft.UI.Xaml.2.8.appx&quot;# Install latest WinGet from GitHubInvoke-WebRequest -Uri https:\/\/github.com\/microsoft\/winget-cli\/releases\/latest\/download\/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile &quot;C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle&quot;# Fix PermissionsTAKEOWN\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"paris\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Welcome to Pariswells.com |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Server 2019 \\ 2022 Winget | Welcome to Pariswells.com\" \/>\n\t\t<meta property=\"og:description\" content=\"https:\/\/github.com\/asheroto\/winget-install Install-PackageProvider -Name &quot;NuGet&quot; -Force Set-PSRepository -Name &quot;PSGallery&quot; -InstallationPolicy Trusted Install-Script winget-install -Force winget-install # Create WinGet FolderNew-Item -Path C:\\WinGet -ItemType directory -ErrorAction SilentlyContinue# Install VCLibsInvoke-WebRequest -Uri https:\/\/aka.ms\/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile &quot;C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx&quot;# Install Microsoft.UI.Xaml from NuGetInvoke-WebRequest -Uri https:\/\/www.nuget.org\/api\/v2\/package\/Microsoft.UI.Xaml\/2.8.8 -OutFile &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip&quot;Expand-Archive &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip&quot; -DestinationPath &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.6\\tools\\AppX\\x64\\Release\\Microsoft.UI.Xaml.2.8.appx&quot;# Install latest WinGet from GitHubInvoke-WebRequest -Uri https:\/\/github.com\/microsoft\/winget-cli\/releases\/latest\/download\/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile &quot;C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle&quot;# Fix PermissionsTAKEOWN\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-04-12T03:13:51+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-10-06T11:15:36+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Server 2019 \\ 2022 Winget | Welcome to Pariswells.com\" \/>\n\t\t<meta name=\"twitter:description\" content=\"https:\/\/github.com\/asheroto\/winget-install Install-PackageProvider -Name &quot;NuGet&quot; -Force Set-PSRepository -Name &quot;PSGallery&quot; -InstallationPolicy Trusted Install-Script winget-install -Force winget-install # Create WinGet FolderNew-Item -Path C:\\WinGet -ItemType directory -ErrorAction SilentlyContinue# Install VCLibsInvoke-WebRequest -Uri https:\/\/aka.ms\/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile &quot;C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx&quot;# Install Microsoft.UI.Xaml from NuGetInvoke-WebRequest -Uri https:\/\/www.nuget.org\/api\/v2\/package\/Microsoft.UI.Xaml\/2.8.8 -OutFile &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip&quot;Expand-Archive &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip&quot; -DestinationPath &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.6\\tools\\AppX\\x64\\Release\\Microsoft.UI.Xaml.2.8.appx&quot;# Install latest WinGet from GitHubInvoke-WebRequest -Uri https:\/\/github.com\/microsoft\/winget-cli\/releases\/latest\/download\/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile &quot;C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle&quot;# Fix PermissionsTAKEOWN\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/server-2019-2022-winget#article\",\"name\":\"Server 2019 \\\\ 2022 Winget | Welcome to Pariswells.com\",\"headline\":\"Server 2019 \\\\ 2022 Winget\",\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"},\"datePublished\":\"2024-04-12T03:13:51+00:00\",\"dateModified\":\"2024-10-06T11:15:36+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/server-2019-2022-winget#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/server-2019-2022-winget#webpage\"},\"articleSection\":\"Research\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/server-2019-2022-winget#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"position\":2,\"name\":\"Research\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/server-2019-2022-winget#listItem\",\"name\":\"Server 2019 \\\\ 2022 Winget\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/server-2019-2022-winget#listItem\",\"position\":3,\"name\":\"Server 2019 \\\\ 2022 Winget\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\",\"name\":\"Welcome to Pariswells.com\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris\",\"name\":\"paris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/server-2019-2022-winget#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"paris\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/server-2019-2022-winget#webpage\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/server-2019-2022-winget\",\"name\":\"Server 2019 \\\\ 2022 Winget | Welcome to Pariswells.com\",\"description\":\"https:\\\/\\\/github.com\\\/asheroto\\\/winget-install Install-PackageProvider -Name \\\"NuGet\\\" -Force Set-PSRepository -Name \\\"PSGallery\\\" -InstallationPolicy Trusted Install-Script winget-install -Force winget-install # Create WinGet FolderNew-Item -Path C:\\\\WinGet -ItemType directory -ErrorAction SilentlyContinue# Install VCLibsInvoke-WebRequest -Uri https:\\\/\\\/aka.ms\\\/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile \\\"C:\\\\WinGet\\\\Microsoft.VCLibs.x64.14.00.Desktop.appx\\\"Add-AppxPackage \\\"C:\\\\WinGet\\\\Microsoft.VCLibs.x64.14.00.Desktop.appx\\\"# Install Microsoft.UI.Xaml from NuGetInvoke-WebRequest -Uri https:\\\/\\\/www.nuget.org\\\/api\\\/v2\\\/package\\\/Microsoft.UI.Xaml\\\/2.8.8 -OutFile \\\"C:\\\\WinGet\\\\Microsoft.UI.Xaml.2.8.8.zip\\\"Expand-Archive \\\"C:\\\\WinGet\\\\Microsoft.UI.Xaml.2.8.8.zip\\\" -DestinationPath \\\"C:\\\\WinGet\\\\Microsoft.UI.Xaml.2.8.8\\\"Add-AppxPackage \\\"C:\\\\WinGet\\\\Microsoft.UI.Xaml.2.8.6\\\\tools\\\\AppX\\\\x64\\\\Release\\\\Microsoft.UI.Xaml.2.8.appx\\\"# Install latest WinGet from GitHubInvoke-WebRequest -Uri https:\\\/\\\/github.com\\\/microsoft\\\/winget-cli\\\/releases\\\/latest\\\/download\\\/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile \\\"C:\\\\WinGet\\\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle\\\"Add-AppxPackage \\\"C:\\\\WinGet\\\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle\\\"# Fix PermissionsTAKEOWN\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/server-2019-2022-winget#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"datePublished\":\"2024-04-12T03:13:51+00:00\",\"dateModified\":\"2024-10-06T11:15:36+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"name\":\"Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Server 2019 \\ 2022 Winget | Welcome to Pariswells.com","description":"https:\/\/github.com\/asheroto\/winget-install Install-PackageProvider -Name \"NuGet\" -Force Set-PSRepository -Name \"PSGallery\" -InstallationPolicy Trusted Install-Script winget-install -Force winget-install # Create WinGet FolderNew-Item -Path C:\\WinGet -ItemType directory -ErrorAction SilentlyContinue# Install VCLibsInvoke-WebRequest -Uri https:\/\/aka.ms\/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile \"C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx\"Add-AppxPackage \"C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx\"# Install Microsoft.UI.Xaml from NuGetInvoke-WebRequest -Uri https:\/\/www.nuget.org\/api\/v2\/package\/Microsoft.UI.Xaml\/2.8.8 -OutFile \"C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip\"Expand-Archive \"C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip\" -DestinationPath \"C:\\WinGet\\Microsoft.UI.Xaml.2.8.8\"Add-AppxPackage \"C:\\WinGet\\Microsoft.UI.Xaml.2.8.6\\tools\\AppX\\x64\\Release\\Microsoft.UI.Xaml.2.8.appx\"# Install latest WinGet from GitHubInvoke-WebRequest -Uri https:\/\/github.com\/microsoft\/winget-cli\/releases\/latest\/download\/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile \"C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle\"Add-AppxPackage \"C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle\"# Fix PermissionsTAKEOWN","canonical_url":"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget#article","name":"Server 2019 \\ 2022 Winget | Welcome to Pariswells.com","headline":"Server 2019 \\ 2022 Winget","author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"},"datePublished":"2024-04-12T03:13:51+00:00","dateModified":"2024-10-06T11:15:36+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget#webpage"},"isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget#webpage"},"articleSection":"Research"},{"@type":"BreadcrumbList","@id":"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/pariswells.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","position":2,"name":"Research","item":"https:\/\/pariswells.com\/blog\/category\/research","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget#listItem","name":"Server 2019 \\ 2022 Winget"},"previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget#listItem","position":3,"name":"Server 2019 \\ 2022 Winget","previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}}]},{"@type":"Organization","@id":"https:\/\/pariswells.com\/blog\/#organization","name":"Welcome to Pariswells.com","url":"https:\/\/pariswells.com\/blog\/"},{"@type":"Person","@id":"https:\/\/pariswells.com\/blog\/author\/paris#author","url":"https:\/\/pariswells.com\/blog\/author\/paris","name":"paris","image":{"@type":"ImageObject","@id":"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g","width":96,"height":96,"caption":"paris"}},{"@type":"WebPage","@id":"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget#webpage","url":"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget","name":"Server 2019 \\ 2022 Winget | Welcome to Pariswells.com","description":"https:\/\/github.com\/asheroto\/winget-install Install-PackageProvider -Name \"NuGet\" -Force Set-PSRepository -Name \"PSGallery\" -InstallationPolicy Trusted Install-Script winget-install -Force winget-install # Create WinGet FolderNew-Item -Path C:\\WinGet -ItemType directory -ErrorAction SilentlyContinue# Install VCLibsInvoke-WebRequest -Uri https:\/\/aka.ms\/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile \"C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx\"Add-AppxPackage \"C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx\"# Install Microsoft.UI.Xaml from NuGetInvoke-WebRequest -Uri https:\/\/www.nuget.org\/api\/v2\/package\/Microsoft.UI.Xaml\/2.8.8 -OutFile \"C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip\"Expand-Archive \"C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip\" -DestinationPath \"C:\\WinGet\\Microsoft.UI.Xaml.2.8.8\"Add-AppxPackage \"C:\\WinGet\\Microsoft.UI.Xaml.2.8.6\\tools\\AppX\\x64\\Release\\Microsoft.UI.Xaml.2.8.appx\"# Install latest WinGet from GitHubInvoke-WebRequest -Uri https:\/\/github.com\/microsoft\/winget-cli\/releases\/latest\/download\/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile \"C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle\"Add-AppxPackage \"C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle\"# Fix PermissionsTAKEOWN","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget#breadcrumblist"},"author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"creator":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"datePublished":"2024-04-12T03:13:51+00:00","dateModified":"2024-10-06T11:15:36+00:00"},{"@type":"WebSite","@id":"https:\/\/pariswells.com\/blog\/#website","url":"https:\/\/pariswells.com\/blog\/","name":"Welcome to Pariswells.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Welcome to Pariswells.com |","og:type":"article","og:title":"Server 2019 \\ 2022 Winget | Welcome to Pariswells.com","og:description":"https:\/\/github.com\/asheroto\/winget-install Install-PackageProvider -Name &quot;NuGet&quot; -Force Set-PSRepository -Name &quot;PSGallery&quot; -InstallationPolicy Trusted Install-Script winget-install -Force winget-install # Create WinGet FolderNew-Item -Path C:\\WinGet -ItemType directory -ErrorAction SilentlyContinue# Install VCLibsInvoke-WebRequest -Uri https:\/\/aka.ms\/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile &quot;C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx&quot;# Install Microsoft.UI.Xaml from NuGetInvoke-WebRequest -Uri https:\/\/www.nuget.org\/api\/v2\/package\/Microsoft.UI.Xaml\/2.8.8 -OutFile &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip&quot;Expand-Archive &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip&quot; -DestinationPath &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.6\\tools\\AppX\\x64\\Release\\Microsoft.UI.Xaml.2.8.appx&quot;# Install latest WinGet from GitHubInvoke-WebRequest -Uri https:\/\/github.com\/microsoft\/winget-cli\/releases\/latest\/download\/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile &quot;C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle&quot;# Fix PermissionsTAKEOWN","og:url":"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget","article:published_time":"2024-04-12T03:13:51+00:00","article:modified_time":"2024-10-06T11:15:36+00:00","twitter:card":"summary","twitter:title":"Server 2019 \\ 2022 Winget | Welcome to Pariswells.com","twitter:description":"https:\/\/github.com\/asheroto\/winget-install Install-PackageProvider -Name &quot;NuGet&quot; -Force Set-PSRepository -Name &quot;PSGallery&quot; -InstallationPolicy Trusted Install-Script winget-install -Force winget-install # Create WinGet FolderNew-Item -Path C:\\WinGet -ItemType directory -ErrorAction SilentlyContinue# Install VCLibsInvoke-WebRequest -Uri https:\/\/aka.ms\/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile &quot;C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.VCLibs.x64.14.00.Desktop.appx&quot;# Install Microsoft.UI.Xaml from NuGetInvoke-WebRequest -Uri https:\/\/www.nuget.org\/api\/v2\/package\/Microsoft.UI.Xaml\/2.8.8 -OutFile &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip&quot;Expand-Archive &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8.zip&quot; -DestinationPath &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.8&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.UI.Xaml.2.8.6\\tools\\AppX\\x64\\Release\\Microsoft.UI.Xaml.2.8.appx&quot;# Install latest WinGet from GitHubInvoke-WebRequest -Uri https:\/\/github.com\/microsoft\/winget-cli\/releases\/latest\/download\/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -OutFile &quot;C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle&quot;Add-AppxPackage &quot;C:\\WinGet\\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle&quot;# Fix PermissionsTAKEOWN"},"aioseo_meta_data":{"post_id":"7829","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-04-12 03:12:45","updated":"2024-05-01 23:18:43","primary_term":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/category\/research\" title=\"Research\">Research<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tServer 2019 \\ 2022 Winget\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/pariswells.com\/blog"},{"label":"Research","link":"https:\/\/pariswells.com\/blog\/category\/research"},{"label":"Server 2019 \\ 2022 Winget","link":"https:\/\/pariswells.com\/blog\/research\/server-2019-2022-winget"}],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=7829"}],"version-history":[{"count":6,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7829\/revisions"}],"predecessor-version":[{"id":8335,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7829\/revisions\/8335"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=7829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=7829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=7829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}