Repository navigation
Expand file tree
/
Copy pathpowershell.html
More file actions
168 lines (163 loc) · 53.3 KB
/
Copy pathpowershell.html
File metadata and controls
168 lines (163 loc) · 53.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!doctype html>
<html lang="en" dir="ltr" class="docs-wrapper plugin-docs plugin-id-default docs-version-current docs-doc-page docs-doc-id-application/powershell" data-has-hydrated="false">
<head>
<meta charset="UTF-8">
<meta name="generator" content="Docusaurus v3.10.1">
<title data-rh="true">PowerShell | NETworkManager</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:image" content="https://borntoberoot.net/NETworkManager/img/social-card.png"><meta data-rh="true" name="twitter:image" content="https://borntoberoot.net/NETworkManager/img/social-card.png"><meta data-rh="true" property="og:url" content="https://borntoberoot.net/NETworkManager/docs/application/powershell"><meta data-rh="true" property="og:locale" content="en"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="author" content="BornToBeRoot"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="PowerShell | NETworkManager"><meta data-rh="true" name="description" content="Launch local or remote PowerShell consoles with tabbed sessions, profiles, and integration with WSL, AWS SSM, and K9s."><meta data-rh="true" property="og:description" content="Launch local or remote PowerShell consoles with tabbed sessions, profiles, and integration with WSL, AWS SSM, and K9s."><meta data-rh="true" name="keywords" content="NETworkManager,PowerShell,PowerShell remoting,terminal,command line,WSL,K9s,AWS SSM,remote console"><link data-rh="true" rel="icon" href="/NETworkManager/img/favicon.ico"><link data-rh="true" rel="canonical" href="https://borntoberoot.net/NETworkManager/docs/application/powershell"><link data-rh="true" rel="alternate" href="https://borntoberoot.net/NETworkManager/docs/application/powershell" hreflang="en"><link data-rh="true" rel="alternate" href="https://borntoberoot.net/NETworkManager/docs/application/powershell" hreflang="x-default"><script data-rh="true" type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Application","item":"https://borntoberoot.net/NETworkManager/docs/category/application"},{"@type":"ListItem","position":2,"name":"PowerShell","item":"https://borntoberoot.net/NETworkManager/docs/application/powershell"}]}</script><link rel="alternate" type="application/rss+xml" href="/NETworkManager/blog/rss.xml" title="NETworkManager RSS Feed">
<link rel="alternate" type="application/atom+xml" href="/NETworkManager/blog/atom.xml" title="NETworkManager Atom Feed">
<script type="application/ld+json">{"@context":"https://schema.org","@type":"SoftwareApplication","name":"NETworkManager","applicationCategory":"NetworkApplication","operatingSystem":"Windows 10, Windows 11, Windows Server","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"description":"A powerful open-source tool for managing networks and troubleshooting network problems. Features IP Scanner, Port Scanner, Ping Monitor, Traceroute, DNS Lookup, Remote Desktop, PowerShell, PuTTY (SSH), and more.","url":"https://borntoberoot.net/NETworkManager","downloadUrl":"https://borntoberoot.net/NETworkManager/download","author":{"@type":"Person","name":"BornToBeRoot","url":"https://github.com/BornToBeRoot"},"license":"https://github.com/BornToBeRoot/NETworkManager/blob/main/LICENSE"}</script><link rel="stylesheet" href="/NETworkManager/assets/css/styles.36e43ced.css">
<script src="/NETworkManager/assets/js/runtime~main.023a6f96.js" defer="defer"></script>
<script src="/NETworkManager/assets/js/main.9e501d90.js" defer="defer"></script>
</head>
<body>
<svg style="display: none;"><defs>
<symbol id="theme-svg-external-link" viewBox="0 0 24 24"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"/></symbol>
</defs></svg>
<script>!function(){var t=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return window.localStorage.getItem("theme")}catch(t){}}();document.documentElement.setAttribute("data-theme",t||"light"),document.documentElement.setAttribute("data-theme-choice",t||"light")}(),function(){try{const c=new URLSearchParams(window.location.search).entries();for(var[t,e]of c)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}()</script><div id="__docusaurus"><link rel="preload" as="image" href="/NETworkManager/img/logo.svg"><div role="region" aria-label="Skip to main content"><a class="skipToContent_fXgn" href="#__docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="theme-layout-navbar navbar navbar--fixed-top"><div class="navbar__inner"><div class="theme-layout-navbar-left navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/NETworkManager/"><div class="navbar__logo"><img src="/NETworkManager/img/logo.svg" alt="NETworkManager Logo" class="themedComponent_mlkZ themedComponent--light_NVdE"><img src="/NETworkManager/img/logo.svg" alt="NETworkManager Logo" class="themedComponent_mlkZ themedComponent--dark_xIcU"></div><b class="navbar__title text--truncate">NETworkManager</b></a><a class="navbar__item navbar__link" href="/NETworkManager/download">Download</a><a aria-current="page" class="navbar__item navbar__link navbar__link--active" href="/NETworkManager/docs/introduction">Docs</a><a class="navbar__item navbar__link" href="/NETworkManager/blog">Blog</a></div><div class="theme-layout-navbar-right navbar__items navbar__items--right"><a href="https://github.com/BornToBeRoot/NETworkManager?tab=readme-ov-file#-donate" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">Donate<svg width="13.5" height="13.5" aria-label="(opens in new tab)" class="iconExternalLink_nPIU"><use href="#theme-svg-external-link"></use></svg></a><a href="https://github.com/BornToBeRoot/NETworkManager" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">GitHub<svg width="13.5" height="13.5" aria-label="(opens in new tab)" class="iconExternalLink_nPIU"><use href="#theme-svg-external-link"></use></svg></a><div class="toggle_vylO colorModeToggle_DEke"><button class="clean-btn toggleButton_gllP toggleButtonDisabled_aARS" type="button" disabled="" title="system mode" aria-label="Switch between dark and light mode (currently system mode)"><svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="toggleIcon_g3eP lightToggleIcon_pyhR"><path fill="currentColor" d="M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="toggleIcon_g3eP darkToggleIcon_wfgR"><path fill="currentColor" d="M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="toggleIcon_g3eP systemToggleIcon_QzmC"><path fill="currentColor" d="m12 21c4.971 0 9-4.029 9-9s-4.029-9-9-9-9 4.029-9 9 4.029 9 9 9zm4.95-13.95c1.313 1.313 2.05 3.093 2.05 4.95s-0.738 3.637-2.05 4.95c-1.313 1.313-3.093 2.05-4.95 2.05v-14c1.857 0 3.637 0.737 4.95 2.05z"></path></svg></button></div><div class="navbarSearchContainer_Bca1"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div id="__docusaurus_skipToContent_fallback" class="theme-layout-main main-wrapper mainWrapper_z2l0"><div class="docsWrapper_hBAB"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_sjWU" type="button"></button><div class="docRoot_UBD9"><aside class="theme-doc-sidebar-container docSidebarContainer_YfHR"><div class="sidebarViewport_aRkj"><div class="sidebar_njMd"><nav aria-label="Docs sidebar" class="menu thin-scrollbar menu_SIkG"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/NETworkManager/docs/introduction"><span title="Introduction" class="linkLabel_WmDU">Introduction</span></a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist" href="/NETworkManager/docs/category/changelog"><span title="Changelog" class="categoryLinkLabel_W154">Changelog</span></a><button aria-label="Expand sidebar category 'Changelog'" aria-expanded="false" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist menu__link--active" href="/NETworkManager/docs/category/application"><span title="Application" class="categoryLinkLabel_W154">Application</span></a><button aria-label="Collapse sidebar category 'Application'" aria-expanded="true" type="button" class="clean-btn menu__caret"></button></div><ul class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/dashboard"><span title="Dashboard" class="linkLabel_WmDU">Dashboard</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/network-interface"><span title="Network Interface" class="linkLabel_WmDU">Network Interface</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/wifi"><span title="WiFi" class="linkLabel_WmDU">WiFi</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/ip-scanner"><span title="IP Scanner" class="linkLabel_WmDU">IP Scanner</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/port-scanner"><span title="Port Scanner" class="linkLabel_WmDU">Port Scanner</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/ping-monitor"><span title="Ping Monitor" class="linkLabel_WmDU">Ping Monitor</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/traceroute"><span title="Traceroute" class="linkLabel_WmDU">Traceroute</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/dns-lookup"><span title="DNS Lookup" class="linkLabel_WmDU">DNS Lookup</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/remote-desktop"><span title="Remote Desktop" class="linkLabel_WmDU">Remote Desktop</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/NETworkManager/docs/application/powershell"><span title="PowerShell" class="linkLabel_WmDU">PowerShell</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/putty"><span title="PuTTY" class="linkLabel_WmDU">PuTTY</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/aws-session-manager"><span title="AWS Session Manager" class="linkLabel_WmDU">AWS Session Manager</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/tigervnc"><span title="TigerVNC" class="linkLabel_WmDU">TigerVNC</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/web-console"><span title="Web Console" class="linkLabel_WmDU">Web Console</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/snmp"><span title="SNMP" class="linkLabel_WmDU">SNMP</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/sntp-lookup"><span title="SNTP Lookup" class="linkLabel_WmDU">SNTP Lookup</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/hosts-file-editor"><span title="Hosts File Editor" class="linkLabel_WmDU">Hosts File Editor</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/firewall"><span title="Firewall" class="linkLabel_WmDU">Firewall</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/discovery-protocol"><span title="Discovery Protocol" class="linkLabel_WmDU">Discovery Protocol</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/wake-on-lan"><span title="Wake on LAN" class="linkLabel_WmDU">Wake on LAN</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/whois"><span title="Whois" class="linkLabel_WmDU">Whois</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/ip-geolocation"><span title="IP Geolocation" class="linkLabel_WmDU">IP Geolocation</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/subnet-calculator"><span title="Subnet Calculator" class="linkLabel_WmDU">Subnet Calculator</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/bit-calculator"><span title="Bit Calculator" class="linkLabel_WmDU">Bit Calculator</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/lookup"><span title="Lookup" class="linkLabel_WmDU">Lookup</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/connections"><span title="Connections" class="linkLabel_WmDU">Connections</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/listeners"><span title="Listeners" class="linkLabel_WmDU">Listeners</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/NETworkManager/docs/application/neighbor-table"><span title="Neighbor Table" class="linkLabel_WmDU">Neighbor Table</span></a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist" href="/NETworkManager/docs/category/settings"><span title="Settings" class="categoryLinkLabel_W154">Settings</span></a><button aria-label="Expand sidebar category 'Settings'" aria-expanded="false" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/NETworkManager/docs/groups-and-profiles"><span title="Groups and Profiles" class="linkLabel_WmDU">Groups and Profiles</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/NETworkManager/docs/commandline-arguments"><span title="Command Line Arguments" class="linkLabel_WmDU">Command Line Arguments</span></a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/NETworkManager/docs/system-wide-policies"><span title="System-Wide Policies" class="linkLabel_WmDU">System-Wide Policies</span></a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="categoryLink_byQd menu__link menu__link--sublist" href="/NETworkManager/docs/category/faq"><span title="FAQ" class="categoryLinkLabel_W154">FAQ</span></a><button aria-label="Expand sidebar category 'FAQ'" aria-expanded="false" type="button" class="clean-btn menu__caret"></button></div></li></ul></nav></div></div></aside><main class="docMainContainer_TBSr"><div class="container padding-top--md padding-bottom--lg"><div class="row"><div class="col docItemCol_VOVn"><div class="docItemContainer_Djhp"><article><nav class="theme-doc-breadcrumbs breadcrumbsContainer_Z_bl" aria-label="Breadcrumbs"><ul class="breadcrumbs"><li class="breadcrumbs__item"><a aria-label="Home page" class="breadcrumbs__link" href="/NETworkManager/"><svg viewBox="0 0 24 24" class="breadcrumbHomeIcon_YNFT"><path d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z" fill="currentColor"></path></svg></a></li><li class="breadcrumbs__item"><a class="breadcrumbs__link" href="/NETworkManager/docs/category/application"><span>Application</span></a></li><li class="breadcrumbs__item breadcrumbs__item--active"><span class="breadcrumbs__link">PowerShell</span></li></ul></nav><div class="tocCollapsible_ETCw theme-doc-toc-mobile tocMobile_ITEo"><button type="button" class="clean-btn tocCollapsibleButton_TO0P">On this page</button></div><div class="theme-doc-markdown markdown"><header><h1>PowerShell</h1></header>
<p>With <strong>PowerShell</strong> you can launch PowerShell consoles locally or connect to remote computers using <a href="https://learn.microsoft.com/en-us/powershell/scripting/learn/ps101/08-powershell-remoting" target="_blank" rel="noopener noreferrer" class="">PowerShell Remoting</a>. You can also execute command-line applications such as <code>wsl</code>, <code>aws ssm</code>, <code>k9s</code>, or any other tools typically accessible from a PowerShell session. In addition, you can run PowerShell scripts directly within the console.</p>
<p>The integration of PowerShell with NETworkManager supports tabs and profiles for hosts (and tools). You can launch the console / establish a connection via a profile (double-click, Enter key or right-click <code>Connect</code>) or directly via the <a href="#connect" class="">connection</a> dialog.</p>
<div class="theme-admonition theme-admonition-info admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>info</div><div class="admonitionContent_BuS1"><p>PowerShell is a command-line shell and scripting language developed by Microsoft for automating administrative tasks and managing system configurations. It provides a robust set of built-in commands and access to .NET Framework objects for efficient system administration and automation. PowerShell uses a verb-noun cmdlet syntax, giving users a consistent and predictable way to perform a wide range of operations.</p></div></div>
<div class="theme-admonition theme-admonition-note admonition_xJq3 alert alert--secondary"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>note</div><div class="admonitionContent_BuS1"><p>Windows PowerShell (<code>powershell</code>) and PowerShell (<code>pwsh</code>) are supported. <strong>Use PowerShell (<code>pwsh</code>) for the best experience.</strong></p><p>Instructions for installing PowerShell (<code>pwsh</code>) can be found on the <a href="https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell?" target="_blank" rel="noopener noreferrer" class="">official website</a>.</p></div></div>
<div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>tip</div><div class="admonitionContent_BuS1"><p>Launching a command-line application such as <code>wsl</code>, <code>aws ssm</code> or <code>k9s</code> can be done by passing the <a href="#command" class="">command</a> to the PowerShell console.</p><div class="language-powershell codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-powershell codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><div class="token-line" style="color:#393A34"><span class="token comment" style="color:#999988;font-style:italic"># Connect to WSL</span><span class="token plain"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">wsl </span><span class="token operator" style="color:#393A34">-</span><span class="token plain">d <DISTRIBUTION></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token comment" style="color:#999988;font-style:italic"># Connect to an EC2 instance via AWS Session Manager</span><span class="token plain"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">aws ssm </span><span class="token function" style="color:#d73a49">start-session</span><span class="token plain"> </span><span class="token operator" style="color:#393A34">--</span><span class="token plain">target <instance-id></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token comment" style="color:#999988;font-style:italic"># Connect to Kubernetes</span><span class="token plain"></span><br></div><div class="token-line" style="color:#393A34"><span class="token plain">k9s </span><span class="token operator" style="color:#393A34">--</span><span class="token plain">readonly</span><br></div></code></pre></div></div><p>See <a class="" href="/NETworkManager/docs/faq/powershell-cmd-apps">FAQ > PowerShell with command-line applications</a> for more information.</p></div></div>
<div class="theme-admonition theme-admonition-warning admonition_xJq3 alert alert--warning"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"></path></svg></span>warning</div><div class="admonitionContent_BuS1"><p>If Windows Terminal is installed, change the <code>Default terminal application</code> in the settings of Windows Terminal to <code>Windows Console Host</code> instead of <code>Windows Terminal</code> to use PowerShell in NETworkManager.</p></div></div>
<p><img decoding="async" loading="lazy" alt="PowerShell" src="/NETworkManager/assets/images/powershell-c749d6c50dcd86d2abc814c9bfcb4480.png" width="1200" height="799" class="img_ev3q"></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="tab-context-menu">Tab context menu<a href="#tab-context-menu" class="hash-link" aria-label="Direct link to Tab context menu" title="Direct link to Tab context menu" translate="no"></a></h3>
<p>Right-clicking a session tab opens a context menu:</p>
<table><thead><tr><th>Action</th><th>Description</th></tr></thead><tbody><tr><td><strong>Reconnect</strong></td><td>Restart the PowerShell console (and reconnect to the remote computer).</td></tr><tr><td><strong>Resize</strong></td><td>Resize the PowerShell console to the current view size (if connected).</td></tr></tbody></table>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="connect">Connect<a href="#connect" class="hash-link" aria-label="Direct link to Connect" title="Direct link to Connect" translate="no"></a></h2>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="remote-console">Remote console<a href="#remote-console" class="hash-link" aria-label="Direct link to Remote console" title="Direct link to Remote console" translate="no"></a></h3>
<p>Connect to a remote computer via PowerShell Remoting.</p>
<p><strong>Type:</strong> <code>Boolean</code></p>
<p><strong>Default:</strong> <code>Disabled</code></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="host">Host<a href="#host" class="hash-link" aria-label="Direct link to Host" title="Direct link to Host" translate="no"></a></h3>
<p>Host name or IP address of the remote computer.</p>
<p><strong>Type:</strong> <code>String</code></p>
<p><strong>Default:</strong> <code>Empty</code></p>
<p><strong>Example:</strong></p>
<ul>
<li class=""><code>server-01.borntoberoot.net</code></li>
<li class=""><code>10.0.0.10</code></li>
</ul>
<div class="theme-admonition theme-admonition-note admonition_xJq3 alert alert--secondary"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>note</div><div class="admonitionContent_BuS1"><p>Only available if <a href="#remote-console" class="">Remote console</a> is enabled.</p></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="command">Command<a href="#command" class="hash-link" aria-label="Direct link to Command" title="Direct link to Command" translate="no"></a></h3>
<p>Command to execute when the PowerShell console is started locally.</p>
<p><strong>Type:</strong> <code>String</code></p>
<p><strong>Default:</strong> <a href="#command-3" class=""><code>Settings > Command</code></a></p>
<p><strong>Example:</strong> <code>Set-Location ~; Get-ChildItem</code></p>
<div class="theme-admonition theme-admonition-note admonition_xJq3 alert alert--secondary"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>note</div><div class="admonitionContent_BuS1"><p>Only available if <a href="#remote-console" class="">Remote console</a> is disabled.</p></div></div>
<div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>tip</div><div class="admonitionContent_BuS1"><p>Use <code>wsl -d <DISTRIBUTION></code> to connect to Windows Subsystem for Linux.</p></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="additional-command-line">Additional command line<a href="#additional-command-line" class="hash-link" aria-label="Direct link to Additional command line" title="Direct link to Additional command line" translate="no"></a></h3>
<p>Additional command line arguments to pass to the PowerShell console when it is started.</p>
<p><strong>Type:</strong> <code>String</code></p>
<p><strong>Default:</strong> <a href="#additional-command-line-3" class=""><code>Settings > Additional command line</code></a></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="execution-policy">Execution policy<a href="#execution-policy" class="hash-link" aria-label="Direct link to Execution policy" title="Direct link to Execution policy" translate="no"></a></h3>
<p>Execution policy of the PowerShell console when it is started.</p>
<p><strong>Type:</strong> <code>NETworkManager.Models.PowerShell.ExecutionPolicy</code></p>
<p><strong>Default:</strong> <a href="#execution-policy-3" class=""><code>Settings > Execution policy</code></a></p>
<p><strong>Possible values:</strong></p>
<ul>
<li class=""><code>Restricted</code></li>
<li class=""><code>AllSigned</code></li>
<li class=""><code>RemoteSigned</code></li>
<li class=""><code>Unrestricted</code></li>
<li class=""><code>Bypass</code></li>
</ul>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="profile">Profile<a href="#profile" class="hash-link" aria-label="Direct link to Profile" title="Direct link to Profile" translate="no"></a></h2>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="remote-console-1">Remote console<a href="#remote-console-1" class="hash-link" aria-label="Direct link to Remote console" title="Direct link to Remote console" translate="no"></a></h3>
<p>Connect to a remote computer via PowerShell Remoting.</p>
<p><strong>Type:</strong> <code>Boolean</code></p>
<p><strong>Default:</strong> <code>Enabled</code></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="inherit-host-from-general">Inherit host from general<a href="#inherit-host-from-general" class="hash-link" aria-label="Direct link to Inherit host from general" title="Direct link to Inherit host from general" translate="no"></a></h3>
<p>Inherit the host from the general settings.</p>
<p><strong>Type:</strong> <code>Boolean</code></p>
<p><strong>Default:</strong> <code>Enabled</code></p>
<div class="theme-admonition theme-admonition-note admonition_xJq3 alert alert--secondary"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>note</div><div class="admonitionContent_BuS1"><p>If this option is enabled, the <a href="#host-1" class="">Host</a> is overwritten by the host from the general settings and the <a href="#host-1" class="">Host</a> is disabled.</p></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="host-1">Host<a href="#host-1" class="hash-link" aria-label="Direct link to Host" title="Direct link to Host" translate="no"></a></h3>
<p>Host name or IP address of the remote computer.</p>
<p><strong>Type:</strong> <code>String</code></p>
<p><strong>Example:</strong></p>
<ul>
<li class=""><code>server-01.borntoberoot.net</code></li>
<li class=""><code>10.0.0.10</code></li>
</ul>
<div class="theme-admonition theme-admonition-note admonition_xJq3 alert alert--secondary"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>note</div><div class="admonitionContent_BuS1"><p>Only available if <a href="#remote-console-1" class="">Remote console</a> is enabled.</p></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="command-1">Command<a href="#command-1" class="hash-link" aria-label="Direct link to Command" title="Direct link to Command" translate="no"></a></h3>
<p>Command to execute when the PowerShell console is started locally.</p>
<p><strong>Type:</strong> <code>String</code></p>
<p><strong>Default:</strong> <code>Empty</code></p>
<p><strong>Example:</strong> <code>Set-Location ~; Get-ChildItem</code></p>
<div class="theme-admonition theme-admonition-note admonition_xJq3 alert alert--secondary"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>note</div><div class="admonitionContent_BuS1"><p>Only available if <a href="#remote-console-1" class="">Remote console</a> is disabled.</p></div></div>
<div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>tip</div><div class="admonitionContent_BuS1"><p>Use <code>wsl -d <DISTRIBUTION></code> to connect to Windows Subsystem for Linux.</p><p>Use <code>k9s</code> or <code>k9s --readonly</code> to manage Kubernetes clusters.</p></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="additional-command-line-1">Additional command line<a href="#additional-command-line-1" class="hash-link" aria-label="Direct link to Additional command line" title="Direct link to Additional command line" translate="no"></a></h3>
<p>Additional command line arguments to pass to the PowerShell console when it is started.</p>
<p><strong>Type:</strong> <code>String</code></p>
<p><strong>Default:</strong> <code>Empty</code></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="execution-policy-1">Execution policy<a href="#execution-policy-1" class="hash-link" aria-label="Direct link to Execution policy" title="Direct link to Execution policy" translate="no"></a></h3>
<p>Execution policy of the PowerShell console when it is started.</p>
<p><strong>Type:</strong> <code>NETworkManager.Models.PowerShell.ExecutionPolicy</code></p>
<p><strong>Default:</strong> <code>RemoteSigned</code></p>
<p><strong>Possible values:</strong></p>
<ul>
<li class=""><code>Restricted</code></li>
<li class=""><code>AllSigned</code></li>
<li class=""><code>RemoteSigned</code></li>
<li class=""><code>Unrestricted</code></li>
<li class=""><code>Bypass</code></li>
</ul>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="group">Group<a href="#group" class="hash-link" aria-label="Direct link to Group" title="Direct link to Group" translate="no"></a></h2>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="command-2">Command<a href="#command-2" class="hash-link" aria-label="Direct link to Command" title="Direct link to Command" translate="no"></a></h3>
<p>Command to execute when the PowerShell console is started locally.</p>
<p><strong>Type:</strong> <code>String</code></p>
<p><strong>Default:</strong> <code>Empty</code></p>
<p><strong>Example:</strong> <code>Set-Location ~; Get-ChildItem</code></p>
<div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>tip</div><div class="admonitionContent_BuS1"><p>Use <code>wsl -d <DISTRIBUTION></code> to connect to Windows Subsystem for Linux.</p><p>Use <code>k9s</code> or <code>k9s --readonly</code> to manage Kubernetes clusters.</p></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="additional-command-line-2">Additional command line<a href="#additional-command-line-2" class="hash-link" aria-label="Direct link to Additional command line" title="Direct link to Additional command line" translate="no"></a></h3>
<p>Additional command line arguments to pass to the PowerShell console when it is started.</p>
<p><strong>Type:</strong> <code>String</code></p>
<p><strong>Default:</strong> <code>Empty</code></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="execution-policy-2">Execution policy<a href="#execution-policy-2" class="hash-link" aria-label="Direct link to Execution policy" title="Direct link to Execution policy" translate="no"></a></h3>
<p>Execution policy of the PowerShell console when it is started.</p>
<p><strong>Type:</strong> <code>NETworkManager.Models.PowerShell.ExecutionPolicy</code></p>
<p><strong>Default:</strong> <code>RemoteSigned</code></p>
<p><strong>Possible values:</strong></p>
<ul>
<li class=""><code>Restricted</code></li>
<li class=""><code>AllSigned</code></li>
<li class=""><code>RemoteSigned</code></li>
<li class=""><code>Unrestricted</code></li>
<li class=""><code>Bypass</code></li>
</ul>
<h2 class="anchor anchorTargetStickyNavbar_Vzrq" id="settings">Settings<a href="#settings" class="hash-link" aria-label="Direct link to Settings" title="Direct link to Settings" translate="no"></a></h2>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="file-path">File path<a href="#file-path" class="hash-link" aria-label="Direct link to File path" title="Direct link to File path" translate="no"></a></h3>
<p>Path to the PowerShell console.</p>
<p><strong>Type:</strong> <code>String</code></p>
<p><strong>Default:</strong> <code>%ProgramFiles%\PowerShell\7\pwsh.exe</code>, <code>%ProgramFiles(x86)%\PowerShell\7\pwsh.exe</code> or <code>%windir%\System32\WindowsPowerShell\v1.0\powershell.exe</code></p>
<p><strong>Example:</strong></p>
<ul>
<li class=""><code>C:\Program Files\PowerShell\7\pwsh.exe</code></li>
</ul>
<div class="theme-admonition theme-admonition-note admonition_xJq3 alert alert--secondary"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>note</div><div class="admonitionContent_BuS1"><p>The <code>Configure</code> button opens the PowerShell console to configure it.</p></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="command-3">Command<a href="#command-3" class="hash-link" aria-label="Direct link to Command" title="Direct link to Command" translate="no"></a></h3>
<p>Default command to execute when the PowerShell console is started locally.</p>
<p><strong>Type:</strong> <code>String</code></p>
<p><strong>Default:</strong> <code>Set-Location ~</code></p>
<p><strong>Example:</strong> <code>Set-Location ~; Get-ChildItem</code></p>
<div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>tip</div><div class="admonitionContent_BuS1"><p>Use <code>wsl -d <DISTRIBUTION></code> to connect to Windows Subsystem for Linux.</p><p>Use <code>k9s</code> or <code>k9s --readonly</code> to manage Kubernetes clusters.</p></div></div>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="additional-command-line-3">Additional command line<a href="#additional-command-line-3" class="hash-link" aria-label="Direct link to Additional command line" title="Direct link to Additional command line" translate="no"></a></h3>
<p>Default additional command line arguments to pass to the PowerShell console when it is started.</p>
<p><strong>Type:</strong> <code>String</code></p>
<p><strong>Default:</strong> <code>Empty</code></p>
<h3 class="anchor anchorTargetStickyNavbar_Vzrq" id="execution-policy-3">Execution policy<a href="#execution-policy-3" class="hash-link" aria-label="Direct link to Execution policy" title="Direct link to Execution policy" translate="no"></a></h3>
<p>Default execution policy of the PowerShell console when it is started.</p>
<p><strong>Type:</strong> <code>NETworkManager.Models.PowerShell.ExecutionPolicy</code></p>
<p><strong>Default:</strong> <code>RemoteSigned</code></p>
<p><strong>Possible values:</strong></p>
<ul>
<li class=""><code>Restricted</code></li>
<li class=""><code>AllSigned</code></li>
<li class=""><code>RemoteSigned</code></li>
<li class=""><code>Unrestricted</code></li>
<li class=""><code>Bypass</code></li>
</ul></div><footer class="theme-doc-footer docusaurus-mt-lg"><div class="row margin-top--sm theme-doc-footer-edit-meta-row"><div class="col noPrint_WFHX"><a href="https://github.com/bornToBeRoot/NETworkManager/tree/main/Website/docs/application/powershell.md" target="_blank" rel="noopener noreferrer" class="theme-edit-this-page"><svg fill="currentColor" height="20" width="20" viewBox="0 0 40 40" class="iconEdit_Z9Sw" aria-hidden="true"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col lastUpdated_JAkA"></div></div></footer></article><nav class="docusaurus-mt-lg pagination-nav" aria-label="Docs pages"><a class="pagination-nav__link pagination-nav__link--prev" href="/NETworkManager/docs/application/remote-desktop"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Remote Desktop</div></a><a class="pagination-nav__link pagination-nav__link--next" href="/NETworkManager/docs/application/putty"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">PuTTY</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_bqdL thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#tab-context-menu" class="table-of-contents__link toc-highlight">Tab context menu</a></li><li><a href="#connect" class="table-of-contents__link toc-highlight">Connect</a><ul><li><a href="#remote-console" class="table-of-contents__link toc-highlight">Remote console</a></li><li><a href="#host" class="table-of-contents__link toc-highlight">Host</a></li><li><a href="#command" class="table-of-contents__link toc-highlight">Command</a></li><li><a href="#additional-command-line" class="table-of-contents__link toc-highlight">Additional command line</a></li><li><a href="#execution-policy" class="table-of-contents__link toc-highlight">Execution policy</a></li></ul></li><li><a href="#profile" class="table-of-contents__link toc-highlight">Profile</a><ul><li><a href="#remote-console-1" class="table-of-contents__link toc-highlight">Remote console</a></li><li><a href="#inherit-host-from-general" class="table-of-contents__link toc-highlight">Inherit host from general</a></li><li><a href="#host-1" class="table-of-contents__link toc-highlight">Host</a></li><li><a href="#command-1" class="table-of-contents__link toc-highlight">Command</a></li><li><a href="#additional-command-line-1" class="table-of-contents__link toc-highlight">Additional command line</a></li><li><a href="#execution-policy-1" class="table-of-contents__link toc-highlight">Execution policy</a></li></ul></li><li><a href="#group" class="table-of-contents__link toc-highlight">Group</a><ul><li><a href="#command-2" class="table-of-contents__link toc-highlight">Command</a></li><li><a href="#additional-command-line-2" class="table-of-contents__link toc-highlight">Additional command line</a></li><li><a href="#execution-policy-2" class="table-of-contents__link toc-highlight">Execution policy</a></li></ul></li><li><a href="#settings" class="table-of-contents__link toc-highlight">Settings</a><ul><li><a href="#file-path" class="table-of-contents__link toc-highlight">File path</a></li><li><a href="#command-3" class="table-of-contents__link toc-highlight">Command</a></li><li><a href="#additional-command-line-3" class="table-of-contents__link toc-highlight">Additional command line</a></li><li><a href="#execution-policy-3" class="table-of-contents__link toc-highlight">Execution policy</a></li></ul></li></ul></div></div></div></div></main></div></div></div><footer class="theme-layout-footer footer footer--dark"><div class="container container-fluid"><div class="row footer__links"><div class="theme-layout-footer-column col footer__col"><div class="footer__title">Quick Links</div><ul class="footer__items clean-list"><li class="footer__item"><a class="footer__link-item" href="/NETworkManager/download">Download</a></li><li class="footer__item"><a class="footer__link-item" href="/NETworkManager/docs/introduction">Docs</a></li><li class="footer__item"><a class="footer__link-item" href="/NETworkManager/blog">Blog</a></li></ul></div><div class="theme-layout-footer-column col footer__col"><div class="footer__title">Community</div><ul class="footer__items clean-list"><li class="footer__item"><a href="https://x.com/_BornToBeRoot" target="_blank" rel="noopener noreferrer" class="footer__link-item">X<svg width="13.5" height="13.5" aria-label="(opens in new tab)" class="iconExternalLink_nPIU"><use href="#theme-svg-external-link"></use></svg></a></li></ul></div><div class="theme-layout-footer-column col footer__col"><div class="footer__title">Contributing</div><ul class="footer__items clean-list"><li class="footer__item"><a href="https://github.com/BornToBeRoot/NETworkManager" target="_blank" rel="noopener noreferrer" class="footer__link-item">GitHub<svg width="13.5" height="13.5" aria-label="(opens in new tab)" class="iconExternalLink_nPIU"><use href="#theme-svg-external-link"></use></svg></a></li><li class="footer__item"><a href="https://app.transifex.com/BornToBeRoot/NETworkManager/" target="_blank" rel="noopener noreferrer" class="footer__link-item">Transifex<svg width="13.5" height="13.5" aria-label="(opens in new tab)" class="iconExternalLink_nPIU"><use href="#theme-svg-external-link"></use></svg></a></li><li class="footer__item"><a href="https://github.com/BornToBeRoot/NETworkManager/blob/main/CODE_OF_CONDUCT.md" target="_blank" rel="noopener noreferrer" class="footer__link-item">Code of Conduct<svg width="13.5" height="13.5" aria-label="(opens in new tab)" class="iconExternalLink_nPIU"><use href="#theme-svg-external-link"></use></svg></a></li></ul></div></div><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2026 BornToBeRoot and Contributors. Built with Docusaurus.</div></div></div></footer></div>
</body>
</html>