{"id":571,"date":"2025-06-26T22:29:43","date_gmt":"2025-06-26T20:29:43","guid":{"rendered":"https:\/\/it4home.dk\/?p=571"},"modified":"2025-06-26T22:59:41","modified_gmt":"2025-06-26T20:59:41","slug":"keep-your-pc-safe-and-updated-with-winget","status":"publish","type":"post","link":"https:\/\/it4home.dk\/index.php\/2025\/06\/26\/keep-your-pc-safe-and-updated-with-winget\/","title":{"rendered":"Keep your PC safe and updated with &#8220;winget&#8221;"},"content":{"rendered":"<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-top-right\"><a href=\"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/571?print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\" ><\/a><a href=\"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/571?print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\" ><img decoding=\"async\" src=\"https:\/\/it4home.dk\/wp-content\/plugins\/pdf-print\/images\/print.png\" alt=\"image_print\" title=\"Print Content\" \/><\/a><\/div>\n<p class=\"wp-block-paragraph\">Windows now has a powerful package manager called <strong>winget<\/strong>, which makes it super easy to update all your installed applications with just one click \u2013 just like on Linux!<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"117\" height=\"77\" src=\"https:\/\/it4home.dk\/wp-content\/uploads\/2025\/06\/image.png\" alt=\"\" class=\"wp-image-577\" style=\"width:98px;height:auto\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">I\u2019ve created a shortcut on my desktop that automatically updates everything silently:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\Users\\knuds\\AppData\\Local\\Microsoft\\WindowsApps\\winget.exe upgrade --all --accept-source-agreements --accept-package-agreements --silent\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udd12 <strong>I run the shortcut as administrator<\/strong>, so it installs updates without asking for permission.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"381\" height=\"555\" src=\"https:\/\/it4home.dk\/wp-content\/uploads\/2025\/06\/image-1.png\" alt=\"\" class=\"wp-image-579\" style=\"width:243px;height:auto\" srcset=\"https:\/\/it4home.dk\/wp-content\/uploads\/2025\/06\/image-1.png 381w, https:\/\/it4home.dk\/wp-content\/uploads\/2025\/06\/image-1-206x300.png 206w\" sizes=\"auto, (max-width: 381px) 100vw, 381px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s how it looks:<br><img decoding=\"async\" src=\"attachment:file-Kyq2K35qnLM68qb8rd3Rm4\" alt=\"My shortcut and settings\"><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Exclude programs from updating \u2013 like Microsoft Office Enterprise<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If your company manages software like <strong>Microsoft Office<\/strong>, you don\u2019t want <code>winget<\/code> to update it. Luckily, you can \u201cpin\u201d apps to prevent updates.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc To <strong>pin (lock)<\/strong> Office so it won&#8217;t update:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>winget pin add --id Microsoft.Office\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd13 To <strong>unpin (unlock)<\/strong> it again:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>winget pin remove --id Microsoft.Office\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">To see all pinned apps:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>winget pin list\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Final Tips<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u2705 Run <strong>Windows Update<\/strong> regularly<br>\u2705 Use <code>winget upgrade --all<\/code> to keep your apps secure<br>\u2705 Use <strong>pinning<\/strong> to protect company-managed software<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With this simple shortcut and a few commands, you\u2019ll keep your system secure and fully up to date \u2013 with no effort.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also use winget to install programs ;O)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows now has a powerful package manager called winget, which makes it super easy to update all your installed applications with just one click \u2013 just like on Linux! I\u2019ve created a shortcut on&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":576,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[11,4],"tags":[],"class_list":["post-571","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","category-windows"],"_links":{"self":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/comments?post=571"}],"version-history":[{"count":5,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/571\/revisions"}],"predecessor-version":[{"id":583,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/571\/revisions\/583"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/media\/576"}],"wp:attachment":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/media?parent=571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/categories?post=571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/tags?post=571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}