
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PowerShell Remoting Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/powershell-remoting/feed/" rel="self" type="application/rss+xml" />
	<link>https://168.138.42.164/tag/powershell-remoting/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Sat, 24 Jun 2023 01:36:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://www.technig.com/wp-content/uploads/2020/04/32x32.png</url>
	<title>PowerShell Remoting Archives - TECHNIG</title>
	<link>https://168.138.42.164/tag/powershell-remoting/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<item>
		<title>How to Set up a PowerShell Remoting Connection</title>
		<link>https://www.technig.com/set-up-a-powershell-remoting-connection/</link>
					<comments>https://www.technig.com/set-up-a-powershell-remoting-connection/#respond</comments>
		
		<dc:creator><![CDATA[Mashallah Haidarzada]]></dc:creator>
		<pubDate>Sat, 24 Jun 2023 01:36:53 +0000</pubDate>
				<category><![CDATA[MCSA]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PowerShell Articles]]></category>
		<category><![CDATA[PowerShell Remoting]]></category>
		<category><![CDATA[Windows 10]]></category>
		<category><![CDATA[Windows 11]]></category>
		<category><![CDATA[Windows Server 2019]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://technig.com/?p=18006</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="866" height="447" src="https://www.technig.com/wp-content/uploads/2022/05/screenshot_20220514_114010.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Remote connection" decoding="async" fetchpriority="high" srcset="https://www.technig.com/wp-content/uploads/2022/05/screenshot_20220514_114010.jpg 866w, https://www.technig.com/wp-content/uploads/2022/05/screenshot_20220514_114010-300x155.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/screenshot_20220514_114010-768x396.jpg 768w" sizes="(max-width: 866px) 100vw, 866px" /></div>
<p>PowerShell Remoting allows you to manage a remote computer from your local computer. You type commands on your local computer, and the changes are made on the remote computer. When you set up a PowerShell Remoting connection, you can execute commands remotely, and the changes will be made on the remote computer. The remote computer [&#8230;]</p>
<p>The post <a href="https://www.technig.com/set-up-a-powershell-remoting-connection/">How to Set up a PowerShell Remoting Connection</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="866" height="447" src="https://www.technig.com/wp-content/uploads/2022/05/screenshot_20220514_114010.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Remote connection" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/screenshot_20220514_114010.jpg 866w, https://www.technig.com/wp-content/uploads/2022/05/screenshot_20220514_114010-300x155.jpg 300w, https://www.technig.com/wp-content/uploads/2022/05/screenshot_20220514_114010-768x396.jpg 768w" sizes="(max-width: 866px) 100vw, 866px" /></div>
<p>PowerShell Remoting allows you to manage a remote computer from your local computer. You type commands on your local computer, and the changes are made on the remote computer. When you set up a PowerShell Remoting connection, you can execute commands remotely, and the changes will be made on the remote computer. The remote computer is the computer that you want to manage, and your local computer is the computer that you are using to manage the remote computer.</p>



<p>Here are some important points to keep in mind before setting up a PowerShell Remoting connection:</p>



<ol class="wp-block-list">
<li><strong>Both the local and remote computers must be in the same domain or workgroup.</strong>&nbsp;This is because PowerShell Remoting uses Windows Remote Management (WinRM), which is a feature of Active Directory.</li>



<li><strong>Both computers must have PowerShell installed.</strong>&nbsp;PowerShell is a command-line shell and scripting language that is included with Windows.</li>



<li><strong>AD-DS, DHCP, and DNS servers must be configured and running on your network.</strong>&nbsp;These servers are used by WinRM to authenticate users and resolve hostnames.</li>



<li><strong>The IP address configuration on both computers must be correct.</strong>&nbsp;The remote computer&#8217;s IP address must be reachable from the local computer.</li>



<li><strong>The network adapter connection type for all network adapters on both computers must be set to Private.</strong>&nbsp;If any of the network adapters are set to Public, you will receive an error when you try to connect to the remote computer.</li>
</ol>



<h2 class="wp-block-heading">Create PowerShell Remoting Sessions</h2>



<p>Follow the steps below to set up a PowerShell Remoting connection.</p>



<ol class="wp-block-list">
<li><a href="https://www.technig.com/enable-powershell-remoting-in-windows-11/" target="_blank" rel="noreferrer noopener">Enable Powershell remoting</a> on the <strong>remote computer</strong> by running the <code>Enable-PSRemoting</code> command.</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="506" height="200" src="https://www.technig.com/wp-content/uploads/2022/05/Enable-PSRemoting.png" alt="Enabling PowerShell Remoting " class="wp-image-18028" srcset="https://www.technig.com/wp-content/uploads/2022/05/Enable-PSRemoting.png 506w, https://www.technig.com/wp-content/uploads/2022/05/Enable-PSRemoting-300x119.png 300w" sizes="(max-width: 506px) 100vw, 506px" /><figcaption class="wp-element-caption">Enabling PowerShell Remoting on the remote computer.</figcaption></figure></div>


<ol class="wp-block-list" start="2">
<li>Set up a remote connection by typing the <code>Enter-PSSession -ComputerName [Name of the computer]</code> command in the local computer. The name of the machine that you are connected to will add at the beginning of commands to show that you are running commands on that particular machine.</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="837" height="109" src="https://www.technig.com/wp-content/uploads/2022/05/Enter-PSSession-ComputerName.png" alt="Create PowerShell remote connection Session." class="wp-image-18029" srcset="https://www.technig.com/wp-content/uploads/2022/05/Enter-PSSession-ComputerName.png 837w, https://www.technig.com/wp-content/uploads/2022/05/Enter-PSSession-ComputerName-300x39.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Enter-PSSession-ComputerName-768x100.png 768w" sizes="(max-width: 837px) 100vw, 837px" /><figcaption class="wp-element-caption">Set up PowerShell Remoting connection.</figcaption></figure></div>


<ol class="wp-block-list" start="3">
<li>If you want to create multiple sessions, use the command <code>New-PSSession [Computer Name]</code>. Instead of [Computer Name] use the computer name of your own machine.</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="903" height="195" src="https://www.technig.com/wp-content/uploads/2022/05/New-PSSession.png" alt="Set-up PowerShell Remoting Session." class="wp-image-18030" srcset="https://www.technig.com/wp-content/uploads/2022/05/New-PSSession.png 903w, https://www.technig.com/wp-content/uploads/2022/05/New-PSSession-300x65.png 300w, https://www.technig.com/wp-content/uploads/2022/05/New-PSSession-768x166.png 768w" sizes="(max-width: 903px) 100vw, 903px" /><figcaption class="wp-element-caption">Create New PowerShell Remoting Session.</figcaption></figure></div>


<ol class="wp-block-list" start="4">
<li>To see the list of created PowerShell sessions, type the command <code>Get-PSSessions</code>. As you can see, I have one PowerShell session in the list and it is available for connection.</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="854" height="156" src="https://www.technig.com/wp-content/uploads/2022/05/Get-PSSession.png" alt="See available PowerShell Remoting Sessions." class="wp-image-18031" srcset="https://www.technig.com/wp-content/uploads/2022/05/Get-PSSession.png 854w, https://www.technig.com/wp-content/uploads/2022/05/Get-PSSession-300x55.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Get-PSSession-768x140.png 768w" sizes="(max-width: 854px) 100vw, 854px" /><figcaption class="wp-element-caption">See the PowerShell Sessions list</figcaption></figure></div>


<ol class="wp-block-list" start="5">
<li>Type the command <code>Get-Command -Noun PSSession</code> to see the list of PowerShell Remoting session commands.</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="885" height="263" src="https://www.technig.com/wp-content/uploads/2022/05/Get-Command-Noun-PSSession.png" alt="PowerShell Remoting session commands" class="wp-image-18032" srcset="https://www.technig.com/wp-content/uploads/2022/05/Get-Command-Noun-PSSession.png 885w, https://www.technig.com/wp-content/uploads/2022/05/Get-Command-Noun-PSSession-300x89.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Get-Command-Noun-PSSession-768x228.png 768w" sizes="(max-width: 885px) 100vw, 885px" /><figcaption class="wp-element-caption">List of the PowerShell remoting session commands.</figcaption></figure></div>


<p>You don&#8217;t have to use PowerShell Remoting for commands that have computer name parameters. You can execute commands that have computer name parameters on the target computer without setting up a PowerShell Remoting session.</p>



<p>PowerShell Remoting is much faster than other remoting tools because it uses commands and scripts to manage the target computer. You can create multiple remoting sessions without loading much on the CPU.</p>



<p>Check out this article to know more about <a href="https://docs.microsoft.com/en-us/powershell/scripting/learn/remoting/powershell-remoting-faq?view=powershell-7.2" target="_blank" rel="noreferrer noopener">PowerShell Remoting</a>.</p>
<p>The post <a href="https://www.technig.com/set-up-a-powershell-remoting-connection/">How to Set up a PowerShell Remoting Connection</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/set-up-a-powershell-remoting-connection/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">18006</post-id>	</item>
		<item>
		<title>Enable PowerShell Remoting in Windows 11</title>
		<link>https://www.technig.com/enable-powershell-remoting-in-windows-11/</link>
					<comments>https://www.technig.com/enable-powershell-remoting-in-windows-11/#comments</comments>
		
		<dc:creator><![CDATA[Mashallah Haidarzada]]></dc:creator>
		<pubDate>Sun, 08 May 2022 06:46:35 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Network Adapter Connection Type]]></category>
		<category><![CDATA[Network Connections]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[PowerShell Articles]]></category>
		<category><![CDATA[PowerShell Remoting]]></category>
		<category><![CDATA[Windows 11]]></category>
		<category><![CDATA[Windows 11 Configuration]]></category>
		<guid isPermaLink="false">https://technig.com/?p=17582</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="714" height="419" src="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220422_224712.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Enable PowerShell Remoting in Windows 11." decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220422_224712.png 714w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220422_224712-300x176.png 300w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220422_224712-357x210.png 357w" sizes="(max-width: 714px) 100vw, 714px" /></div>
