{"id":10,"date":"2025-06-27T04:38:49","date_gmt":"2025-06-27T04:38:49","guid":{"rendered":"https:\/\/mymobiz.co.th\/blog\/?page_id=10"},"modified":"2025-06-27T06:23:25","modified_gmt":"2025-06-27T06:23:25","slug":"how-to-update-powershell-winget","status":"publish","type":"post","link":"https:\/\/mymobiz.co.th\/blog\/how-to-update-powershell-winget\/","title":{"rendered":"\u0e27\u0e34\u0e18\u0e35\u0e2d\u0e31\u0e1b\u0e40\u0e14\u0e15 PowerShell \u0e1a\u0e19 Windows 10 \u0e41\u0e25\u0e30 11 \u0e14\u0e49\u0e27\u0e22\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 winget"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"10\" class=\"elementor elementor-10\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5bdc663 e-flex e-con-boxed e-con e-parent\" data-id=\"5bdc663\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-85f8f94 elementor-widget elementor-widget-image\" data-id=\"85f8f94\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"563\" height=\"153\" src=\"https:\/\/mymobiz.co.th\/blog\/wp-content\/uploads\/2025\/06\/update.png\" class=\"attachment-large size-large wp-image-18\" alt=\"\" srcset=\"https:\/\/mymobiz.co.th\/blog\/wp-content\/uploads\/2025\/06\/update.png 563w, https:\/\/mymobiz.co.th\/blog\/wp-content\/uploads\/2025\/06\/update-300x82.png 300w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-2f8e2ef e-flex e-con-boxed e-con e-parent\" data-id=\"2f8e2ef\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-aa9460e elementor-widget elementor-widget-heading\" data-id=\"aa9460e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0e27\u0e34\u0e18\u0e35\u0e2d\u0e31\u0e1b\u0e40\u0e14\u0e15 PowerShell \u0e1c\u0e48\u0e32\u0e19 PowerShell \u0e14\u0e49\u0e27\u0e22\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 winget<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bd6cec6 elementor-widget elementor-widget-html\" data-id=\"bd6cec6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"code-container\">\r\n    <code id=\"cmd1\">winget install --id Microsoft.PowerShell --source winget<\/code>\r\n<span class=\"copied-msg\" id=\"msg1\" style=\"display:none;color:green;\">\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e41\u0e25\u0e49\u0e27<\/span>>\r\n   <button class=\"copy-btn\" onclick=\"copyCommandById('cmd1', 'msg1')\" aria-label=\"\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\">\r\n      <svg viewBox=\"0 0 24 24\">\r\n        <path d=\"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z\"\/>\r\n      <\/svg>\r\n    <\/button>\r\n  <\/div>\r\n\r\n \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e4283ab elementor-widget elementor-widget-image\" data-id=\"e4283ab\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1024\" height=\"162\" src=\"https:\/\/mymobiz.co.th\/blog\/wp-content\/uploads\/2025\/06\/win-get-update-1024x162.png\" class=\"attachment-large size-large wp-image-19\" alt=\"\" srcset=\"https:\/\/mymobiz.co.th\/blog\/wp-content\/uploads\/2025\/06\/win-get-update-1024x162.png 1024w, https:\/\/mymobiz.co.th\/blog\/wp-content\/uploads\/2025\/06\/win-get-update-300x48.png 300w, https:\/\/mymobiz.co.th\/blog\/wp-content\/uploads\/2025\/06\/win-get-update-768x122.png 768w, https:\/\/mymobiz.co.th\/blog\/wp-content\/uploads\/2025\/06\/win-get-update.png 1104w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-19deab9 elementor-widget elementor-widget-text-editor\" data-id=\"19deab9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\ud83d\udd04 \u0e2d\u0e31\u0e1b\u0e40\u0e14\u0e15 PowerShell \u0e40\u0e09\u0e1e\u0e32\u0e30\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e19\u0e43\u0e2b\u0e21\u0e48 (\u0e41\u0e17\u0e19\u0e17\u0e35\u0e48\u0e08\u0e30\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e43\u0e2b\u0e21\u0e48)<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7fa6798 elementor-widget elementor-widget-html\" data-id=\"7fa6798\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"code-container\">\n    <code id=\"cmd2\">winget upgrade --id Microsoft.PowerShell<\/code>\n    <span class=\"copied-msg\" id=\"msg2\">\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e41\u0e25\u0e49\u0e27<\/span>\n     <button class=\"copy-btn\" onclick=\"copyCommandById('cmd2', 'msg2')\" aria-label=\"\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\">\n      <svg viewBox=\"0 0 24 24\">\n        <path d=\"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z\"\/>\n      <\/svg>\n    <\/button>\n  <\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b28fb91 elementor-widget elementor-widget-text-editor\" data-id=\"b28fb91\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\ud83e\uddea \u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e19\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d2837ec elementor-widget elementor-widget-html\" data-id=\"d2837ec\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"code-container\">\n    <code id=\"cmd3\">$PSVersionTable.PSVersion<\/code>\n    <span class=\"copied-msg\" id=\"msg3\">\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e41\u0e25\u0e49\u0e27<\/span>\n     <button class=\"copy-btn\"  onclick=\"copyCommandById('cmd3', 'msg3')\" aria-label=\"\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\">\n      <svg viewBox=\"0 0 24 24\">\n        <path d=\"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z\"\/>\n      <\/svg>\n    <\/button>\n  <\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-829c845 e-flex e-con-boxed e-con e-parent\" data-id=\"829c845\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ce04900 elementor-widget elementor-widget-html\" data-id=\"ce04900\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script>\r\n\tfunction copyCommandById(id, msgId) {\r\n\t\tconst text = document.getElementById(id).textContent;\r\n\t\tnavigator.clipboard.writeText(text).then(() => {\r\n\t\t\tconst msg = document.getElementById(msgId);\r\n\t\t\tmsg.style.display = \"inline\";\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tmsg.style.display = \"none\";\r\n\t\t\t}, 1500);\r\n\t\t});\r\n\t}\r\n<\/script>\r\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u0e27\u0e34\u0e18\u0e35\u0e2d\u0e31\u0e1b\u0e40\u0e14\u0e15 PowerShell \u0e1c\u0e48\u0e32\u0e19 PowerShell \u0e14\u0e49\u0e27\u0e22\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 winget&hellip;<\/p>\n","protected":false},"author":1,"featured_media":40,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-10","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-window"],"_links":{"self":[{"href":"https:\/\/mymobiz.co.th\/blog\/wp-json\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mymobiz.co.th\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mymobiz.co.th\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mymobiz.co.th\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mymobiz.co.th\/blog\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":46,"href":"https:\/\/mymobiz.co.th\/blog\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":65,"href":"https:\/\/mymobiz.co.th\/blog\/wp-json\/wp\/v2\/posts\/10\/revisions\/65"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mymobiz.co.th\/blog\/wp-json\/wp\/v2\/media\/40"}],"wp:attachment":[{"href":"https:\/\/mymobiz.co.th\/blog\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mymobiz.co.th\/blog\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mymobiz.co.th\/blog\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}