<p>PowerShell offers a quick way to manage computers remotely through scripting and cmdlets. You can enable Windows PowerShell Remoting to manage multiple computers remotely in Windows 11 and other latest windows. While setting up a remote connection between computers, Windows Firewall blocks the request to the remote computer, so you have to allow the firewall [&#8230;]</p>
<p>The post <a href="https://www.technig.com/enable-powershell-remoting-in-windows-11/">Enable PowerShell Remoting in Windows 11</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="714" height="419" src="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220422_224712.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Enable PowerShell Remoting in Windows 11." decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220422_224712.png 714w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220422_224712-300x176.png 300w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220422_224712-357x210.png 357w" sizes="(max-width: 714px) 100vw, 714px" /></div>
<p>PowerShell offers a quick way to manage computers remotely through scripting and cmdlets. You can enable Windows PowerShell Remoting to manage multiple computers remotely in Windows 11 and other latest windows.</p>



<p>While setting up a remote connection between computers, Windows Firewall blocks the request to the remote computer, so you have to allow the firewall features related to remote management in the Windows Firewall. Go to <strong>Control Panel,</strong> <strong>System and Security</strong>, <strong>Windows Defender Firewall</strong>, and click on <strong>Allow an app or feature through Windows Defender Firewall</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="879" height="476" src="https://technig.com/wp-content/uploads/2022/04/screenshot_20220422_201359.png" alt="Allow an app or feature through windows defender firewall" class="wp-image-17637" srcset="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220422_201359.png 879w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220422_201359-300x162.png 300w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220422_201359-768x416.png 768w" sizes="(max-width: 879px) 100vw, 879px" /><figcaption>Windows Defender Firewall.</figcaption></figure></div>



<p>In order to be able to set up PowerShell remoting in Windows 11, allow the following features in the Windows Defender Firewall.</p>



<ol start="1" class="bs-shortcode-list wp-block-list"><li>Remote Desktop</li><li>Remote Assistance</li><li>Remote Event Log Management</li><li>Remote Event Monitor</li><li>Remote Scheduled Tasks Management</li><li>Remote Service Management</li><li>Remote Shut-down</li><li>Remote Volume Management</li><li>Virtual Machine Monitoring</li><li>Windows Firewall Remote Management</li><li>Windows Management Instrumentation (WMI)</li><li>Windows Remote Management</li><li>Windows Remote Management (Compatibility)</li></ol>



<p>It looks a long way and has a lot of things to configure. The quick way is to enable it through PowerShell. Open PowerShell as administrator and then type <code>Enable-PSRemoting</code>. If this command does not run successfully, then you have to allow the features mentioned above manually.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="653" height="199" src="https://technig.com/wp-content/uploads/2022/04/screenshot_20220421_060844.png" alt="Enable PowerShell Remoting through PowerShell." class="wp-image-17630" srcset="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220421_060844.png 653w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220421_060844-300x91.png 300w" sizes="(max-width: 653px) 100vw, 653px" /><figcaption>Enable PowerShell remoting.</figcaption></figure></div>



<p>Sometimes you will receive an error message. If your computer&#8217;s network adapter is set up for a public network, then you have to change the connection type to private.</p>



<p>For more about PowerShell remoting, click <a href="https://docs.microsoft.com/en-us/powershell/scripting/learn/ps101/08-powershell-remoting?msclkid=fdb7480ac25311ec8abb53443385e8b5&amp;view=powershell-7.2" target="_blank" rel="noreferrer noopener">here</a>.</p>



<h2 class="wp-block-heading">Change Network Profile Type Using PowerShell</h2>



<p>To change the network profile type from public network to private network using PowerShell, follow the steps below.</p>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<ol class="wp-block-list"><li>Run PowerShell as administrator.</li><li>In order to get the interface index number, type the command <code>Get-NetConnectionProfile</code>. As you can see, my computer has one network connection which is <strong>Ethernet 2</strong>. The adapter connection type is <strong>Public</strong>, and <strong>InterfaceIndex</strong> is <strong>15</strong>.</li></ol>
</div></div>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="976" height="408" src="https://technig.com/wp-content/uploads/2022/04/screenshot_20220421_022512.png" alt="How to know network connection type" class="wp-image-17622" srcset="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220421_022512.png 976w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220421_022512-300x125.png 300w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220421_022512-768x321.png 768w" sizes="(max-width: 976px) 100vw, 976px" /><figcaption>Get the network connection specifications.</figcaption></figure></div>
</div></div>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<ol class="wp-block-list" start="3"><li>Now that we got the interface-index number, execute the command <code>Set-NetConnectionProfile -InterfaceIndex 15 -NetworkCategory Private</code> to set <strong>Private</strong> network connection type for interface index 15. Note that the interface index on your device may not be 15, type the interface index of your device.</li></ol>
</div></div>



<div class="wp-block-image"><figure class="alignleft size-full"><img loading="lazy" decoding="async" width="979" height="410" src="https://technig.com/wp-content/uploads/2022/04/screenshot_20220421_023940.png" alt="Set Network connection Type" class="wp-image-17623" srcset="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220421_023940.png 979w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220421_023940-300x126.png 300w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220421_023940-768x322.png 768w" sizes="(max-width: 979px) 100vw, 979px" /><figcaption>Set network category through PowerShell.</figcaption></figure></div>



<ol class="wp-block-list" start="4"><li>When you type a command in PowerShell, and it runs without any error, then it means that the configuration is successful. To make sure that the Network type changed from Public to Private, type  <code>Get-NetConnectionProfile -InterfaceIndex 15</code>command.</li></ol>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="819" height="262" src="https://technig.com/wp-content/uploads/2022/04/screenshot_20220421_024843.png" alt="Get Network Connection Profile  in PowerShell." class="wp-image-17626" srcset="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220421_024843.png 819w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220421_024843-300x96.png 300w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220421_024843-768x246.png 768w" sizes="(max-width: 819px) 100vw, 819px" /><figcaption>Check the network connection profile for a specific ethernet.</figcaption></figure></div>



<p>Now that the connection type changed from public to private try to enable PowerShell remoting.</p>



<p>PowerShell is a great tool to configure windows settings locally or remotely because there is no Graphical User Interface (GUI) involved, and it runs the command quickly. Another advantage of PowerShell is that you can manage multiple remote computers at the same time, and run one command on multiple computers.</p>
<p>The post <a href="https://www.technig.com/enable-powershell-remoting-in-windows-11/">Enable PowerShell Remoting in Windows 11</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/enable-powershell-remoting-in-windows-11/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17582</post-id>	</item>
	</channel>
</rss>
