<?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>Blog - The PowerAdmin</title>
	<atom:link href="http://poweradmin.se/blog/feed/" rel="self" type="application/rss+xml" />
	<link>https://poweradmin.se</link>
	<description></description>
	<lastBuildDate>Wed, 23 Jul 2025 16:17:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.3</generator>
	<item>
		<title>PowerShell Summer Tips part 3 – Get-Member</title>
		<link>https://poweradmin.se/powershell-summer-tips-part-3-get-member/</link>
					<comments>https://poweradmin.se/powershell-summer-tips-part-3-get-member/#respond</comments>
		
		<dc:creator><![CDATA[walle]]></dc:creator>
		<pubDate>Mon, 21 Jul 2025 20:57:46 +0000</pubDate>
				<category><![CDATA[Fundamentals]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[PowerShell]]></category>
		<guid isPermaLink="false">https://poweradmin.se/?p=559</guid>

					<description><![CDATA[<p>When using PowerShell, Objects play a really important and fundamental role in how the system operates and interacts with data. They form the core of PowerShell&#8217;s ability to manage and manipulate information effectively. Then, moving beyond just understanding Objects, we also encounter the third key concept that is essential to grasp for working efficiently in [&#8230;]</p>
<p>The post <a href="https://poweradmin.se/powershell-summer-tips-part-3-get-member/">PowerShell Summer Tips part 3 – Get-Member</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></description>
										<content:encoded><![CDATA[<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='PowerShell Summer Tips part 3 – Get-Member' data-link='https://poweradmin.se/powershell-summer-tips-part-3-get-member/' data-app-id-name='index_above_content'></div>
<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="613" height="743" src="https://poweradmin.se/wp-content/uploads/2025/07/image-49.png" alt="" class="wp-image-565" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-49.png 613w, https://poweradmin.se/wp-content/uploads/2025/07/image-49-248x300.png 248w" sizes="(max-width: 613px) 100vw, 613px" /></figure>



<p class="wp-block-paragraph">When using PowerShell, Objects play a really important and fundamental role in how the system operates and interacts with data. They form the core of PowerShell&#8217;s ability to manage and manipulate information effectively. Then, moving beyond just understanding Objects, we also encounter the third key concept that is essential to grasp for working efficiently in PowerShell environments, Get-Member.</p>



<p class="wp-block-paragraph">When using Get-Member, we often encounter hidden properties.</p>



<p class="wp-block-paragraph">What does that mean?</p>



<p class="wp-block-paragraph">When running a cmdlet in PowerShell, we typically see only the information Microsoft intends for us to view initially.</p>



<p class="wp-block-paragraph">Here’s an example:</p>



<figure class="wp-block-image size-full"><img decoding="async" width="966" height="530" src="https://poweradmin.se/wp-content/uploads/2025/07/image-47.png" alt="" class="wp-image-561" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-47.png 966w, https://poweradmin.se/wp-content/uploads/2025/07/image-47-300x165.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-47-768x421.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-47-640x351.png 640w" sizes="(max-width: 966px) 100vw, 966px" /></figure>



<p class="wp-block-paragraph">I ran Get-ChildItem on my Code folder.</p>



<p class="wp-block-paragraph">The output is an object featuring properties like <strong>Mode, LastWriteTime, Length</strong>, and <strong>Name</strong>.</p>



<p class="wp-block-paragraph">However, this object contains many more properties beyond these.</p>



<p class="wp-block-paragraph">To discover all the properties, pipe the cmdlet to Get-Member as follows:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-ChildItem -Path C:\Code | Get-Member</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-ChildItem</span><span style="color: #D4D4D4"> -Path C:\Code | </span><span style="color: #DCDCAA">Get-Member</span></span></code></pre></div>



<p class="wp-block-paragraph">Then I will get two lists of information about two different types of objects.<br>This is because I have both files and folders in my C:\Code folder.</p>



<p class="wp-block-paragraph"><strong>System.IO.DirectoryInfo</strong> and <strong>System.IO.FileInfo</strong></p>



<p class="wp-block-paragraph">And we will see both methods and different properties.<br>To only see the properties we can do like this:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-ChildItem -Path C:\Code | Get-Member -MemberType Properties</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-ChildItem</span><span style="color: #D4D4D4"> -Path C:\Code | </span><span style="color: #DCDCAA">Get-Member</span><span style="color: #D4D4D4"> -MemberType Properties</span></span></code></pre></div>



<p class="wp-block-paragraph">The same thing happens for almost all cmdlets.</p>



<p class="wp-block-paragraph">If we do the same thing with Get-Service.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-Service</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-Service</span></span></code></pre></div>



<p class="wp-block-paragraph">Then we only see <strong>Status</strong>, <strong>Name</strong> and <strong>DisplayName</strong>.</p>



<p class="wp-block-paragraph">But if we use Get-Member again we can se more properties for Get-Service.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-Service | Get-Member -MemberType Properties</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-Service</span><span style="color: #D4D4D4"> | </span><span style="color: #DCDCAA">Get-Member</span><span style="color: #D4D4D4"> -MemberType Properties</span></span></code></pre></div>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="408" src="https://poweradmin.se/wp-content/uploads/2025/07/image-48-1024x408.png" alt="" class="wp-image-563" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-48-1024x408.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-48-300x120.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-48-768x306.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-48-1536x612.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-48-640x255.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-48.png 1689w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">The last two errors are normal; some services cannot be accessed.</p>



<p class="wp-block-paragraph">This section of the summer tips series demonstrates in detail how to find and explore object properties using the Get-Member cmdlet. In upcoming parts of the series, I will also explain how to display additional properties beyond the default set that are initially shown. This will help you gain a deeper understanding of object properties and how to customize the output according to your needs.</p>



<p class="wp-block-paragraph"></p>
<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='PowerShell Summer Tips part 3 – Get-Member' data-link='https://poweradmin.se/powershell-summer-tips-part-3-get-member/' data-app-id-name='index_below_content'></div><div style='display:none;' class='shareaholic-canvas' data-app='recommendations' data-title='PowerShell Summer Tips part 3 – Get-Member' data-link='https://poweradmin.se/powershell-summer-tips-part-3-get-member/' data-app-id-name='index_below_content'></div><p>The post <a href="https://poweradmin.se/powershell-summer-tips-part-3-get-member/">PowerShell Summer Tips part 3 – Get-Member</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://poweradmin.se/powershell-summer-tips-part-3-get-member/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Thoughts from PowerShell Conference Europe 2025 in Malmö</title>
		<link>https://poweradmin.se/thoughts-from-powershell-conference-europe-2025-in-malmo/</link>
					<comments>https://poweradmin.se/thoughts-from-powershell-conference-europe-2025-in-malmo/#respond</comments>
		
		<dc:creator><![CDATA[walle]]></dc:creator>
		<pubDate>Sun, 20 Jul 2025 17:45:18 +0000</pubDate>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Learning]]></category>
		<category><![CDATA[PowerShell]]></category>
		<guid isPermaLink="false">https://poweradmin.se/?p=516</guid>

					<description><![CDATA[<p>Last edited: 2025-07-23 It&#8217;s been nearly a month since the PSConf EU conference took place in Malmö.The event was truly an excellent conference, featuring a wide range of engaging speakers and attracting many wonderful people from the community. I had the opportunity to attend, and I gained a tremendous amount of knowledge.In fact, I learned [&#8230;]</p>
<p>The post <a href="https://poweradmin.se/thoughts-from-powershell-conference-europe-2025-in-malmo/">Thoughts from PowerShell Conference Europe 2025 in Malmö</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></description>
										<content:encoded><![CDATA[<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='Thoughts from PowerShell Conference Europe 2025 in Malmö' data-link='https://poweradmin.se/thoughts-from-powershell-conference-europe-2025-in-malmo/' data-app-id-name='index_above_content'></div>
<p class="wp-block-paragraph">Last edited: 2025-07-23<br><br>It&#8217;s been nearly a month since the PSConf EU conference took place in Malmö.<br>The event was truly an excellent conference, featuring a wide range of engaging speakers and attracting many wonderful people from the community.</p>



<p class="wp-block-paragraph">I had the opportunity to attend, and I gained a tremendous amount of knowledge.<br>In fact, I learned far more than I ever did during a traditional PowerShell training course.</p>



<p class="wp-block-paragraph">Here are my reflections and thoughts based on my experience at the conference.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://poweradmin.se/wp-content/uploads/2025/07/image-8-1024x575.png" alt="" class="wp-image-518" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-8-1024x575.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-8-300x169.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-8-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-8-1536x863.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-8-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-8.png 1807w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">The hard thing was not to find good sessions with good speakers. The hard part was to chose what to miss every time attending a session.</p>
</blockquote>



<p class="wp-block-paragraph">The quote came from one of the attendees, and it was truly insightful.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="563" src="https://poweradmin.se/wp-content/uploads/2025/07/image-9-1024x563.png" alt="" class="wp-image-519" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-9-1024x563.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-9-300x165.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-9-768x422.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-9-1536x845.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-9-640x352.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-9.png 1800w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">In total, there were more than 100 sessions.</p>



<p class="wp-block-paragraph">The best way to explore all the conference videos is to watch them online on YouTube. They can be found <a href="https://www.youtube.com/watch?v=LgDKX4oogZA&amp;list=PLDCEho7foSoo6tc8iNDSrxp27dG_gtm6g" target="_blank" rel="noreferrer noopener">here</a>.</p>



<p class="wp-block-paragraph">Not all sessions are available online yet, but 34 sessions are already accessible.</p>



<p class="wp-block-paragraph">I have reflected on all the sessions I attended and will share my insights here as well as in a PowerPoint presentation.</p>



<p class="wp-block-paragraph">The conference took place from June 23-26, 2025. I traveled to Malmö a day early by train from Stockholm.</p>



<p class="wp-block-paragraph">The conference is about the sessions and to meet people with the same passion for PowerShell.<br><br>This was my third time attending, but I missed some community activities this year because I was tired from working so much. Next time, I need to be more active and engaged. There&#8217;s great value in catching up with old community friends who share my passion for PowerShell and meeting new people.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="573" src="https://poweradmin.se/wp-content/uploads/2025/07/image-10-1024x573.png" alt="" class="wp-image-520" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-10-1024x573.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-10-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-10-768x430.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-10-1536x859.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-10-640x358.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-10.png 1795w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="574" src="https://poweradmin.se/wp-content/uploads/2025/07/image-11-1024x574.png" alt="" class="wp-image-521" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-11-1024x574.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-11-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-11-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-11-1536x861.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-11-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-11.png 1805w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">A huge thank you to all people behind PowerShell Conference Europe.<br>You are doing a super good job with everything.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="574" src="https://poweradmin.se/wp-content/uploads/2025/07/image-12-1024x574.png" alt="" class="wp-image-522" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-12-1024x574.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-12-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-12-768x430.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-12-1536x860.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-12-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-12.png 1803w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="577" src="https://poweradmin.se/wp-content/uploads/2025/07/image-13-1024x577.png" alt="" class="wp-image-523" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-13-1024x577.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-13-300x169.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-13-768x433.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-13-1536x866.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-13-640x361.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-13.png 1802w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">It&#8217;s always super fun to listen to the PowerShell team about PowerShell related news.</p>



<p class="wp-block-paragraph"><a href="https://github.com/psconfeu/2025/tree/main/Steven%20Bucher/State%20of%20the%20Shell" target="_blank" rel="noopener" title="">The Powerpoint presentation</a><br><a href="https://www.youtube.com/watch?v=XOpLLyytZcc" target="_blank" rel="noopener" title="">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="574" src="https://poweradmin.se/wp-content/uploads/2025/07/image-17-1024x574.png" alt="" class="wp-image-527" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-17-1024x574.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-17-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-17-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-17-1536x862.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-17-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-17.png 1806w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nice information about WinGet</p>



<p class="wp-block-paragraph"><a href="https://github.com/microsoft/winget-dsc/tree/main/samples" target="_blank" rel="noopener" title="">WinGet DSC Samples</a><br><a href="https://www.youtube.com/watch?v=d8swo-XT8Y8&amp;list=PLDCEho7foSoo6tc8iNDSrxp27dG_gtm6g" target="_blank" rel="noopener" title="">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://poweradmin.se/wp-content/uploads/2025/07/image-18-1024x576.png" alt="" class="wp-image-528" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-18-1024x576.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-18-300x169.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-18-768x432.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-18-1536x863.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-18-640x360.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-18.png 1804w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">It&#8217;s always interesting to learn more about stuff that I already knows about.<br>You will always learn more. And this session was great in that way.</p>



<p class="wp-block-paragraph"><a href="https://github.com/TobiasPSP/psconfeu2025_scriptblock" target="_blank" rel="noopener" title="">The code</a><br><a href="https://www.youtube.com/watch?v=ivEccMAZOxI&amp;list=PLDCEho7foSoo6tc8iNDSrxp27dG_gtm6g" target="_blank" rel="noopener" title="">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="574" src="https://poweradmin.se/wp-content/uploads/2025/07/image-19-1024x574.png" alt="" class="wp-image-529" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-19-1024x574.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-19-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-19-768x430.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-19-1536x861.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-19-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-19.png 1804w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">A great session about modules.</p>



<p class="wp-block-paragraph"><a href="https://github.com/FriedrichWeinmann/P2025-PSConfEU-PackageManagement" target="_blank" rel="noopener" title="">The code and slides</a><br><a href="https://www.youtube.com/watch?v=iMSOVwmBXrk&amp;list=PLDCEho7foSoo6tc8iNDSrxp27dG_gtm6g" target="_blank" rel="noopener" title="">The video</a></p>



<p class="wp-block-paragraph">It was a truly enjoyable and pleasant first day at the conference, where I had the wonderful opportunity to meet both new faces and reconnect with old community friends. The atmosphere was warm and welcoming, making it a great start to the event.<br>The sessions were especially impressive and engaging! Every single session throughout all the days of the conference was well-organized and informative, offering valuable insights and knowledge. Overall, it was a fantastic experience from start to finish.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://poweradmin.se/wp-content/uploads/2025/07/image-20-1024x576.png" alt="" class="wp-image-530" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-20-1024x576.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-20-300x169.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-20-768x432.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-20-1536x864.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-20-640x360.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-20.png 1805w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="573" src="https://poweradmin.se/wp-content/uploads/2025/07/image-21-1024x573.png" alt="" class="wp-image-531" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-21-1024x573.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-21-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-21-768x430.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-21-1536x860.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-21-640x358.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-21.png 1804w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">It&#8217;s always really great and quite interesting to get the chance to see what other people are doing when it comes to application installations and related setups like those. Observing different approaches and techniques can be very insightful and helpful.</p>



<p class="wp-block-paragraph"><a href="https://github.com/switch-ch/IntuneWinGetRemediation" target="_blank" rel="noopener" title="">The code</a><br><a href="https://www.youtube.com/watch?v=tfhU2-J47UA&amp;list=PLDCEho7foSoo6tc8iNDSrxp27dG_gtm6g&amp;index=8" target="_blank" rel="noopener" title="">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="574" src="https://poweradmin.se/wp-content/uploads/2025/07/image-22-1024x574.png" alt="" class="wp-image-533" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-22-1024x574.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-22-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-22-768x430.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-22-1536x861.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-22-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-22.png 1802w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="574" src="https://poweradmin.se/wp-content/uploads/2025/07/image-23-1024x574.png" alt="" class="wp-image-534" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-23-1024x574.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-23-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-23-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-23-1536x861.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-23-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-23.png 1805w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">This was an incredibly valuable and enriching session for me. I truly love attending this conference because it often surprises me; you might walk in thinking you already know a great deal about a particular subject, but then you participate in a session and realize how much more there is to discover. After each session, I am reminded once again that learning is a lifelong journey, and no matter how much knowledge you accumulate, there will always be new insights and information to absorb as long as you live.</p>



<p class="wp-block-paragraph">I have been using Visual Studio Code for a long time and teaching others how to use it. Now, I have an even deeper understanding of it!</p>



<p class="wp-block-paragraph"><a href="https://github.com/JustinGrote/PSConfeu2025" target="_blank" rel="noopener" title="">The Powerpoint presentation</a><br><a href="https://www.youtube.com/watch?v=9Nwo_Z_nW2s&amp;list=PLDCEho7foSoo6tc8iNDSrxp27dG_gtm6g" target="_blank" rel="noopener" title="">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://poweradmin.se/wp-content/uploads/2025/07/image-24-1024x575.png" alt="" class="wp-image-535" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-24-1024x575.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-24-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-24-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-24-1536x862.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-24-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-24.png 1802w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nice information about migrating to PowerShell 7</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=H8XEKcr6Vrc" target="_blank" rel="noopener" title="">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://poweradmin.se/wp-content/uploads/2025/07/image-25-1024x575.png" alt="" class="wp-image-536" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-25-1024x575.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-25-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-25-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-25-1536x863.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-25-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-25.png 1802w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">This was a great session about types in PowerShell.<br>I&#8217;m not a developer, but I really enjoy these kinds of sessions.<br>They always help me gain a deeper understanding of why things are done in a particular way.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=lio03wqwDls" target="_blank" rel="noopener" title="">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="574" src="https://poweradmin.se/wp-content/uploads/2025/07/image-26-1024x574.png" alt="" class="wp-image-537" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-26-1024x574.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-26-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-26-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-26-1536x861.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-26-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-26.png 1803w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">This was an excellent session on a topic I frequently use, though I’ve always felt a bit apprehensive about it.</p>



<p class="wp-block-paragraph">James did an excellent job demonstrating how simple it can be and showing exactly how you should approach it.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=EcJgNf8ECN4" target="_blank" rel="noopener" title="">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="577" src="https://poweradmin.se/wp-content/uploads/2025/07/image-27-1024x577.png" alt="" class="wp-image-538" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-27-1024x577.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-27-300x169.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-27-768x432.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-27-1536x865.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-27-640x360.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-27.png 1799w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">A nice presentation about what you can do with parameters.</p>



<p class="wp-block-paragraph"><a href="https://github.com/psconfeu/2025/tree/main/Andree%20Renneus/Trick_Out_Your_Parameters" target="_blank" rel="noopener" title="">The code</a><br><a href="https://www.youtube.com/watch?v=GZ4wkVspBF4&amp;t=2s" target="_blank" rel="noopener" title="">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="574" src="https://poweradmin.se/wp-content/uploads/2025/07/image-28-1024x574.png" alt="" class="wp-image-539" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-28-1024x574.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-28-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-28-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-28-1536x861.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-28-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-28.png 1805w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">A nice presentation about the new AI Shell.</p>



<p class="wp-block-paragraph"><a href="https://github.com/psconfeu/2025/tree/main/Steven%20Bucher/AI%20Shell" target="_blank" rel="noopener" title="">The Powerpoint presentation</a></p>



<p class="wp-block-paragraph">Day 2 was also a very good day filled with many positive experiences. There were numerous new things to learn and discover throughout the day, making it both exciting and enriching. The opportunity to gain fresh knowledge kept the day engaging and rewarding.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://poweradmin.se/wp-content/uploads/2025/07/image-29-1024x575.png" alt="" class="wp-image-540" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-29-1024x575.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-29-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-29-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-29-1536x862.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-29-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-29.png 1803w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://poweradmin.se/wp-content/uploads/2025/07/image-30-1024x575.png" alt="" class="wp-image-541" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-30-1024x575.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-30-300x169.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-30-768x432.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-30-1536x863.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-30-640x360.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-30.png 1801w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">I really enjoyed this session a great deal because I have been meaning to use Pester more frequently in my work. This session provided me with a helpful and motivating push in the right direction, encouraging me to incorporate Pester into my routine.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="574" src="https://poweradmin.se/wp-content/uploads/2025/07/image-31-1024x574.png" alt="" class="wp-image-542" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-31-1024x574.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-31-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-31-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-31-1536x862.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-31-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-31.png 1806w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://poweradmin.se/wp-content/uploads/2025/07/image-32-1024x575.png" alt="" class="wp-image-543" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-32-1024x575.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-32-300x169.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-32-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-32-1536x863.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-32-640x360.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-32.png 1805w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">A really nice session overall, and it provided me with another important area where I definitely need to improve and do better in the future.</p>



<p class="wp-block-paragraph"><a href="https://github.com/psconfeu/2025/tree/main/Bj%C3%B6rn%20Sundling/TDD%20for%20the%20PS1%20DEV" target="_blank" rel="noopener" title="">The code and Powerpoint presentation</a><br><a href="https://www.youtube.com/watch?v=82mrwHXB-_Y" target="_blank" rel="noopener" title="">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="574" src="https://poweradmin.se/wp-content/uploads/2025/07/image-33-1024x574.png" alt="" class="wp-image-544" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-33-1024x574.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-33-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-33-768x430.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-33-1536x860.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-33-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-33.png 1810w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">It&#8217;s always incredibly fun and enjoyable to listen to my friend Alexandar when he talks about various interesting topics.<br>In this particular session, he shares a number of insights and discoveries that he has come across, focusing on some aspects of Graph PowerShell that can sometimes be a bit tricky and challenging to understand.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=r0ByfzvqLyg" target="_blank" rel="noopener" title="The video">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://poweradmin.se/wp-content/uploads/2025/07/image-51-1024x575.png" alt="" class="wp-image-569" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-51-1024x575.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-51-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-51-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-51-1536x862.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-51-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-51.png 1805w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">It&#8217;s exciting to discover a fresh approach to OS deployment.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=Y_3rnVqNhto" target="_blank" rel="noopener" title="">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="573" src="https://poweradmin.se/wp-content/uploads/2025/07/image-35-1024x573.png" alt="" class="wp-image-546" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-35-1024x573.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-35-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-35-768x430.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-35-1536x860.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-35-640x358.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-35.png 1804w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">It is always incredibly fun and quite interesting to see the different ways that others have approached and tackled a problem that I have also worked with in the past. Observing these varied methods provides valuable insights and often sparks new ideas or perspectives.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="574" src="https://poweradmin.se/wp-content/uploads/2025/07/image-36-1024x574.png" alt="" class="wp-image-547" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-36-1024x574.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-36-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-36-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-36-1536x861.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-36-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-36.png 1807w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">PoShaKucha was a refreshing and enjoyable twist compared to a typical session format. The challenge of presenting within a strict time limit of 6 minutes and 40 seconds per speaker was quite demanding, yet every presenter rose to the occasion and delivered their content impressively well!</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="574" src="https://poweradmin.se/wp-content/uploads/2025/07/image-37-1024x574.png" alt="" class="wp-image-548" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-37-1024x574.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-37-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-37-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-37-1536x861.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-37-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-37.png 1805w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">The last day of the conferense!</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://poweradmin.se/wp-content/uploads/2025/07/image-52-1024x575.png" alt="" class="wp-image-570" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-52-1024x575.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-52-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-52-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-52-1536x862.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-52-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-52.png 1802w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">A really nice and insightful session about what exactly makes a Git commit good and effective.<br>I truly love attending these kinds of sessions because they help me remember the important practices I need to follow.</p>



<p class="wp-block-paragraph"><a href="https://www.youtube.com/watch?v=ncpUrKct5pc" target="_blank" rel="noopener" title="">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="574" src="https://poweradmin.se/wp-content/uploads/2025/07/image-53-1024x574.png" alt="" class="wp-image-571" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-53-1024x574.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-53-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-53-768x430.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-53-1536x861.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-53-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-53.png 1808w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Yet another great session by Fred. This time on what to think about when designing commands for PowerShell Pipeline.</p>



<p class="wp-block-paragraph"><a href="https://github.com/FriedrichWeinmann/P2025-PSConfEU-FunctionsForPipeline" target="_blank" rel="noopener" title="">The code and presentation</a><br><a href="https://www.youtube.com/watch?v=Q19n1ST7K0Q" target="_blank" rel="noopener" title="">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://poweradmin.se/wp-content/uploads/2025/07/image-39-1024x576.png" alt="" class="wp-image-550" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-39-1024x576.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-39-300x169.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-39-768x432.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-39-1536x865.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-39-640x360.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-39.png 1803w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="401" height="306" src="https://poweradmin.se/wp-content/uploads/2025/07/image-40.png" alt="" class="wp-image-551" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-40.png 401w, https://poweradmin.se/wp-content/uploads/2025/07/image-40-300x229.png 300w" sizes="auto, (max-width: 401px) 100vw, 401px" /></figure>



<p class="wp-block-paragraph">This session stood out as one of the very best from the entire conference, and it might have even been the absolute best session overall. What made it particularly unique was that it was the only non-technical session offered, which provided a refreshing change of pace. It was truly enjoyable and valuable to hear perspectives and insights from others in a format that was different from the usual technical presentations.</p>



<p class="wp-block-paragraph"><a href="https://github.com/psconfeu/2025/tree/main/TraciSewell_SteinPetersen" target="_blank" rel="noopener" title="">The Powerpoint presentation</a><br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://poweradmin.se/wp-content/uploads/2025/07/image-42-1024x576.png" alt="" class="wp-image-553" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-42-1024x576.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-42-300x169.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-42-768x432.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-42-1536x864.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-42-640x360.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-42.png 1807w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">An insightful and engaging session focused on various effective strategies and best practices that you can implement to enhance the security of PowerShell 7. This session provides valuable information on how to make your PowerShell 7 environment significantly more secure and resilient against potential threats and vulnerabilities.<br><br><a href="https://github.com/psconfeu/2025/tree/main/Anam%20Navied/PowerShellSecurity" target="_blank" rel="noopener" title="">The code and presentation</a><br><a href="https://www.youtube.com/watch?v=IiJpuKBILY8" target="_blank" rel="noopener" title="">The video</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="574" src="https://poweradmin.se/wp-content/uploads/2025/07/image-43-1024x574.png" alt="" class="wp-image-554" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-43-1024x574.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-43-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-43-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-43-1536x861.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-43-640x359.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-43.png 1803w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">The community session offered a unique and refreshing format compared to traditional sessions. There were some excellent speakers who brought valuable insights and energy to the event. Each speaker was given less than 10 minutes to deliver their presentation, creating a fast-paced and engaging atmosphere. As soon as one speaker finished, the next session began immediately, keeping the momentum going without any delays.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="572" src="https://poweradmin.se/wp-content/uploads/2025/07/image-45-1024x572.png" alt="" class="wp-image-556" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-45-1024x572.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-45-300x167.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-45-768x429.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-45-1536x858.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-45-640x357.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-45.png 1802w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">This was my take aways from the conference.<br>It was a great conference and great sessions.<br><br>When all of the videos are online I will post my Powerpoint as well.<br></p>
<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='Thoughts from PowerShell Conference Europe 2025 in Malmö' data-link='https://poweradmin.se/thoughts-from-powershell-conference-europe-2025-in-malmo/' data-app-id-name='index_below_content'></div><div style='display:none;' class='shareaholic-canvas' data-app='recommendations' data-title='Thoughts from PowerShell Conference Europe 2025 in Malmö' data-link='https://poweradmin.se/thoughts-from-powershell-conference-europe-2025-in-malmo/' data-app-id-name='index_below_content'></div><p>The post <a href="https://poweradmin.se/thoughts-from-powershell-conference-europe-2025-in-malmo/">Thoughts from PowerShell Conference Europe 2025 in Malmö</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://poweradmin.se/thoughts-from-powershell-conference-europe-2025-in-malmo/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PowerShell Summer Tips part 2 – Get-Help</title>
		<link>https://poweradmin.se/powershell-summer-tips-part-2-get-help/</link>
					<comments>https://poweradmin.se/powershell-summer-tips-part-2-get-help/#respond</comments>
		
		<dc:creator><![CDATA[walle]]></dc:creator>
		<pubDate>Fri, 18 Jul 2025 19:21:57 +0000</pubDate>
				<category><![CDATA[Fundamentals]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[PowerShell]]></category>
		<guid isPermaLink="false">https://poweradmin.se/?p=509</guid>

					<description><![CDATA[<p>The second PowerShell command that you absolutely cannot live without is Get-Help, an essential tool for any PowerShell user. In the first part of this series, we encountered the cmdlet Set-Culture while listing cmdlets for the International module. If we want to obtain more detailed information about the Set-Culture cmdlet, we can do it in [&#8230;]</p>
<p>The post <a href="https://poweradmin.se/powershell-summer-tips-part-2-get-help/">PowerShell Summer Tips part 2 – Get-Help</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></description>
										<content:encoded><![CDATA[<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='PowerShell Summer Tips part 2 – Get-Help' data-link='https://poweradmin.se/powershell-summer-tips-part-2-get-help/' data-app-id-name='index_above_content'></div>
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="735" height="907" src="https://poweradmin.se/wp-content/uploads/2025/07/image-3.png" alt="" class="wp-image-510" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-3.png 735w, https://poweradmin.se/wp-content/uploads/2025/07/image-3-243x300.png 243w, https://poweradmin.se/wp-content/uploads/2025/07/image-3-640x790.png 640w" sizes="auto, (max-width: 735px) 100vw, 735px" /></figure>



<p class="wp-block-paragraph">The second PowerShell command that you absolutely cannot live without is Get-Help, an essential tool for any PowerShell user.</p>



<p class="wp-block-paragraph">In the first part of this series, we encountered the cmdlet Set-Culture while listing cmdlets for the International module.</p>



<p class="wp-block-paragraph">If we want to obtain more detailed information about the Set-Culture cmdlet, we can do it in the following way:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-Help Set-Culture -Full</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-Help</span><span style="color: #D4D4D4"> </span><span style="color: #DCDCAA">Set-Culture</span><span style="color: #D4D4D4"> -Full</span></span></code></pre></div>



<p class="wp-block-paragraph">The parameter -Full is used to display all help information.</p>



<p class="wp-block-paragraph">However, if you haven&#8217;t worked with Get-Help before, you might encounter a minor issue or feature.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="895" height="703" src="https://poweradmin.se/wp-content/uploads/2025/07/image-4.png" alt="" class="wp-image-511" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-4.png 895w, https://poweradmin.se/wp-content/uploads/2025/07/image-4-300x236.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-4-768x603.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-4-640x503.png 640w" sizes="auto, (max-width: 895px) 100vw, 895px" /></figure>



<p class="wp-block-paragraph">This is what you will see then.</p>



<p class="wp-block-paragraph">PowerShell requires fetching the help information before you can use it.</p>



<p class="wp-block-paragraph">This is simple, just run the following command in PowerShell with Administrator privileges:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Update-Help -Force</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Update-Help</span><span style="color: #D4D4D4"> -Force</span></span></code></pre></div>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="961" height="53" src="https://poweradmin.se/wp-content/uploads/2025/07/image-5.png" alt="" class="wp-image-512" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-5.png 961w, https://poweradmin.se/wp-content/uploads/2025/07/image-5-300x17.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-5-768x42.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-5-640x35.png 640w" sizes="auto, (max-width: 961px) 100vw, 961px" /></figure>



<p class="wp-block-paragraph">If you are using another language then english you might run into some errors when doing this that will say something about trouble updating helpfiles for UI culture(s) {se-SV} or something like that.</p>



<p class="wp-block-paragraph">Then try to add the parameter -UICulture with you culture.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Update-Help -UICulture se-SV -Force</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Update-Help</span><span style="color: #D4D4D4"> -UICulture se-SV -Force</span></span></code></pre></div>



<p class="wp-block-paragraph">If you write <strong>Get-Help Set-Culture</strong> again you should see little more information.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="376" src="https://poweradmin.se/wp-content/uploads/2025/07/image-6-1024x376.png" alt="" class="wp-image-513" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-6-1024x376.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-6-300x110.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-6-768x282.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-6-1536x564.png 1536w, https://poweradmin.se/wp-content/uploads/2025/07/image-6-2048x752.png 2048w, https://poweradmin.se/wp-content/uploads/2025/07/image-6-640x235.png 640w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Usually, there is more help and additional examples available for a module.</p>



<p class="wp-block-paragraph">Another way to use the help is with the parameter -Online.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-Help Set-Culture -Online</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-Help</span><span style="color: #D4D4D4"> </span><span style="color: #DCDCAA">Set-Culture</span><span style="color: #D4D4D4"> -Online</span></span></code></pre></div>



<p class="wp-block-paragraph">This will open your default browser with the online version of the help.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="675" src="https://poweradmin.se/wp-content/uploads/2025/07/image-7-1024x675.png" alt="" class="wp-image-514" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-7-1024x675.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-7-300x198.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-7-768x506.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-7-640x422.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-7.png 1425w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">In some cases you can get some extra information this way.<br>At least it&#8217;s easier to follow links for more information.</p>



<p class="wp-block-paragraph">Next blog post in this series is about <strong>Get-Member</strong>.</p>
<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='PowerShell Summer Tips part 2 – Get-Help' data-link='https://poweradmin.se/powershell-summer-tips-part-2-get-help/' data-app-id-name='index_below_content'></div><div style='display:none;' class='shareaholic-canvas' data-app='recommendations' data-title='PowerShell Summer Tips part 2 – Get-Help' data-link='https://poweradmin.se/powershell-summer-tips-part-2-get-help/' data-app-id-name='index_below_content'></div><p>The post <a href="https://poweradmin.se/powershell-summer-tips-part-2-get-help/">PowerShell Summer Tips part 2 – Get-Help</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://poweradmin.se/powershell-summer-tips-part-2-get-help/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PowerShell Summer Tips part 1 &#8211; Get-Command</title>
		<link>https://poweradmin.se/powershell-summer-tips-part-1-get-command/</link>
					<comments>https://poweradmin.se/powershell-summer-tips-part-1-get-command/#respond</comments>
		
		<dc:creator><![CDATA[walle]]></dc:creator>
		<pubDate>Wed, 16 Jul 2025 17:48:27 +0000</pubDate>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[PowerShell]]></category>
		<guid isPermaLink="false">https://poweradmin.se/?p=500</guid>

					<description><![CDATA[<p>Master PowerShell This Summer: Essential Tips for Using Get-Command Like a Pro Back in 2018, I wrote a series of blog posts focused on the fundamental PowerShell commands that every user should know.These are the essential cmdlets that you truly can&#8217;t live without when working in PowerShell. Now, I have revamped and updated this article [&#8230;]</p>
<p>The post <a href="https://poweradmin.se/powershell-summer-tips-part-1-get-command/">PowerShell Summer Tips part 1 – Get-Command</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></description>
										<content:encoded><![CDATA[<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='PowerShell Summer Tips part 1 - Get-Command' data-link='https://poweradmin.se/powershell-summer-tips-part-1-get-command/' data-app-id-name='index_above_content'></div>
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="737" height="904" src="https://poweradmin.se/wp-content/uploads/2025/07/Screenshot-2025-07-16-191404.png" alt="" class="wp-image-501" srcset="https://poweradmin.se/wp-content/uploads/2025/07/Screenshot-2025-07-16-191404.png 737w, https://poweradmin.se/wp-content/uploads/2025/07/Screenshot-2025-07-16-191404-245x300.png 245w, https://poweradmin.se/wp-content/uploads/2025/07/Screenshot-2025-07-16-191404-640x785.png 640w" sizes="auto, (max-width: 737px) 100vw, 737px" /></figure>



<p class="wp-block-paragraph">Master PowerShell This Summer: Essential Tips for Using Get-Command Like a Pro</p>



<p class="wp-block-paragraph">Back in 2018, I wrote a series of blog posts focused on the fundamental PowerShell commands that every user should know.<br>These are the essential cmdlets that you truly can&#8217;t live without when working in PowerShell.</p>



<p class="wp-block-paragraph">Now, I have revamped and updated this article series, and I will begin by diving into the powerful and versatile <strong>Get-Command</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="595" src="https://poweradmin.se/wp-content/uploads/2025/07/image-1024x595.png" alt="" class="wp-image-502" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-1024x595.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-300x174.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-768x446.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-640x372.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image.png 1235w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">When you run Get-Command without any parameters, it returns all commands loaded in your PowerShell session. In my case, this lists a total of 1,791 commands.</p>



<p class="wp-block-paragraph">Often, you don’t need to distinguish whether a command is an Alias, Function, Cmdlet, or Script—especially if your goal is simply to retrieve information or perform a task.</p>



<p class="wp-block-paragraph">If you want to display only Cmdlets, you can use the <strong>-CommandType</strong> parameter with the value Cmdlet to filter the results accordingly.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-Command -CommandType Cmdlet</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-Command</span><span style="color: #D4D4D4"> -CommandType Cmdlet</span></span></code></pre></div>



<p class="wp-block-paragraph">Using this approach, I get 651 commands listed.</p>



<p class="wp-block-paragraph">While this may not be the most precise method to find a specific command, it effectively narrows down the list.</p>



<p class="wp-block-paragraph">Another way to get an smaller list is to use the parameter -Verb and then with <strong>Get</strong> or <strong>Set</strong> or another <strong>Verb</strong>.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-Command -Verb Get</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-Command</span><span style="color: #D4D4D4"> -Verb Get</span></span></code></pre></div>



<p class="wp-block-paragraph">With this approach, we will only list commands that provide us with information.</p>



<p class="wp-block-paragraph">If we want more information about a specific cmdlet we can jus write:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-Command Get-TimeZone</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-Command</span><span style="color: #D4D4D4"> </span><span style="color: #DCDCAA">Get-TimeZone</span></span></code></pre></div>



<p class="wp-block-paragraph">If we want to know if there is other cmdlets for TimeZone usage we can use the parameter -Noun.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-Command -Noun TimeZone</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-Command</span><span style="color: #D4D4D4"> -Noun TimeZone</span></span></code></pre></div>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="187" src="https://poweradmin.se/wp-content/uploads/2025/07/image-1-1024x187.png" alt="" class="wp-image-503" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-1-1024x187.png 1024w, https://poweradmin.se/wp-content/uploads/2025/07/image-1-300x55.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-1-768x140.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-1-640x117.png 640w, https://poweradmin.se/wp-content/uploads/2025/07/image-1.png 1123w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">And if we know that we want to use some cmdlets that are a part of a module then we can do this:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-Command -Module International</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-Command</span><span style="color: #D4D4D4"> -Module International</span></span></code></pre></div>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="933" height="579" src="https://poweradmin.se/wp-content/uploads/2025/07/image-2.png" alt="" class="wp-image-504" srcset="https://poweradmin.se/wp-content/uploads/2025/07/image-2.png 933w, https://poweradmin.se/wp-content/uploads/2025/07/image-2-300x186.png 300w, https://poweradmin.se/wp-content/uploads/2025/07/image-2-768x477.png 768w, https://poweradmin.se/wp-content/uploads/2025/07/image-2-640x397.png 640w" sizes="auto, (max-width: 933px) 100vw, 933px" /></figure>



<p class="wp-block-paragraph">To display all cmdlets that perform Set operations within the International module, simply use the following command:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Get-Command -Verb Set -Module International</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-Command</span><span style="color: #D4D4D4"> -Verb Set -Module International</span></span></code></pre></div>



<p class="wp-block-paragraph">This was a short summer blog post and I will be posting more basic PowerShell commands all summer long.</p>



<p class="wp-block-paragraph">Next up is Get-Help, to go from listing commands to get help using them.</p>
<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='PowerShell Summer Tips part 1 - Get-Command' data-link='https://poweradmin.se/powershell-summer-tips-part-1-get-command/' data-app-id-name='index_below_content'></div><div style='display:none;' class='shareaholic-canvas' data-app='recommendations' data-title='PowerShell Summer Tips part 1 - Get-Command' data-link='https://poweradmin.se/powershell-summer-tips-part-1-get-command/' data-app-id-name='index_below_content'></div><p>The post <a href="https://poweradmin.se/powershell-summer-tips-part-1-get-command/">PowerShell Summer Tips part 1 – Get-Command</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://poweradmin.se/powershell-summer-tips-part-1-get-command/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Create a Lab Machine with VirtualBox</title>
		<link>https://poweradmin.se/how-to-create-a-lab-machine-with-virtualbox/</link>
					<comments>https://poweradmin.se/how-to-create-a-lab-machine-with-virtualbox/#respond</comments>
		
		<dc:creator><![CDATA[walle]]></dc:creator>
		<pubDate>Mon, 16 Jun 2025 18:20:23 +0000</pubDate>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Visual Studio Code]]></category>
		<guid isPermaLink="false">https://poweradmin.se/?p=456</guid>

					<description><![CDATA[<p>In my previous guide, I demonstrated the detailed process of how to download and install VirtualBox on your computer. In this guide, I will walk you through the steps needed to set up a Windows 11 Lab Machine within VirtualBox. Although setting up a Windows 11 virtual machine in VirtualBox requires a few more steps [&#8230;]</p>
<p>The post <a href="https://poweradmin.se/how-to-create-a-lab-machine-with-virtualbox/">How to Create a Lab Machine with VirtualBox</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></description>
										<content:encoded><![CDATA[<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='How to Create a Lab Machine with VirtualBox' data-link='https://poweradmin.se/how-to-create-a-lab-machine-with-virtualbox/' data-app-id-name='index_above_content'></div>
<p class="wp-block-paragraph">In my previous guide, I demonstrated the detailed process of how to download and install VirtualBox on your computer.<br><br>In this guide, I will walk you through the steps needed to set up a Windows 11 Lab Machine within VirtualBox.</p>



<p class="wp-block-paragraph">Although setting up a Windows 11 virtual machine in VirtualBox requires a few more steps compared to the Quick Setup option available in Hyper-V, the process is still quite manageable and straightforward once you get familiar with it.</p>



<p class="has-tertiary-background-color has-background has-small-font-size wp-block-paragraph" style="border-width:1px">All the code and information provided on this website are offered &#8220;as is&#8221; without any guarantees or warranties of any kind. Although the code and information are tested, we do not warrant that the code is error-free or that it will meet your specific requirements. Use the code at your own risk. We disclaim all liability for any damages or losses arising from the use or inability to use the provided materials.</p>



<h2 class="wp-block-heading">Download Windows 11</h2>



<p class="wp-block-paragraph">I will guide you through setting up an evaluation version of Windows 11, making the process simple and accessible for everyone. If you already have a licensed copy, you can use it as well.</p>



<p class="wp-block-paragraph">In VirtualBox, you can install Windows 11 using an ISO file. You can download the ISO file <a href="https://www.microsoft.com/en-us/software-download/windows11" target="_blank" rel="noreferrer noopener">here</a>.</p>



<p class="wp-block-paragraph">Simply scroll down to the section labeled &#8220;Download Windows 11 Disk Image (ISO) for x64 devices,&#8221; select your edition, click Download, and then press Confirm.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="399" src="https://poweradmin.se/wp-content/uploads/2025/06/image-34-1024x399.png" alt="" class="wp-image-459" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-34-1024x399.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-34-300x117.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-34-768x299.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-34-640x250.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-34.png 1103w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Next, select the language and click Confirm.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="282" src="https://poweradmin.se/wp-content/uploads/2025/06/image-35-1024x282.png" alt="" class="wp-image-460" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-35-1024x282.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-35-300x83.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-35-768x212.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-35-640x177.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-35.png 1102w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">I have selected English International for this guide.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="139" src="https://poweradmin.se/wp-content/uploads/2025/06/image-36-1024x139.png" alt="" class="wp-image-461" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-36-1024x139.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-36-300x41.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-36-768x104.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-36-640x87.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-36.png 1115w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Just click 64-bit Download.</p>



<p class="wp-block-paragraph">The download size is approximately 5.4GB.</p>



<p class="wp-block-paragraph">Once the ISO has been downloaded, you can proceed to the next step.</p>



<h2 class="wp-block-heading">Create Virtual Machine</h2>



<p class="wp-block-paragraph">In this step we will Create a Virtual Machine in Virtual Box.<br>Start VirtualBox and click on New.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="234" src="https://poweradmin.se/wp-content/uploads/2025/06/image-37-1024x234.png" alt="" class="wp-image-462" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-37-1024x234.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-37-300x68.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-37-768x175.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-37-640x146.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-37.png 1073w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Now you need to provide some information</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="815" height="440" src="https://poweradmin.se/wp-content/uploads/2025/06/image-38.png" alt="" class="wp-image-463" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-38.png 815w, https://poweradmin.se/wp-content/uploads/2025/06/image-38-300x162.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-38-768x415.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-38-640x346.png 640w" sizes="auto, (max-width: 815px) 100vw, 815px" /></figure>



<p class="wp-block-paragraph"><strong>Name:</strong> Windows 11 Lab Machine<br>Feel free to select any name you prefer!</p>



<p class="wp-block-paragraph"><strong>Folder:</strong> The chosen folder is easy to use and you will have access to it.<br>Please ensure there is enough free space available on the hard drive!</p>



<p class="wp-block-paragraph"><strong>ISO Image:</strong> Click the arrow on the right and select Other…<br>Then navigate to the ISO file you downloaded earlier.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="616" src="https://poweradmin.se/wp-content/uploads/2025/06/image-39-1024x616.png" alt="" class="wp-image-464" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-39-1024x616.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-39-300x180.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-39-768x462.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-39-640x385.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-39.png 1186w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Then click Open</p>



<p class="wp-block-paragraph"><strong>Edition:</strong> Select from a variety of options available.<br>I choose Windows 11 pro for this guide.</p>



<p class="wp-block-paragraph">Then click Next</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="802" height="444" src="https://poweradmin.se/wp-content/uploads/2025/06/image-40.png" alt="" class="wp-image-465" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-40.png 802w, https://poweradmin.se/wp-content/uploads/2025/06/image-40-300x166.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-40-768x425.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-40-640x354.png 640w" sizes="auto, (max-width: 802px) 100vw, 802px" /></figure>



<p class="wp-block-paragraph">VirtualBox facilitates unattended Guest OS installation.<br>Now, let&#8217;s provide some details.</p>



<p class="wp-block-paragraph"><strong>Username:</strong> vboxuser is a solid option, but you can pick another if you prefer.<br><strong>Password:</strong> Create a strong password and make sure to record it!<br><strong>Product Key:</strong> Use the default key to obtain an evaluation copy<br><strong>Hostname:</strong> I use Win11Lab01, you can choose another one, but the default name will not work.<br><strong>Domain Name:</strong> Default will work for this Lab Machine.<br><br><strong>VirtualBox Guest Additions</strong>&nbsp;are a set of drivers and system applications that enhance the performance and usability of virtual machines.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="802" height="444" src="https://poweradmin.se/wp-content/uploads/2025/06/image-41.png" alt="" class="wp-image-466" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-41.png 802w, https://poweradmin.se/wp-content/uploads/2025/06/image-41-300x166.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-41-768x425.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-41-640x354.png 640w" sizes="auto, (max-width: 802px) 100vw, 802px" /></figure>



<p class="wp-block-paragraph">Next, click Next.</p>



<p class="wp-block-paragraph">Then select the amount of memory and the number of virtual processors you&#8217;d like to allocate to this Virtual Machine.</p>



<p class="wp-block-paragraph">The default settings are sufficient for most use cases.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="802" height="444" src="https://poweradmin.se/wp-content/uploads/2025/06/image-42.png" alt="" class="wp-image-467" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-42.png 802w, https://poweradmin.se/wp-content/uploads/2025/06/image-42-300x166.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-42-768x425.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-42-640x354.png 640w" sizes="auto, (max-width: 802px) 100vw, 802px" /></figure>



<p class="wp-block-paragraph">Next, let&#8217;s create a Virtual Hard Drive. Simply click Next to continue.</p>



<p class="wp-block-paragraph">Please ensure you have at least 80GB of free disk space available before proceeding!</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="802" height="444" src="https://poweradmin.se/wp-content/uploads/2025/06/image-43.png" alt="" class="wp-image-468" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-43.png 802w, https://poweradmin.se/wp-content/uploads/2025/06/image-43-300x166.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-43-768x425.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-43-640x354.png 640w" sizes="auto, (max-width: 802px) 100vw, 802px" /></figure>



<p class="wp-block-paragraph">When you click Next, you will see a Summary. Simply click Finish to complete the process.</p>



<p class="wp-block-paragraph">The process to Create a new Virtual Machine will start.<br>But you need to Press any key to boot from CD or DVD&#8230;<br>Or you will get this prompt:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="784" src="https://poweradmin.se/wp-content/uploads/2025/06/image-44-1024x784.png" alt="" class="wp-image-469" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-44-1024x784.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-44-300x230.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-44-768x588.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-44-640x490.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-44.png 1300w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Choose the ISO file in the DVD drop down list and press Mount and Retry Boot.</p>



<p class="wp-block-paragraph">This time, be sure to press any key (and tap the screen with the mouse first).</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="739" height="584" src="https://poweradmin.se/wp-content/uploads/2025/06/image-45.png" alt="" class="wp-image-470" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-45.png 739w, https://poweradmin.se/wp-content/uploads/2025/06/image-45-300x237.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-45-640x506.png 640w" sizes="auto, (max-width: 739px) 100vw, 739px" /></figure>



<p class="wp-block-paragraph">If the Product Key window appears, simply click <strong>I don&#8217;t have a product key</strong>.</p>



<p class="wp-block-paragraph">Now the installation will start</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="841" src="https://poweradmin.se/wp-content/uploads/2025/06/image-46-1024x841.png" alt="" class="wp-image-471" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-46-1024x841.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-46-300x246.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-46-768x631.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-46-640x526.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-46.png 1026w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="841" src="https://poweradmin.se/wp-content/uploads/2025/06/image-47-1024x841.png" alt="" class="wp-image-472" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-47-1024x841.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-47-300x246.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-47-768x631.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-47-640x526.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-47.png 1026w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="841" src="https://poweradmin.se/wp-content/uploads/2025/06/image-48-1024x841.png" alt="" class="wp-image-473" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-48-1024x841.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-48-300x246.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-48-768x631.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-48-640x526.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-48.png 1026w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">When you see the screen below, please wait a moment for the initial setup to complete. Once ready, you can proceed.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="841" src="https://poweradmin.se/wp-content/uploads/2025/06/image-49-1024x841.png" alt="" class="wp-image-474" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-49-1024x841.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-49-300x246.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-49-768x631.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-49-640x526.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-49.png 1026w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">You can now maximize the window for a better view.<br>Simply click the maximize button in the upper right corner.</p>



<p class="wp-block-paragraph">On the right side of the screen, you may see the same information as shown in the picture above.</p>



<p class="wp-block-paragraph">To remove it, click the icon on the right, as shown in the image below.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="219" height="192" src="https://poweradmin.se/wp-content/uploads/2025/06/image-50.png" alt="" class="wp-image-475"/></figure>



<p class="wp-block-paragraph">Now that the operating system installation is complete, we can move on to configuring the language settings.<br><br>Before that, we need to restart the Virtual Machine to be able to enable all features of the VirtualBox Guest Additions, such as copying and pasting between your computer and the Virtual Lab Machine.</p>



<p class="wp-block-paragraph">After the restart, we need to enable the Shared Clipboard for this virtual machine and possibly activate Drag and Drop functionality between the host and guest operating systems.</p>



<p class="wp-block-paragraph">We can do this in the menu under Devices.</p>



<p class="wp-block-paragraph"><strong>Copy and Paste</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="668" height="293" src="https://poweradmin.se/wp-content/uploads/2025/06/image-52.png" alt="" class="wp-image-477" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-52.png 668w, https://poweradmin.se/wp-content/uploads/2025/06/image-52-300x132.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-52-640x281.png 640w" sizes="auto, (max-width: 668px) 100vw, 668px" /></figure>



<p class="wp-block-paragraph">I use Bidirectional to be able to Copy and Paste to and from the Lab Computer.</p>



<p class="wp-block-paragraph"><strong>Drag and Drop</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="577" height="282" src="https://poweradmin.se/wp-content/uploads/2025/06/image-53.png" alt="" class="wp-image-478" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-53.png 577w, https://poweradmin.se/wp-content/uploads/2025/06/image-53-300x147.png 300w" sizes="auto, (max-width: 577px) 100vw, 577px" /></figure>



<p class="wp-block-paragraph">I use Bidirectional here too.</p>



<h2 class="wp-block-heading">Take Snapshot</h2>



<p class="wp-block-paragraph">Before using the Lab Computer, it&#8217;s a good idea to create a snapshot that you can restore later if needed.<br><br>You can do this now or after setting the language.</p>



<p class="wp-block-paragraph">To do this, go to the menu, select Machine, and then click Take Snapshot…</p>



<p class="wp-block-paragraph">Name the Snapshot after what it is.<br>Like Clean Install</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="642" height="392" src="https://poweradmin.se/wp-content/uploads/2025/06/image-56.png" alt="" class="wp-image-487" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-56.png 642w, https://poweradmin.se/wp-content/uploads/2025/06/image-56-300x183.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-56-640x391.png 640w" sizes="auto, (max-width: 642px) 100vw, 642px" /></figure>



<p class="wp-block-paragraph">Now you can see the Snapshot name with your Virtual Machine.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="593" height="66" src="https://poweradmin.se/wp-content/uploads/2025/06/image-57.png" alt="" class="wp-image-488" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-57.png 593w, https://poweradmin.se/wp-content/uploads/2025/06/image-57-300x33.png 300w" sizes="auto, (max-width: 593px) 100vw, 593px" /></figure>



<p class="wp-block-paragraph"></p>



<h2 class="wp-block-heading">Setup the lab computer</h2>



<p class="wp-block-paragraph">This step will show you how to set up the Windows Language settings as we want and install all tools needed for PowerShell and Visual Studio Code in the Lab Machine.</p>



<p class="wp-block-paragraph">This is the same steps as in the guide how to setup a Lab Machine on Hyper-V.</p>



<h3 class="wp-block-heading">Language</h3>



<p class="wp-block-paragraph">First, open PowerShell ISE as Administrator.</p>



<p class="wp-block-paragraph">Click the arrow next to Script to open the Editor in PowerShell ISE.<br>Then close the Commands view on the right to have more space for scripting.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://poweradmin.se/wp-content/uploads/2025/05/image-13-1024x575.png" alt="" class="wp-image-238" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-13-1024x575.png 1024w, https://poweradmin.se/wp-content/uploads/2025/05/image-13-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/image-13-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/05/image-13-1536x863.png 1536w, https://poweradmin.se/wp-content/uploads/2025/05/image-13-2048x1150.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">First of all I want to set all language settings to Swedish.<br>Just copy and past the code below and run it to do the changes.<br>You can do it bit by bit or all at once.<br><br>This can be done in different ways but I like my scripts to have more checks built in.<br>So this is not the easiest way <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f60a.png" alt="😊" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<p class="wp-block-paragraph">We start with a check for Run As Administrator and a Clear-Host.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Check if the script is running with administrative privileges
#Requires -RunAsAdministrator

# Clear the terminal part
Clear-Host</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Check if the script is running with administrative privileges</span></span>
<span class="line"><span style="color: #6A9955">#</span><span style="color: #C586C0">Requires </span><span style="color: #569CD6">-RunAsAdministrator</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Clear the terminal part</span></span>
<span class="line"><span style="color: #DCDCAA">Clear-Host</span></span></code></pre></div>



<p class="wp-block-paragraph">Then we set the input method to Swedish if it is not already.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Set the default input method to Swedish (Sweden) &#8211; Keyboard layout: Swedish
if ((Get-WinDefaultInputMethodOverride).InputMethodTip -ne &#8220;041D:0000041D&#8221;) {
    Set-WinDefaultInputMethodOverride -InputTip &#8220;041D:0000041D&#8221;
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Set the default input method to Swedish (Sweden) - Keyboard layout: Swedish</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinDefaultInputMethodOverride</span><span style="color: #D4D4D4">).InputMethodTip -ne </span><span style="color: #CE9178">&quot;041D:0000041D&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinDefaultInputMethodOverride</span><span style="color: #D4D4D4"> -InputTip </span><span style="color: #CE9178">&quot;041D:0000041D&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">If you want another input method you can look at the&nbsp;<a href="https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-input-locales-for-windows-language-packs?view=windows-11" target="_blank" rel="noreferrer noopener">Default input profiles (input locales) in Windows&nbsp;</a>page at Microsoft Learn for more language codes.</p>



<p class="wp-block-paragraph">You just need to use the same language codes for the&nbsp;<strong>Get</strong>&nbsp;and for the&nbsp;<strong>Set</strong>.</p>



<p class="wp-block-paragraph">And now we change the user language list to Swedish.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Set the user language list to Swedish (Sweden)
if ((Get-WinUserLanguageList).LanguageTag -notcontains &#8220;sv-SE&#8221;) {
    Set-WinUserLanguageList -LanguageList &#8220;sv-SE&#8221; -Force
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Set the user language list to Swedish (Sweden)</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinUserLanguageList</span><span style="color: #D4D4D4">).LanguageTag -notcontains </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinUserLanguageList</span><span style="color: #D4D4D4"> -LanguageList </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4"> -Force</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">For this one you will get this warning and it’s normal:<br><br><strong>WARNING: If the Windows Display Language has changed, it will take effect after the next sign-in.</strong></p>



<p class="wp-block-paragraph">And to set the system locale to Swedish we write:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Set the system locale to Swedish (Sweden)
if ((Get-WinSystemLocale).Name -ne &#8220;sv-SE&#8221;) {
    Set-WinSystemLocale -SystemLocale &#8220;sv-SE&#8221;
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Set the system locale to Swedish (Sweden)</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinSystemLocale</span><span style="color: #D4D4D4">).Name -ne </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinSystemLocale</span><span style="color: #D4D4D4"> -SystemLocale </span><span style="color: #CE9178">&quot;sv-SE&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">Setting user locale to Swedish:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Set the user locale to Swedish (Sweden)
if ((Get-Culture).Name -ne &#8220;sv-SE&#8221;) {
    Set-Culture -CultureInfo &#8220;sv-SE&#8221;
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Set the user locale to Swedish (Sweden)</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-Culture</span><span style="color: #D4D4D4">).Name -ne </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-Culture</span><span style="color: #D4D4D4"> -CultureInfo </span><span style="color: #CE9178">&quot;sv-SE&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">Home location:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Set the home location to Sweden
if ((Get-WinHomeLocation).GeoID -ne &#8220;221&#8221;) {
    Set-WinHomeLocation -GeoID &#8220;221&#8221;
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Set the home location to Sweden</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinHomeLocation</span><span style="color: #D4D4D4">).GeoID -ne </span><span style="color: #CE9178">&quot;221&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinHomeLocation</span><span style="color: #D4D4D4"> -GeoID </span><span style="color: #CE9178">&quot;221&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">For a table of GeoIDs, see Table of&nbsp;<a href="https://go.microsoft.com/fwlink/?LinkID=242308" target="_blank" rel="noreferrer noopener">Geographical Locations</a>&nbsp;at Microsoft Learn.</p>



<p class="wp-block-paragraph">The last language setting is the Time Zone:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Ensure the time zone is set to W. Europe Standard Time (CET/CEST) 
if ((Get-TimeZone).Id -ne &#8220;W. Europe Standard Time&#8221;) {
    Set-TimeZone -Id &#8220;W. Europe Standard Time&#8221;
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Ensure the time zone is set to W. Europe Standard Time (CET/CEST) </span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-TimeZone</span><span style="color: #D4D4D4">).Id -ne </span><span style="color: #CE9178">&quot;W. Europe Standard Time&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-TimeZone</span><span style="color: #D4D4D4"> -Id </span><span style="color: #CE9178">&quot;W. Europe Standard Time&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">To get another time zone, you can use the cmdlet Get-TimeZone.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>Get-TimeZone -ListAvailable</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-TimeZone</span><span style="color: #D4D4D4"> -ListAvailable</span></span></code></pre></div>



<p class="wp-block-paragraph">The last step for the Language section is to restart the Lab computer.<br>This can be done manually or with PowerShell.</p>



<p class="wp-block-paragraph">Using PowerShell for a quick restart, we do the following:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>Restart-Computer -Force -Confirm:$false</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Restart-Computer</span><span style="color: #D4D4D4"> -Force -Confirm:</span><span style="color: #569CD6">$false</span></span></code></pre></div>



<p class="wp-block-paragraph">Now we have the following code:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>&lt;#
.SYNOPSIS
    Configures Windows system and user locale settings for Swedish (Sweden).

.DESCRIPTION
    This script sets the following to Swedish (Sweden):
    &#8211; Default input method (keyboard layout)
    &#8211; User language list
    &#8211; System locale
    &#8211; User locale
    &#8211; Home location (region)
    &#8211; Time zone (W. Europe Standard Time)
    The script will restart the computer to apply changes.

.NOTES
    Requires administrative privileges.
    Some changes may require a restart to take effect.
#>

# Check if the script is running with administrative privileges
#Requires -RunAsAdministrator

# Clear the terminal part
Clear-Host

# Set the default input method to Swedish (Sweden) &#8211; Keyboard layout: Swedish
if ((Get-WinDefaultInputMethodOverride).InputMethodTip -ne &#8220;041D:0000041D&#8221;) {
    Set-WinDefaultInputMethodOverride -InputTip &#8220;041D:0000041D&#8221;
}

# Set the user language list to Swedish (Sweden)
if ((Get-WinUserLanguageList).LanguageTag -notcontains &#8220;sv-SE&#8221;) {
    Set-WinUserLanguageList -LanguageList &#8220;sv-SE&#8221; -Force
}

# Set the system locale to Swedish (Sweden)
if ((Get-WinSystemLocale).Name -ne &#8220;sv-SE&#8221;) {
    Set-WinSystemLocale -SystemLocale &#8220;sv-SE&#8221;
}

# Set the user locale to Swedish (Sweden)
if ((Get-Culture).Name -ne &#8220;sv-SE&#8221;) {
    Set-Culture -CultureInfo &#8220;sv-SE&#8221;
}

# Set the home location to Sweden
if ((Get-WinHomeLocation).GeoID -ne &#8220;221&#8221;) {
    Set-WinHomeLocation -GeoID &#8220;221&#8221;
}

# Ensure the time zone is set to W. Europe Standard Time (CET/CEST) 
if ((Get-TimeZone).Id -ne &#8220;W. Europe Standard Time&#8221;) {
    Set-TimeZone -Id &#8220;W. Europe Standard Time&#8221;
}

Restart-Computer -Force -Confirm:$false</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955">&lt;#</span></span>
<span class="line"><span style="color: #6A9955">.</span><span style="color: #D4D4D4">SYNOPSIS</span></span>
<span class="line"><span style="color: #6A9955">    Configures Windows system and user locale settings for Swedish (Sweden).</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955">.</span><span style="color: #D4D4D4">DESCRIPTION</span></span>
<span class="line"><span style="color: #6A9955">    This script sets the following to Swedish (Sweden):</span></span>
<span class="line"><span style="color: #6A9955">    - Default input method (keyboard layout)</span></span>
<span class="line"><span style="color: #6A9955">    - User language list</span></span>
<span class="line"><span style="color: #6A9955">    - System locale</span></span>
<span class="line"><span style="color: #6A9955">    - User locale</span></span>
<span class="line"><span style="color: #6A9955">    - Home location (region)</span></span>
<span class="line"><span style="color: #6A9955">    - Time zone (W. Europe Standard Time)</span></span>
<span class="line"><span style="color: #6A9955">    The script will restart the computer to apply changes.</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955">.</span><span style="color: #D4D4D4">NOTES</span></span>
<span class="line"><span style="color: #6A9955">    Requires administrative privileges.</span></span>
<span class="line"><span style="color: #6A9955">    Some changes may require a restart to take effect.</span></span>
<span class="line"><span style="color: #6A9955">#&gt;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Check if the script is running with administrative privileges</span></span>
<span class="line"><span style="color: #6A9955">#</span><span style="color: #C586C0">Requires </span><span style="color: #569CD6">-RunAsAdministrator</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Clear the terminal part</span></span>
<span class="line"><span style="color: #DCDCAA">Clear-Host</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Set the default input method to Swedish (Sweden) - Keyboard layout: Swedish</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinDefaultInputMethodOverride</span><span style="color: #D4D4D4">).InputMethodTip -ne </span><span style="color: #CE9178">&quot;041D:0000041D&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinDefaultInputMethodOverride</span><span style="color: #D4D4D4"> -InputTip </span><span style="color: #CE9178">&quot;041D:0000041D&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Set the user language list to Swedish (Sweden)</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinUserLanguageList</span><span style="color: #D4D4D4">).LanguageTag -notcontains </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinUserLanguageList</span><span style="color: #D4D4D4"> -LanguageList </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4"> -Force</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Set the system locale to Swedish (Sweden)</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinSystemLocale</span><span style="color: #D4D4D4">).Name -ne </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinSystemLocale</span><span style="color: #D4D4D4"> -SystemLocale </span><span style="color: #CE9178">&quot;sv-SE&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Set the user locale to Swedish (Sweden)</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-Culture</span><span style="color: #D4D4D4">).Name -ne </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-Culture</span><span style="color: #D4D4D4"> -CultureInfo </span><span style="color: #CE9178">&quot;sv-SE&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Set the home location to Sweden</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinHomeLocation</span><span style="color: #D4D4D4">).GeoID -ne </span><span style="color: #CE9178">&quot;221&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinHomeLocation</span><span style="color: #D4D4D4"> -GeoID </span><span style="color: #CE9178">&quot;221&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Ensure the time zone is set to W. Europe Standard Time (CET/CEST) </span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-TimeZone</span><span style="color: #D4D4D4">).Id -ne </span><span style="color: #CE9178">&quot;W. Europe Standard Time&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-TimeZone</span><span style="color: #D4D4D4"> -Id </span><span style="color: #CE9178">&quot;W. Europe Standard Time&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">Restart-Computer</span><span style="color: #D4D4D4"> -Force -Confirm:</span><span style="color: #569CD6">$false</span></span></code></pre></div>



<p class="wp-block-paragraph">Windows should now have all language settings configured to Swedish or your preferred language.</p>



<p class="wp-block-paragraph"></p>



<h3 class="wp-block-heading">PowerShell 7</h3>



<p class="wp-block-paragraph">Now that the language has been successfully set, we can move forward with the next step, which is installing PowerShell 7. This installation is essential to enable and run labs that specifically require PowerShell 7 for their execution and functionality.</p>



<p class="wp-block-paragraph">The simplest and officially recommended method by Microsoft to install&nbsp;<a href="https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.5" target="_blank" rel="noreferrer noopener">PowerShell 7</a>&nbsp;on Windows is by using WinGet.</p>



<p class="wp-block-paragraph">However, this method will only be effective if the lab computer is completely and thoroughly updated with the latest system updates. Without having the most recent updates installed, WinGet will not operate correctly and may encounter various issues or fail to function altogether.</p>



<p class="wp-block-paragraph">The simplest and most straightforward way to ensure your system is fully up to date is to manually navigate to the&nbsp;<strong>Check for Updates</strong>&nbsp;section and carefully install all available updates. This process should include not only the critical and recommended updates but also optional ones, such as those related to&nbsp;<strong>.NET</strong>&nbsp;framework components, which can be essential for certain applications to function properly.</p>



<p class="wp-block-paragraph">Start Windows PowerShell with Administrator privileges to ensure you have the necessary permissions.<br><br>Then enter the following command:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>winget list &#8211;id Microsoft.PowerShell</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">winget list --id Microsoft.PowerShell</span></span></code></pre></div>



<p class="wp-block-paragraph">After reviewing the MS Store terms carefully, proceed by pressing the Y key to indicate your agreement and acceptance of all the conditions outlined.</p>



<p class="wp-block-paragraph">Now we can start PowerShell ISE as administrator and write the following code:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Check if the script is running with administrative privileges
#Requires -RunAsAdministrator

# Clear the terminal part
Clear-Host

# Check if PowerShell 7 is installed using winget
$Pwsh = winget list &#8211;id Microsoft.PowerShell | Select-String &#8220;PowerShell&#8221;
if ($Pwsh) {
    Write-Output &#8220;PowerShell 7 is installed.&#8221;
} else {
    Write-Output &#8220;PowerShell 7 is NOT installed.&#8221;
    # Install PowerShell 7
    winget install &#8211;id Microsoft.PowerShell &#8211;source winget &#8211;accept-source-agreements &#8211;accept-package-agreements
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Check if the script is running with administrative privileges</span></span>
<span class="line"><span style="color: #6A9955">#</span><span style="color: #C586C0">Requires </span><span style="color: #569CD6">-RunAsAdministrator</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Clear the terminal part</span></span>
<span class="line"><span style="color: #DCDCAA">Clear-Host</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Check if PowerShell 7 is installed using winget</span></span>
<span class="line"><span style="color: #9CDCFE">$Pwsh</span><span style="color: #D4D4D4"> = winget list --id Microsoft.PowerShell | </span><span style="color: #DCDCAA">Select-String</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;PowerShell&quot;</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> (</span><span style="color: #9CDCFE">$Pwsh</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Write-Output</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;PowerShell 7 is installed.&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">} </span><span style="color: #C586C0">else</span><span style="color: #D4D4D4"> {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Write-Output</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;PowerShell 7 is NOT installed.&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #6A9955"># Install PowerShell 7</span></span>
<span class="line"><span style="color: #D4D4D4">    winget install --id Microsoft.PowerShell --source winget --accept-source-agreements --accept-package-agreements</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">PowerShell will be downloaded and installed automatically.</p>



<p class="wp-block-paragraph"></p>



<h3 class="wp-block-heading">Visual Studio Code</h3>



<p class="wp-block-paragraph">Now it is time to move forward and proceed with the installation of Visual Studio Code on the Lab computer, ensuring that we have the latest tools ready for our development work.<br><br>We will perform this installation process using WinGet along with PowerShell, following the same method we previously used when installing PowerShell 7, to maintain consistency and efficiency in our setup steps.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Check if the script is running with administrative privileges
#Requires -RunAsAdministrator

# Clear the terminal part
Clear-Host

# Install Visual Studio Code
# Check if Visual Studio Code is installed using winget
$VsCode = winget list &#8211;id Microsoft.VisualStudioCode | Select-String &#8220;Visual Studio Code&#8221;
if ($VsCode) {
    Write-Output &#8220;Visual Studio Code is installed.&#8221;
} else {
    Write-Output &#8220;Visual Studio Code is NOT installed.&#8221;
    # Install Visual Studio Code
    winget install &#8211;id Microsoft.VisualStudioCode &#8211;source winget &#8211;accept-source-agreements &#8211;accept-package-agreements
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Check if the script is running with administrative privileges</span></span>
<span class="line"><span style="color: #6A9955">#</span><span style="color: #C586C0">Requires </span><span style="color: #569CD6">-RunAsAdministrator</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Clear the terminal part</span></span>
<span class="line"><span style="color: #DCDCAA">Clear-Host</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Install Visual Studio Code</span></span>
<span class="line"><span style="color: #6A9955"># Check if Visual Studio Code is installed using winget</span></span>
<span class="line"><span style="color: #9CDCFE">$VsCode</span><span style="color: #D4D4D4"> = winget list --id Microsoft.VisualStudioCode | </span><span style="color: #DCDCAA">Select-String</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Visual Studio Code&quot;</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> (</span><span style="color: #9CDCFE">$VsCode</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Write-Output</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Visual Studio Code is installed.&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">} </span><span style="color: #C586C0">else</span><span style="color: #D4D4D4"> {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Write-Output</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Visual Studio Code is NOT installed.&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #6A9955"># Install Visual Studio Code</span></span>
<span class="line"><span style="color: #D4D4D4">    winget install --id Microsoft.VisualStudioCode --source winget --accept-source-agreements --accept-package-agreements</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">Visual Studio Code will be downloaded and installed automatically.</p>



<p class="wp-block-paragraph"></p>



<h3 class="wp-block-heading">VSCode Extensions</h3>



<p class="wp-block-paragraph">Now we are fully prepared and ready to start working with our development environment.<br><br>HOWEVER, Visual Studio Code (VSCode) becomes much more powerful and enjoyable to use when enhanced with some useful extensions, and I personally recommend these 5 essential extensions as a great starter kit to improve your workflow.</p>



<p class="wp-block-paragraph"></p>



<h4 class="wp-block-heading">PowerShell for Visual Studio Code</h4>



<p class="wp-block-paragraph">This extension allows you to seamlessly integrate full PowerShell support within Visual Studio Code, making scripting and command execution much easier and more efficient.</p>



<p class="wp-block-paragraph"></p>



<h4 class="wp-block-heading">VSCode-Icons</h4>



<p class="wp-block-paragraph">This extension adds visually appealing and distinctive icons to the Explorer view, helping you quickly identify file types and folders.<br>After installing, you must enable it within the extensions panel to activate the icon set.<br><br>Without:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="263" height="270" src="https://poweradmin.se/wp-content/uploads/2025/05/image-16.png" alt="" class="wp-image-306"/></figure>



<p class="wp-block-paragraph">With:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="256" height="266" src="https://poweradmin.se/wp-content/uploads/2025/05/image-15.png" alt="" class="wp-image-304"/></figure>



<p class="wp-block-paragraph"></p>



<h4 class="wp-block-heading">CodeSnap</h4>



<p class="wp-block-paragraph">Takes a clear and nice screenshot of your code and saves it to a file on your computer.<br><br>Press Ctrl-Shift-P to open the Command Palette, then type CodeSnap in the search bar, and select the CodeSnap option from the list.<br><br>After that, simply highlight the portion of code you want to capture, and the tool will create a neat screenshot for you.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="215" src="https://poweradmin.se/wp-content/uploads/2025/05/image-17-1024x215.png" alt="" class="wp-image-307" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-17-1024x215.png 1024w, https://poweradmin.se/wp-content/uploads/2025/05/image-17-300x63.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/image-17-768x161.png 768w, https://poweradmin.se/wp-content/uploads/2025/05/image-17-1536x323.png 1536w, https://poweradmin.se/wp-content/uploads/2025/05/image-17-2048x430.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Then press the shutter button to capture the image and save the screenshot to your desired location.<br>The picture shown below is taken from the CodeSnap extension.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="371" src="https://poweradmin.se/wp-content/uploads/2025/05/code-1024x371.png" alt="" class="wp-image-308" srcset="https://poweradmin.se/wp-content/uploads/2025/05/code-1024x371.png 1024w, https://poweradmin.se/wp-content/uploads/2025/05/code-300x109.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/code-768x278.png 768w, https://poweradmin.se/wp-content/uploads/2025/05/code-1536x556.png 1536w, https://poweradmin.se/wp-content/uploads/2025/05/code.png 1542w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"></p>



<h4 class="wp-block-heading">GitHub CoPilot</h4>



<p class="wp-block-paragraph">GitHub CoPilot provides you with the incredible power of artificial intelligence directly within Visual Studio Code, making your coding experience much more efficient and enjoyable.<br><br>All you need to start using this amazing tool is a simple GitHub account, which enables you to access its full range of features without any hassle.<br><br>In my opinion, it is especially useful for assisting with the creation of documentation and for debugging code, offering valuable suggestions and insights that can save time and improve the quality of your projects.</p>



<p class="wp-block-paragraph"></p>



<h4 class="wp-block-heading">XML Tools</h4>



<p class="wp-block-paragraph">XML Tools by Josh Johnson.<br><br>I frequently work with XML files in my projects, and this tool has proven to be incredibly helpful for me. It assists greatly with the formatting of XML files whenever it is needed, making the process much smoother and more efficient.</p>



<p class="wp-block-paragraph"></p>



<h4 class="wp-block-heading">Install Extensions</h4>



<p class="wp-block-paragraph">To install extensions, you have several options available. You can easily do it directly from Visual Studio Code using the graphical user interface (GUI), which provides a user-friendly way to browse and add extensions. Alternatively, if you prefer using the command line, you can install extensions through PowerShell or from a Command Prompt window running with administrator privileges. Each method allows you to efficiently manage your extensions according to your preferred workflow.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Install PowerShell Extension
code &#8211;install-extension ms-vscode.PowerShell

# Install VSCode-Icons Extension
code &#8211;install-extension vscode-icons-team.vscode-icons

# Install CodeSnap Extension
code &#8211;install-extension adpyke.codesnap

# Install GitHub CoPilot incl CoPilot Chat Extension
code &#8211;install-extension github.copilot

# Install XML Tools by Josh Johnson
code &#8211;install-extension dotjoshjohnson.xml</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Install PowerShell Extension</span></span>
<span class="line"><span style="color: #D4D4D4">code --</span><span style="color: #DCDCAA">install-extension</span><span style="color: #D4D4D4"> ms-vscode.PowerShell</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Install VSCode-Icons Extension</span></span>
<span class="line"><span style="color: #D4D4D4">code --</span><span style="color: #DCDCAA">install-extension</span><span style="color: #D4D4D4"> vscode-icons-team.vscode-icons</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Install CodeSnap Extension</span></span>
<span class="line"><span style="color: #D4D4D4">code --</span><span style="color: #DCDCAA">install-extension</span><span style="color: #D4D4D4"> adpyke.codesnap</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Install GitHub CoPilot incl CoPilot Chat Extension</span></span>
<span class="line"><span style="color: #D4D4D4">code --</span><span style="color: #DCDCAA">install-extension</span><span style="color: #D4D4D4"> github.copilot</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Install XML Tools by Josh Johnson</span></span>
<span class="line"><span style="color: #D4D4D4">code --</span><span style="color: #DCDCAA">install-extension</span><span style="color: #D4D4D4"> dotjoshjohnson.xml</span></span></code></pre></div>



<p class="wp-block-paragraph">If you get an error when doing this It&#8217;s probably because you did not restart PowerShell after you installed Visual Studio Code.</p>



<h2 class="wp-block-heading">Restore Snapshot</h2>



<p class="wp-block-paragraph">To revert to the snapshot you created after installing Windows 11, simply shut down your computer.</p>



<p class="wp-block-paragraph">And then look at the VirtualBox Manager and your Virtual Machine.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="594" height="222" src="https://poweradmin.se/wp-content/uploads/2025/06/image-58.png" alt="" class="wp-image-489" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-58.png 594w, https://poweradmin.se/wp-content/uploads/2025/06/image-58-300x112.png 300w" sizes="auto, (max-width: 594px) 100vw, 594px" /></figure>



<p class="wp-block-paragraph">Click the lines on the right, then select Snapshot.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="183" height="186" src="https://poweradmin.se/wp-content/uploads/2025/06/image-59.png" alt="" class="wp-image-490"/></figure>



<p class="wp-block-paragraph">Click on the Snapshot you want to restore.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="75" src="https://poweradmin.se/wp-content/uploads/2025/06/image-61-1024x75.png" alt="" class="wp-image-492" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-61-1024x75.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-61-300x22.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-61-768x56.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-61-1536x113.png 1536w, https://poweradmin.se/wp-content/uploads/2025/06/image-61-640x47.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-61.png 1977w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">And then click on Restore.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="346" height="222" src="https://poweradmin.se/wp-content/uploads/2025/06/image-62.png" alt="" class="wp-image-493" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-62.png 346w, https://poweradmin.se/wp-content/uploads/2025/06/image-62-300x192.png 300w" sizes="auto, (max-width: 346px) 100vw, 346px" /></figure>



<p class="wp-block-paragraph">You can choose to have VirtualBox create a snapshot of the current machine state.<br></p>



<h2 class="wp-block-heading">The End</h2>



<p class="wp-block-paragraph">This marks the official conclusion of this comprehensive and detailed guide.<br><br>Up to this point, we have successfully completed the setup of a Lab computer that is fully equipped with the latest version of <strong>PowerShell 7 (7.5)</strong>. In addition, we have installed the powerful and versatile <strong>Visual Studio Code</strong> editor along with five carefully selected and highly useful extensions.<br><br>All of these components are running smoothly and efficiently within a VirtualBox virtual environment. Furthermore, the system has been configured with the appropriate language settings to significantly enhance overall usability and user experience.<br><br>This guide was little bit longer then the guide with Hyper-V, but I think if you have followed all of the steps it should not be difficult.<br><br>It is my sincere hope that this guide will assist you in setting up your Lab environment quickly and efficiently, allowing you to have a strong and effective start to your Lab experience.</p>



<p class="wp-block-paragraph"></p>
<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='How to Create a Lab Machine with VirtualBox' data-link='https://poweradmin.se/how-to-create-a-lab-machine-with-virtualbox/' data-app-id-name='index_below_content'></div><div style='display:none;' class='shareaholic-canvas' data-app='recommendations' data-title='How to Create a Lab Machine with VirtualBox' data-link='https://poweradmin.se/how-to-create-a-lab-machine-with-virtualbox/' data-app-id-name='index_below_content'></div><p>The post <a href="https://poweradmin.se/how-to-create-a-lab-machine-with-virtualbox/">How to Create a Lab Machine with VirtualBox</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://poweradmin.se/how-to-create-a-lab-machine-with-virtualbox/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What to do when you can&#8217;t install Hyper-V</title>
		<link>https://poweradmin.se/what-to-do-when-you-cant-install-hyper-v/</link>
					<comments>https://poweradmin.se/what-to-do-when-you-cant-install-hyper-v/#respond</comments>
		
		<dc:creator><![CDATA[walle]]></dc:creator>
		<pubDate>Sun, 15 Jun 2025 19:30:00 +0000</pubDate>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<guid isPermaLink="false">https://poweradmin.se/?p=444</guid>

					<description><![CDATA[<p>In my detailed article about setting up Hyper-V using the Quick Create feature to establish a comprehensive Lab Environment with Windows 11, specifically designed for PowerShell and Visual Studio Code labs, all of the setup procedures and configurations rely heavily on the fact that you are running Windows 11 Pro or Enterprise editions on your [&#8230;]</p>
<p>The post <a href="https://poweradmin.se/what-to-do-when-you-cant-install-hyper-v/">What to do when you can’t install Hyper-V</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></description>
										<content:encoded><![CDATA[<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='What to do when you can&#039;t install Hyper-V' data-link='https://poweradmin.se/what-to-do-when-you-cant-install-hyper-v/' data-app-id-name='index_above_content'></div>
<p class="wp-block-paragraph">In my detailed article about setting up Hyper-V using the Quick Create feature to establish a comprehensive Lab Environment with Windows 11, specifically designed for PowerShell and Visual Studio Code labs, all of the setup procedures and configurations rely heavily on the fact that you are running Windows 11 Pro or Enterprise editions on your system.</p>



<p class="wp-block-paragraph">However, if you are working from your personal home computer and it runs the Windows 11 Home edition, and you still want to perform similar labs, an alternative solution is available. You can install VirtualBox, which is a free and open-source virtualization software that supports installation on almost every major Operating System currently available, providing a flexible and accessible option for lab setups outside the Windows 11 Pro or Enterprise environment.</p>



<p class="wp-block-paragraph">This method requires a bit more time to set up, especially if you are not using the Quick Setup option that comes with a pre-configured Windows 11 installation. However, it is not overly complicated, and I will carefully guide you through every single step in detail here to ensure you can follow along without any difficulties.</p>



<p class="wp-block-paragraph">VirtualBox requires your computer to support virtualization technology, which is available on almost all modern computers. If it is not enabled by default, you may need to activate it in your BIOS settings.</p>



<p class="wp-block-paragraph">You also need free space on a hard drive for the installation of VirtualBox and then for the installation of Windows 11.</p>



<p class="wp-block-paragraph">In this guide I will show you how to Install VirtualBox and in my next guide I will show you how to setup an evaluation version of Windows 11 as an Lab Environment.</p>



<p class="has-tertiary-background-color has-background has-small-font-size wp-block-paragraph" style="border-width:1px">All the code and information provided on this website are offered &#8220;as is&#8221; without any guarantees or warranties of any kind. Although the code and information are tested, we do not warrant that the code is error-free or that it will meet your specific requirements. Use the code at your own risk. We disclaim all liability for any damages or losses arising from the use or inability to use the provided materials.</p>



<p class="wp-block-paragraph">If you are using Windows, you can begin by checking your operating system. Open PowerShell as an Administrator and enter the following command:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>(Get-CimInstance Win32_OperatingSystem).Caption</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">(</span><span style="color: #DCDCAA">Get-CimInstance</span><span style="color: #D4D4D4"> Win32_OperatingSystem).Caption</span></span></code></pre></div>



<p class="wp-block-paragraph">You can also install VirtualBox on Windows 11 Pro and Enterprise editions if you wish.</p>



<p class="wp-block-paragraph">Supported Operating Systems include:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="557" height="379" src="https://poweradmin.se/wp-content/uploads/2025/06/image-24.png" alt="" class="wp-image-445" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-24.png 557w, https://poweradmin.se/wp-content/uploads/2025/06/image-24-300x204.png 300w" sizes="auto, (max-width: 557px) 100vw, 557px" /></figure>



<p class="wp-block-paragraph">You can find VirtualBox <a href="https://www.virtualbox.org/" target="_blank" rel="noopener" title="here">here</a>.</p>



<p class="wp-block-paragraph">Visit the download page and select the version that matches your computer and download it.</p>



<p class="wp-block-paragraph">I will show you the Windows installation.</p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">Begin the installation process</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="495" height="392" src="https://poweradmin.se/wp-content/uploads/2025/06/image-25.png" alt="" class="wp-image-446" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-25.png 495w, https://poweradmin.se/wp-content/uploads/2025/06/image-25-300x238.png 300w" sizes="auto, (max-width: 495px) 100vw, 495px" /></figure>



<p class="wp-block-paragraph">Simply select I accept&#8230; and press Next</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="495" height="392" src="https://poweradmin.se/wp-content/uploads/2025/06/image-26.png" alt="" class="wp-image-447" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-26.png 495w, https://poweradmin.se/wp-content/uploads/2025/06/image-26-300x238.png 300w" sizes="auto, (max-width: 495px) 100vw, 495px" /></figure>



<p class="wp-block-paragraph">Just click Next</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="495" height="392" src="https://poweradmin.se/wp-content/uploads/2025/06/image-27.png" alt="" class="wp-image-448" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-27.png 495w, https://poweradmin.se/wp-content/uploads/2025/06/image-27-300x238.png 300w" sizes="auto, (max-width: 495px) 100vw, 495px" /></figure>



<p class="wp-block-paragraph">Make sure you are not running any tasks that could be interrupted when VirtualBox updates the network settings. Then, click Yes to proceed.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="495" height="392" src="https://poweradmin.se/wp-content/uploads/2025/06/image-28.png" alt="" class="wp-image-449" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-28.png 495w, https://poweradmin.se/wp-content/uploads/2025/06/image-28-300x238.png 300w" sizes="auto, (max-width: 495px) 100vw, 495px" /></figure>



<p class="wp-block-paragraph">VirtualBox relies on Python Core and win32api bindings. If these are not already installed, you will need to click Yes to proceed with the installation.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="495" height="392" src="https://poweradmin.se/wp-content/uploads/2025/06/image-29.png" alt="" class="wp-image-450" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-29.png 495w, https://poweradmin.se/wp-content/uploads/2025/06/image-29-300x238.png 300w" sizes="auto, (max-width: 495px) 100vw, 495px" /></figure>



<p class="wp-block-paragraph">If you agree to create shortcuts on the Start Menu, Desktop, and Quick Launch Bar, simply click Next to continue.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="495" height="392" src="https://poweradmin.se/wp-content/uploads/2025/06/image-30.png" alt="" class="wp-image-451" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-30.png 495w, https://poweradmin.se/wp-content/uploads/2025/06/image-30-300x238.png 300w" sizes="auto, (max-width: 495px) 100vw, 495px" /></figure>



<p class="wp-block-paragraph">Just click Install if you want to start the installation.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="495" height="392" src="https://poweradmin.se/wp-content/uploads/2025/06/image-31.png" alt="" class="wp-image-452" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-31.png 495w, https://poweradmin.se/wp-content/uploads/2025/06/image-31-300x238.png 300w" sizes="auto, (max-width: 495px) 100vw, 495px" /></figure>



<p class="wp-block-paragraph">The installation will be quick.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="495" height="392" src="https://poweradmin.se/wp-content/uploads/2025/06/image-32.png" alt="" class="wp-image-453" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-32.png 495w, https://poweradmin.se/wp-content/uploads/2025/06/image-32-300x238.png 300w" sizes="auto, (max-width: 495px) 100vw, 495px" /></figure>



<p class="wp-block-paragraph">When you press the Finish button, VirtualBox will launch and start running for the very first time on your system.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="581" src="https://poweradmin.se/wp-content/uploads/2025/06/image-33-1024x581.png" alt="" class="wp-image-454" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-33-1024x581.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-33-300x170.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-33-768x436.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-33-640x363.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-33.png 1282w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">I believe this installation process was not significantly more difficult than simply enabling Hyper-V on your system.</p>



<p class="wp-block-paragraph">In my upcoming guide, I will walk you through the detailed steps on how to download and install a fully functional evaluation version of Windows 11, providing all the necessary instructions to get you started.</p>
<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='What to do when you can&#039;t install Hyper-V' data-link='https://poweradmin.se/what-to-do-when-you-cant-install-hyper-v/' data-app-id-name='index_below_content'></div><div style='display:none;' class='shareaholic-canvas' data-app='recommendations' data-title='What to do when you can&#039;t install Hyper-V' data-link='https://poweradmin.se/what-to-do-when-you-cant-install-hyper-v/' data-app-id-name='index_below_content'></div><p>The post <a href="https://poweradmin.se/what-to-do-when-you-cant-install-hyper-v/">What to do when you can’t install Hyper-V</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://poweradmin.se/what-to-do-when-you-cant-install-hyper-v/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Export and Import settings in different ways for Visual Studio Code</title>
		<link>https://poweradmin.se/export-and-import-settings-in-different-ways-for-visual-studio-code/</link>
					<comments>https://poweradmin.se/export-and-import-settings-in-different-ways-for-visual-studio-code/#respond</comments>
		
		<dc:creator><![CDATA[walle]]></dc:creator>
		<pubDate>Tue, 10 Jun 2025 17:49:01 +0000</pubDate>
				<category><![CDATA[GitHub]]></category>
		<category><![CDATA[Guides]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Visual Studio Code]]></category>
		<guid isPermaLink="false">https://poweradmin.se/?p=397</guid>

					<description><![CDATA[<p>In a previous blog post, I demonstrated how to configure Visual Studio Code by installing the necessary extensions and adjusting the settings specifically for PowerShell development. If you happen to use Visual Studio Code across multiple computers, different work environments, or various lab machines, it can quickly become a tedious and time-consuming task to set [&#8230;]</p>
<p>The post <a href="https://poweradmin.se/export-and-import-settings-in-different-ways-for-visual-studio-code/">Export and Import settings in different ways for Visual Studio Code</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></description>
										<content:encoded><![CDATA[<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='Export and Import settings in different ways for Visual Studio Code' data-link='https://poweradmin.se/export-and-import-settings-in-different-ways-for-visual-studio-code/' data-app-id-name='index_above_content'></div>
<p class="wp-block-paragraph">In a previous blog post, I demonstrated how to configure Visual Studio Code by installing the necessary extensions and adjusting the settings specifically for PowerShell development.<br><br>If you happen to use Visual Studio Code across multiple computers, different work environments, or various lab machines, it can quickly become a tedious and time-consuming task to set up everything individually on each device.</p>



<p class="wp-block-paragraph">Fortunately, there are much easier and more efficient methods to streamline this process.<br><br>Begin by setting up all your preferred settings, installing all required extensions, and customizing any snippets you want directly in your Visual Studio Code environment first.<br><br>In this guide, I will demonstrate two methods. Later, I will also show how to automate the process using scripts.<br></p>



<p class="has-tertiary-background-color has-background has-small-font-size wp-block-paragraph" style="border-width:1px">All the code and information provided on this website are offered &#8220;as is&#8221; without any guarantees or warranties of any kind. Although the code and information are tested, we do not warrant that the code is error-free or that it will meet your specific requirements. Use the code at your own risk. We disclaim all liability for any damages or losses arising from the use or inability to use the provided materials.</p>



<h2 class="wp-block-heading">Profiles</h2>



<p class="wp-block-paragraph">If you want to share your VSCode setup with others or prefer not to log in to your GitHub or Microsoft account, you can use profiles.</p>



<p class="wp-block-paragraph">Profiles allow you to export and import the following settings:</p>



<ul class="wp-block-list">
<li>Contents</li>



<li>Settings</li>



<li>Keyboard Shortcuts</li>



<li>Tasks</li>



<li>Snippets</li>



<li>Extensions</li>
</ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="447" src="https://poweradmin.se/wp-content/uploads/2025/06/image-11-1024x447.png" alt="" class="wp-image-401" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-11-1024x447.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-11-300x131.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-11-768x335.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-11-1536x670.png 1536w, https://poweradmin.se/wp-content/uploads/2025/06/image-11-2048x894.png 2048w, https://poweradmin.se/wp-content/uploads/2025/06/image-11-640x279.png 640w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">Create</h3>



<p class="wp-block-paragraph">Easiest way to create a profile for export is to go to Manage -> Profiles.</p>



<p class="wp-block-paragraph">Click on Default profile and click on the three dots.<br>And then Duplicate&#8230;</p>



<p class="wp-block-paragraph">Now you will get a copy of the Default profile.<br>Rename it by changing the Name and then press the button Create.<br></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="670" src="https://poweradmin.se/wp-content/uploads/2025/06/image-12-1024x670.png" alt="" class="wp-image-406" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-12-1024x670.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-12-300x196.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-12-768x503.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-12-640x419.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-12.png 1244w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">Export</h3>



<p class="wp-block-paragraph">Now it&#8217;s time to Export the profile and here you have two options.<br>GitHub (gist) and Local (file).</p>



<h4 class="wp-block-heading">GitHub</h4>



<p class="wp-block-paragraph">When exporting to GitHub (gist) you need to sign in to your GitHub account.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="435" height="131" src="https://poweradmin.se/wp-content/uploads/2025/06/image-15.png" alt="" class="wp-image-413" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-15.png 435w, https://poweradmin.se/wp-content/uploads/2025/06/image-15-300x90.png 300w" sizes="auto, (max-width: 435px) 100vw, 435px" /></figure>



<p class="wp-block-paragraph">Click allow and then you need to login to GitHub.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="729" height="744" src="https://poweradmin.se/wp-content/uploads/2025/06/image-16.png" alt="" class="wp-image-414" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-16.png 729w, https://poweradmin.se/wp-content/uploads/2025/06/image-16-294x300.png 294w, https://poweradmin.se/wp-content/uploads/2025/06/image-16-640x653.png 640w" sizes="auto, (max-width: 729px) 100vw, 729px" /></figure>



<p class="wp-block-paragraph">And Authorize Visual Studio Code</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="354" height="128" src="https://poweradmin.se/wp-content/uploads/2025/06/image-17.png" alt="" class="wp-image-415" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-17.png 354w, https://poweradmin.se/wp-content/uploads/2025/06/image-17-300x108.png 300w" sizes="auto, (max-width: 354px) 100vw, 354px" /></figure>



<p class="wp-block-paragraph">Copy the link and save it.</p>



<h4 class="wp-block-heading">Local</h4>



<p class="wp-block-paragraph">Just choose a name and where to save your profile and click Save.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="615" src="https://poweradmin.se/wp-content/uploads/2025/06/image-13-1024x615.png" alt="" class="wp-image-411" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-13-1024x615.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-13-300x180.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-13-768x461.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-13-640x384.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-13.png 1186w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="492" src="https://poweradmin.se/wp-content/uploads/2025/06/image-14-1024x492.png" alt="" class="wp-image-412" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-14-1024x492.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-14-300x144.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-14-768x369.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-14-640x308.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-14.png 1102w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><br></p>



<h3 class="wp-block-heading">Import</h3>



<p class="wp-block-paragraph">On a new computer you just need to install Visual Studio Code and then go to Profiles and click on the arrow right to New Profile and choose Import Profile&#8230;</p>



<h4 class="wp-block-heading">GitHub</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="619" height="99" src="https://poweradmin.se/wp-content/uploads/2025/06/image-18.png" alt="" class="wp-image-416" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-18.png 619w, https://poweradmin.se/wp-content/uploads/2025/06/image-18-300x48.png 300w" sizes="auto, (max-width: 619px) 100vw, 619px" /></figure>



<p class="wp-block-paragraph">Just copy the url to your profile and paste it in the box for Profile Template URL and press Enter.</p>



<h4 class="wp-block-heading">Local</h4>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="619" height="99" src="https://poweradmin.se/wp-content/uploads/2025/06/image-18.png" alt="" class="wp-image-416" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-18.png 619w, https://poweradmin.se/wp-content/uploads/2025/06/image-18-300x48.png 300w" sizes="auto, (max-width: 619px) 100vw, 619px" /></figure>



<p class="wp-block-paragraph">For local just press Select File&#8230; and locate your saved profile file.</p>



<h4 class="wp-block-heading">Create</h4>



<p class="wp-block-paragraph">And then it&#8217;s the same for GitHub profile or Local file.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="522" src="https://poweradmin.se/wp-content/uploads/2025/06/image-19-1024x522.png" alt="" class="wp-image-417" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-19-1024x522.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-19-300x153.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-19-768x391.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-19-640x326.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-19.png 1290w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">And press Create</p>



<p class="wp-block-paragraph">Now you will get some popups regarding trusting publishers.<br>These are for the extensions you have in your exported profile.</p>



<p class="wp-block-paragraph">Choose Trust Publishers and Install</p>



<p class="wp-block-paragraph">It will take some time before it has created the profile.</p>



<p class="wp-block-paragraph">To use it you need to click on the Use button right to your profile</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="896" height="218" src="https://poweradmin.se/wp-content/uploads/2025/06/image-20.png" alt="" class="wp-image-418" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-20.png 896w, https://poweradmin.se/wp-content/uploads/2025/06/image-20-300x73.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-20-768x187.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-20-640x156.png 640w" sizes="auto, (max-width: 896px) 100vw, 896px" /></figure>



<p class="wp-block-paragraph">Now you will see all extensions, snippets and settings that you exported.</p>



<h2 class="wp-block-heading">Settings Sync</h2>



<p class="wp-block-paragraph">If you can and want to login with your GitHub or Microsoft account you can sync your settings with Settings Sync.<br><br>This are a bit easier. You do Backup and Sync first on your perfect setup and then you can Sync it to other computers where you have Visual Studio Code Installed.<br><br><strong>Note that syncing between your lab and office/work computers will apply changes to both, so be mindful when syncing across different environments.</strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="610" height="251" src="https://poweradmin.se/wp-content/uploads/2025/06/image-22.png" alt="" class="wp-image-426" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-22.png 610w, https://poweradmin.se/wp-content/uploads/2025/06/image-22-300x123.png 300w" sizes="auto, (max-width: 610px) 100vw, 610px" /></figure>



<p class="wp-block-paragraph">Go to Manage and then Backup and Sync Settings.<br>Choose what to backup and Sync and then Click on Sign In.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="614" height="121" src="https://poweradmin.se/wp-content/uploads/2025/06/image-23.png" alt="" class="wp-image-429" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-23.png 614w, https://poweradmin.se/wp-content/uploads/2025/06/image-23-300x59.png 300w" sizes="auto, (max-width: 614px) 100vw, 614px" /></figure>



<p class="wp-block-paragraph">Choose the option you prefer to Sign In with.</p>



<p class="wp-block-paragraph">For this example, I will choose GitHub.</p>



<p class="wp-block-paragraph">Next, you will need to Sign In to your GitHub account, then Authorize the application, and finally click Continue.</p>



<p class="wp-block-paragraph">Wait patiently while Visual Studio Code completes the Backup and Sync process. After that, navigate to Manage, and you should see the message <strong>Settings Sync is On</strong>.</p>



<p class="wp-block-paragraph">Now you can move to another computer and perform the sync there as well.</p>



<p class="wp-block-paragraph">If you have created a profile, make sure to go to Profiles and set it as active.<br>And that’s all there is to it!</p>



<h2 class="wp-block-heading">The End</h2>



<p class="wp-block-paragraph">I sincerely hope you find this guide helpful and informative.<br><br>The two methods described here have been incredibly useful for me, especially when I am transitioning from one customer site to another or working on different Lab computers.<br><br>I tend to using the Profile option because I prefer not to log in with my GitHub or Microsoft account on Lab computers or within customer environments for security and privacy reasons.</p>
<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='Export and Import settings in different ways for Visual Studio Code' data-link='https://poweradmin.se/export-and-import-settings-in-different-ways-for-visual-studio-code/' data-app-id-name='index_below_content'></div><div style='display:none;' class='shareaholic-canvas' data-app='recommendations' data-title='Export and Import settings in different ways for Visual Studio Code' data-link='https://poweradmin.se/export-and-import-settings-in-different-ways-for-visual-studio-code/' data-app-id-name='index_below_content'></div><p>The post <a href="https://poweradmin.se/export-and-import-settings-in-different-ways-for-visual-studio-code/">Export and Import settings in different ways for Visual Studio Code</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://poweradmin.se/export-and-import-settings-in-different-ways-for-visual-studio-code/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Setting up Visual Studio Code for PowerShell</title>
		<link>https://poweradmin.se/setting-up-visual-studio-code-for-powershell/</link>
					<comments>https://poweradmin.se/setting-up-visual-studio-code-for-powershell/#respond</comments>
		
		<dc:creator><![CDATA[walle]]></dc:creator>
		<pubDate>Sun, 08 Jun 2025 17:39:59 +0000</pubDate>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Visual Studio Code]]></category>
		<guid isPermaLink="false">https://poweradmin.se/?p=353</guid>

					<description><![CDATA[<p>In my guide Create a Lab Machine, I walk you through the complete process of setting up a virtual Lab Machine running Windows 11 within Hyper-V using the Quick Create feature. This includes configuring the language settings properly to suit your preferences, installing the latest version of PowerShell 7 for enhanced scripting testing, and setting [&#8230;]</p>
<p>The post <a href="https://poweradmin.se/setting-up-visual-studio-code-for-powershell/">Setting up Visual Studio Code for PowerShell</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></description>
										<content:encoded><![CDATA[<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='Setting up Visual Studio Code for PowerShell' data-link='https://poweradmin.se/setting-up-visual-studio-code-for-powershell/' data-app-id-name='index_above_content'></div>
<p class="wp-block-paragraph">In my guide <a href="https://poweradmin.se/create-a-lab-machine/" target="_blank" rel="noreferrer noopener">Create a Lab Machine</a>, I walk you through the complete process of setting up a virtual Lab Machine running Windows 11 within Hyper-V using the Quick Create feature.<br><br>This includes configuring the language settings properly to suit your preferences, installing the latest version of PowerShell 7 for enhanced scripting testing, and setting up Visual Studio Code along with several useful extensions to streamline your development workflow.</p>



<p class="wp-block-paragraph">In this guide I will show you some helpfull tips and trix on setting up Visual Studio Code for PowerShell editing.</p>



<p class="has-tertiary-background-color has-background has-small-font-size wp-block-paragraph" style="border-width:1px">All the code and information provided on this website are offered &#8220;as is&#8221; without any guarantees or warranties of any kind. Although the code and information are tested, we do not warrant that the code is error-free or that it will meet your specific requirements. Use the code at your own risk. We disclaim all liability for any damages or losses arising from the use or inability to use the provided materials.</p>



<h2 class="wp-block-heading">Settings menu</h2>



<p class="wp-block-paragraph">We can configure all of our settings within the dedicated settings section.<br>This particular section can be accessed through several different methods.</p>



<p class="wp-block-paragraph">One common way is by clicking the <strong>Manage</strong> icon located at the bottom left corner of the screen, and then selecting <strong>Settings</strong> from the menu that appears.</p>



<figure class="wp-block-video"><video height="1390" style="aspect-ratio: 2558 / 1390;" width="2558" controls src="https://poweradmin.se/wp-content/uploads/2025/06/Recording-2025-06-08-201721.mp4"></video></figure>



<p class="wp-block-paragraph">Alternatively, you can access it by clicking on the <strong>Manage</strong> icon first, followed by selecting the <strong>Command Palette</strong>. Another way is to press the keyboard shortcut <strong>Ctrl+Shift+P</strong>, and then type <strong>settings</strong> in the search bar. From the search results, choose the option labeled &#8220;<strong>Open settings (UI)</strong>&#8221; to proceed.</p>



<figure class="wp-block-video"><video height="1392" style="aspect-ratio: 2558 / 1392;" width="2558" controls src="https://poweradmin.se/wp-content/uploads/2025/06/Recording-2025-06-08-202701.mp4"></video></figure>



<h2 class="wp-block-heading">Default language</h2>



<p class="wp-block-paragraph">When creating a PowerShell script file we want to go to File and Click on New Text File for a new PowerShell Script.</p>



<p class="wp-block-paragraph">But as default in Visual Studio Code a New Text File is not associated with PowerShell.</p>



<p class="wp-block-paragraph">To fix this we need go to the settings section as described above and search for &#8220;<strong>Default Language</strong>&#8220;.</p>



<p class="wp-block-paragraph">Then enter <strong>powershell</strong> in the Files: Default Language text box.</p>



<p class="wp-block-paragraph">If you write PowerShell as Microsoft and the PowerShell community recommend, it will not work…</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="321" src="https://poweradmin.se/wp-content/uploads/2025/06/image-3-1024x321.png" alt="" class="wp-image-368" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-3-1024x321.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-3-300x94.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-3-768x241.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-3-640x201.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-3.png 1433w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="950" height="138" src="https://poweradmin.se/wp-content/uploads/2025/06/image-4.png" alt="" class="wp-image-371" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-4.png 950w, https://poweradmin.se/wp-content/uploads/2025/06/image-4-300x44.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-4-768x112.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-4-640x93.png 640w" sizes="auto, (max-width: 950px) 100vw, 950px" /></figure>



<p class="wp-block-paragraph">so we need to write powershell using only lowercase letters</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="321" src="https://poweradmin.se/wp-content/uploads/2025/06/image-6-1024x321.png" alt="" class="wp-image-373" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-6-1024x321.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-6-300x94.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-6-768x241.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-6-640x201.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-6.png 1419w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="945" height="127" src="https://poweradmin.se/wp-content/uploads/2025/06/image-5.png" alt="" class="wp-image-372" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-5.png 945w, https://poweradmin.se/wp-content/uploads/2025/06/image-5-300x40.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-5-768x103.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-5-640x86.png 640w" sizes="auto, (max-width: 945px) 100vw, 945px" /></figure>



<h2 class="wp-block-heading">Tab completion</h2>



<p class="wp-block-paragraph">Another thing that is not there by default is Tab Completion.<br>This is because Visual Studio Code is not just made for PowerShell.</p>



<p class="wp-block-paragraph">To enable tab completion we need to search for <strong>Tab Completion</strong> in the Settings search.</p>



<p class="wp-block-paragraph">And in the <strong>Editor: Tab Completions</strong> section, change <strong>off</strong> to <strong>on</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="173" src="https://poweradmin.se/wp-content/uploads/2025/06/image-7-1024x173.png" alt="" class="wp-image-376" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-7-1024x173.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-7-300x51.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-7-768x130.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-7-640x108.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-7.png 1420w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">Mouse Wheel Zoom</h2>



<p class="wp-block-paragraph">Another seeting that I can&#8217;t be without is the Mouse Wheel Zoom setting, both for the editor and the terminal window.</p>



<p class="wp-block-paragraph">It will enable zoom the font of the editor and terminal when using <strong>mouse wheel</strong> and holding <strong>Ctrl</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="512" src="https://poweradmin.se/wp-content/uploads/2025/06/image-8-1024x512.png" alt="" class="wp-image-383" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-8-1024x512.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-8-300x150.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-8-768x384.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-8-640x320.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-8.png 1453w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">In the video below I show first when using Mouse Wheel Zoom on the editor and then using on the terminal window.</p>



<figure class="wp-block-video"><video height="1388" style="aspect-ratio: 2556 / 1388;" width="2556" controls src="https://poweradmin.se/wp-content/uploads/2025/06/Recording-2025-06-08-205653.mp4"></video></figure>



<p class="wp-block-paragraph">The font size for the terminal window is better to set with the Terminal Font Size setting. This is described below.</p>



<h2 class="wp-block-heading">Terminal Font Size</h2>



<p class="wp-block-paragraph">The terminal font size is pretty small as default and as you can see in the video with the mouse wheel zoom, it can be a challenge to get a good size of the terminal font with the mouse wheel.</p>



<p class="wp-block-paragraph">So it&#8217;s easier to use the settings search and search for terminal font size and change the Terminal &gt; Integrated: Font Size.<br><br>I like <strong>20</strong>, at least when I share my screen and show something in Visual Studio Code. But I think the settings is pretty personal so you need to test for your self.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="176" src="https://poweradmin.se/wp-content/uploads/2025/06/image-9-1024x176.png" alt="" class="wp-image-387" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-9-1024x176.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-9-300x52.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-9-768x132.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-9-640x110.png 640w, https://poweradmin.se/wp-content/uploads/2025/06/image-9.png 1443w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="557" src="https://poweradmin.se/wp-content/uploads/2025/06/image-10-1024x557.png" alt="" class="wp-image-391" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-10-1024x557.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-10-300x163.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-10-768x418.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-10-1536x835.png 1536w, https://poweradmin.se/wp-content/uploads/2025/06/image-10-2048x1114.png 2048w, https://poweradmin.se/wp-content/uploads/2025/06/image-10-640x348.png 640w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">The End</h2>



<p class="wp-block-paragraph">These were my fundamental and essential settings for Visual Studio Code specifically tailored for working with PowerShell.<br>These are truly my &#8220;must-have&#8221; configurations that I rely on for an optimized coding experience!</p>



<p class="wp-block-paragraph">In the near future, I plan to share a detailed guide explaining how to export and import your Visual Studio Code settings using various methods.</p>



<p class="wp-block-paragraph">This way, you won’t have to go through the hassle of manually adjusting your preferences every time you start working on a new computer or find yourself in a lab environment.</p>
<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='Setting up Visual Studio Code for PowerShell' data-link='https://poweradmin.se/setting-up-visual-studio-code-for-powershell/' data-app-id-name='index_below_content'></div><div style='display:none;' class='shareaholic-canvas' data-app='recommendations' data-title='Setting up Visual Studio Code for PowerShell' data-link='https://poweradmin.se/setting-up-visual-studio-code-for-powershell/' data-app-id-name='index_below_content'></div><p>The post <a href="https://poweradmin.se/setting-up-visual-studio-code-for-powershell/">Setting up Visual Studio Code for PowerShell</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://poweradmin.se/setting-up-visual-studio-code-for-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		<enclosure url="https://poweradmin.se/wp-content/uploads/2025/06/Recording-2025-06-08-201721.mp4" length="10950617" type="video/mp4" />
<enclosure url="https://poweradmin.se/wp-content/uploads/2025/06/Recording-2025-06-08-202701.mp4" length="23694307" type="video/mp4" />
<enclosure url="https://poweradmin.se/wp-content/uploads/2025/06/Recording-2025-06-08-205653.mp4" length="77566962" type="video/mp4" />

			</item>
		<item>
		<title>Comment Based help as a snippet</title>
		<link>https://poweradmin.se/comment-based-help-as-a-snippet/</link>
					<comments>https://poweradmin.se/comment-based-help-as-a-snippet/#respond</comments>
		
		<dc:creator><![CDATA[walle]]></dc:creator>
		<pubDate>Wed, 04 Jun 2025 21:23:22 +0000</pubDate>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Visual Studio Code]]></category>
		<guid isPermaLink="false">https://poweradmin.se/?p=335</guid>

					<description><![CDATA[<p>This is my first User Snippet posted for Visual Studio Code.I know there is a default snippet included with the PowerShell extension. All the code and information provided on this website are offered &#8220;as is&#8221; without any guarantees or warranties of any kind. Although the code and information are tested, we do not warrant that [&#8230;]</p>
<p>The post <a href="https://poweradmin.se/comment-based-help-as-a-snippet/">Comment Based help as a snippet</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></description>
										<content:encoded><![CDATA[<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='Comment Based help as a snippet' data-link='https://poweradmin.se/comment-based-help-as-a-snippet/' data-app-id-name='index_above_content'></div>
<p class="wp-block-paragraph">This is my first User Snippet posted for Visual Studio Code.<br>I know there is a default snippet included with the PowerShell extension.</p>



<p class="has-tertiary-background-color has-background has-small-font-size wp-block-paragraph" style="border-width:1px">All the code and information provided on this website are offered &#8220;as is&#8221; without any guarantees or warranties of any kind. Although the code and information are tested, we do not warrant that the code is error-free or that it will meet your specific requirements. Use the code at your own risk. We disclaim all liability for any damages or losses arising from the use or inability to use the provided materials.</p>



<p class="wp-block-paragraph">However, I want to add additional information and have it inserted automatically.</p>



<p class="wp-block-paragraph">To access the default Comment-Based help snippet, simply type <strong>comm</strong> in Visual Studio Code, and IntelliSense will display the comment-help snippet, as shown in the image below.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="816" height="387" src="https://poweradmin.se/wp-content/uploads/2025/06/image.png" alt="" class="wp-image-342" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image.png 816w, https://poweradmin.se/wp-content/uploads/2025/06/image-300x142.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-768x364.png 768w" sizes="auto, (max-width: 816px) 100vw, 816px" /></figure>



<p class="wp-block-paragraph">This option is better than not using Comment-Based Help for your script or function.<br><br>It&#8217;s great! Everything required for Comment-Based Help is included.<br><br>HOWEVER…</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>&lt;#
.SYNOPSIS
    A short one-line action-based description, e.g. &#8216;Tests if a function is valid&#8217;
.DESCRIPTION
    A longer description of the function, its purpose, common use cases, etc.
.NOTES
    Information or caveats about the function e.g. &#8216;This function is not supported in Linux&#8217;
.LINK
    Specify a URI to a help page, this will show when Get-Help -Online is used.
.EXAMPLE
    Test-MyTestFunction -Verbose
    Explanation of the function or its result. You can include multiple examples with additional .EXAMPLE lines
#></textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955">&lt;#</span></span>
<span class="line"><span style="color: #6A9955">.</span><span style="color: #D4D4D4">SYNOPSIS</span></span>
<span class="line"><span style="color: #6A9955">    A short one-line action-based description, e.g. &#39;Tests if a function is valid&#39;</span></span>
<span class="line"><span style="color: #6A9955">.</span><span style="color: #D4D4D4">DESCRIPTION</span></span>
<span class="line"><span style="color: #6A9955">    A longer description of the function, its purpose, common use cases, etc.</span></span>
<span class="line"><span style="color: #6A9955">.</span><span style="color: #D4D4D4">NOTES</span></span>
<span class="line"><span style="color: #6A9955">    Information or caveats about the function e.g. &#39;This function is not supported in Linux&#39;</span></span>
<span class="line"><span style="color: #6A9955">.</span><span style="color: #D4D4D4">LINK</span></span>
<span class="line"><span style="color: #6A9955">    Specify a URI to a help page, this will show when Get-Help -Online is used.</span></span>
<span class="line"><span style="color: #6A9955">.</span><span style="color: #D4D4D4">EXAMPLE</span></span>
<span class="line"><span style="color: #6A9955">    Test-MyTestFunction -Verbose</span></span>
<span class="line"><span style="color: #6A9955">    Explanation of the function or its result. You can include multiple examples with additional .EXAMPLE lines</span></span>
<span class="line"><span style="color: #6A9955">#&gt;</span></span></code></pre></div>



<p class="wp-block-paragraph">I always include <strong>name</strong>, <strong>author</strong>, <strong>version</strong>, and <strong>date</strong> in the <strong>Notes</strong> section, and the <strong>script name</strong> in the <strong>Example</strong> section.<br><br>But I don’t want to type this information manually every time.<br>I&#8217;m a bit lazy!<br><br>Here is my standard Comment Based Help:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>&lt;#
    .SYNOPSIS
        A short description
    .DESCRIPTION
        A longer description  
    .PARAMETER Name
        Specifies the name of the parameter
    .EXAMPLE
        Get-Information.ps1 -Parameter &#8220;ParameterValue&#8221;
    .NOTES
        NAME:       Get-Information
        AUTHOR:     Fredrik Wall
        VERSION:    1.0
        CREATED:    2025-06-04
#></textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955">&lt;#</span></span>
<span class="line"><span style="color: #6A9955">    </span><span style="color: #6A9955">.</span><span style="color: #D4D4D4">SYNOPSIS</span></span>
<span class="line"><span style="color: #6A9955">        A short description</span></span>
<span class="line"><span style="color: #6A9955">    </span><span style="color: #6A9955">.</span><span style="color: #D4D4D4">DESCRIPTION</span></span>
<span class="line"><span style="color: #6A9955">        A longer description  </span></span>
<span class="line"><span style="color: #6A9955">    </span><span style="color: #6A9955">.</span><span style="color: #D4D4D4">PARAMETER</span><span style="color: #6A9955"> </span><span style="color: #D4D4D4">Name</span></span>
<span class="line"><span style="color: #6A9955">        Specifies the name of the parameter</span></span>
<span class="line"><span style="color: #6A9955">    </span><span style="color: #6A9955">.</span><span style="color: #D4D4D4">EXAMPLE</span></span>
<span class="line"><span style="color: #6A9955">        Get-Information.ps1 -Parameter &quot;ParameterValue&quot;</span></span>
<span class="line"><span style="color: #6A9955">    </span><span style="color: #6A9955">.</span><span style="color: #D4D4D4">NOTES</span></span>
<span class="line"><span style="color: #6A9955">        NAME:       Get-Information</span></span>
<span class="line"><span style="color: #6A9955">        AUTHOR:     Fredrik Wall</span></span>
<span class="line"><span style="color: #6A9955">        VERSION:    1.0</span></span>
<span class="line"><span style="color: #6A9955">        CREATED:    2025-06-04</span></span>
<span class="line"><span style="color: #6A9955">#&gt;</span></span></code></pre></div>



<p class="wp-block-paragraph">I have also created a PowerShell user snippet for this.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="815" height="383" src="https://poweradmin.se/wp-content/uploads/2025/06/image-1.png" alt="" class="wp-image-343" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-1.png 815w, https://poweradmin.se/wp-content/uploads/2025/06/image-1-300x141.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-1-768x361.png 768w" sizes="auto, (max-width: 815px) 100vw, 815px" /></figure>



<p class="wp-block-paragraph">There are many variables available for Snippets in Visual Studio Code, and I use several of them.<br><br><strong>Example</strong> – To get the PowerShell script name, I use <strong>$TM_FILENAME</strong>.<br><br><strong>Name</strong> – For the script name without the .ps1 extension, I use <strong>$TM_FILENAME_BASE</strong>.<br><br><strong>Author</strong> – This one was a bit tricky to automate. I use <strong>${WORKSPACE_NAME}</strong>.<br><br><strong>Created</strong> – I use <strong>${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}</strong> here. You can adjust this format to match your country’s date style.<br><br>All available variables can be found on the User Defined Snippets page:<br><a href="https://code.visualstudio.com/docs/editing/userdefinedsnippets">https://code.visualstudio.com/docs/editing/userdefinedsnippets</a></p>



<p class="wp-block-paragraph">To be able to get the automatically Comment Based Help with all information as above you first of all need to add this to the PowerShell User Snippet JSON file.<br></p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>&#8220;Comment Based Help&#8221;: {
		&#8220;prefix&#8221;: &#8220;Comment Based Help&#8221;,
		&#8220;body&#8221;: [
		  &#8220;&lt;#&#8221;,
		  &#8221;    .SYNOPSIS&#8221;,
		  &#8221;        A short description&#8221;,
		  &#8221;    .DESCRIPTION&#8221;,
		  &#8221;        A longer description  &#8220;,
		  &#8221;    .PARAMETER Name&#8221;,
          &#8221;        Specifies the name of the parameter&#8221;,
		  &#8221;    .EXAMPLE&#8221;,
		  &#8221;        $TM_FILENAME -Parameter \&#8221;ParameterValue\&#8221;&#8221;,
		  &#8221;    .NOTES&#8221;,
		  &#8221;        NAME:       $TM_FILENAME_BASE&#8221;,
		  &#8221;        AUTHOR:     ${WORKSPACE_NAME}&#8221;,
		  &#8221;        VERSION:    1.0&#8243;,
		  &#8221;        CREATED:    ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}&#8221;,
		  &#8220;#>&#8221;
		],
		&#8220;description&#8221;: &#8220;Comment Based Help By PowerAdmin.se&#8221;
	  }</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #CE9178">&quot;Comment Based Help&quot;</span><span style="color: #D4D4D4">: {</span></span>
<span class="line"><span style="color: #D4D4D4">		</span><span style="color: #CE9178">&quot;prefix&quot;</span><span style="color: #D4D4D4">: </span><span style="color: #CE9178">&quot;Comment Based Help&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">		</span><span style="color: #CE9178">&quot;body&quot;</span><span style="color: #D4D4D4">: [</span></span>
<span class="line"><span style="color: #D4D4D4">		  </span><span style="color: #CE9178">&quot;&lt;#&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">		  </span><span style="color: #CE9178">&quot;    .SYNOPSIS&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">		  </span><span style="color: #CE9178">&quot;        A short description&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">		  </span><span style="color: #CE9178">&quot;    .DESCRIPTION&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">		  </span><span style="color: #CE9178">&quot;        A longer description  &quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">		  </span><span style="color: #CE9178">&quot;    .PARAMETER Name&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">          </span><span style="color: #CE9178">&quot;        Specifies the name of the parameter&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">		  </span><span style="color: #CE9178">&quot;    .EXAMPLE&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">		  </span><span style="color: #CE9178">&quot;        </span><span style="color: #9CDCFE">$TM_FILENAME</span><span style="color: #CE9178"> -Parameter \&quot;</span><span style="color: #569CD6">ParameterValue</span><span style="color: #D4D4D4">\</span><span style="color: #CE9178">&quot;&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">		  </span><span style="color: #CE9178">&quot;    .NOTES&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">		  </span><span style="color: #CE9178">&quot;        NAME:       </span><span style="color: #9CDCFE">$TM_FILENAME_BASE</span><span style="color: #CE9178">&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">		  </span><span style="color: #CE9178">&quot;        AUTHOR:     </span><span style="color: #9CDCFE">${WORKSPACE_NAME}</span><span style="color: #CE9178">&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">		  </span><span style="color: #CE9178">&quot;        VERSION:    1.0&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">		  </span><span style="color: #CE9178">&quot;        CREATED:    </span><span style="color: #9CDCFE">${CURRENT_YEAR}</span><span style="color: #CE9178">-</span><span style="color: #9CDCFE">${CURRENT_MONTH}</span><span style="color: #CE9178">-</span><span style="color: #9CDCFE">${CURRENT_DATE}</span><span style="color: #CE9178">&quot;</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">		  </span><span style="color: #CE9178">&quot;#&gt;&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">		],</span></span>
<span class="line"><span style="color: #D4D4D4">		</span><span style="color: #CE9178">&quot;description&quot;</span><span style="color: #D4D4D4">: </span><span style="color: #CE9178">&quot;Comment Based Help By PowerAdmin.se&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">	  }</span></span></code></pre></div>



<p class="wp-block-paragraph">The easiest way to open the <strong>JSON</strong> file is by using <strong>Shift+Ctrl+P (Command Palette)</strong> and searching for <strong>Snippets: Configure Snippets</strong>. Then select <strong>powershell.json (PowerShell)</strong>.<br><br>Next, insert the code above between the <strong>{</strong> and <strong>}</strong>.<br><br>If you already have other snippets, add a <strong>,</strong> after the last one before pasting the new code. Save the file afterward.<br><br>Now, you will have a snippet that inserts this information automatically…<br>…as long as you save your script first with your chosen name.<br><br>In my example: <strong>Get-Information.ps1</strong><br><br>Finally, go to <strong>File</strong> and select <strong>Save Workspace As</strong> with your name to set your name as the Author.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="125" src="https://poweradmin.se/wp-content/uploads/2025/06/image-2-1024x125.png" alt="" class="wp-image-346" srcset="https://poweradmin.se/wp-content/uploads/2025/06/image-2-1024x125.png 1024w, https://poweradmin.se/wp-content/uploads/2025/06/image-2-300x37.png 300w, https://poweradmin.se/wp-content/uploads/2025/06/image-2-768x94.png 768w, https://poweradmin.se/wp-content/uploads/2025/06/image-2.png 1157w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">This was a brief guide, but it provides helpful insights that assist me every single day without fail.</p>
<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='Comment Based help as a snippet' data-link='https://poweradmin.se/comment-based-help-as-a-snippet/' data-app-id-name='index_below_content'></div><div style='display:none;' class='shareaholic-canvas' data-app='recommendations' data-title='Comment Based help as a snippet' data-link='https://poweradmin.se/comment-based-help-as-a-snippet/' data-app-id-name='index_below_content'></div><p>The post <a href="https://poweradmin.se/comment-based-help-as-a-snippet/">Comment Based help as a snippet</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://poweradmin.se/comment-based-help-as-a-snippet/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Create a lab machine</title>
		<link>https://poweradmin.se/create-a-lab-machine/</link>
					<comments>https://poweradmin.se/create-a-lab-machine/#comments</comments>
		
		<dc:creator><![CDATA[walle]]></dc:creator>
		<pubDate>Thu, 29 May 2025 18:39:26 +0000</pubDate>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[PowerShell]]></category>
		<guid isPermaLink="false">https://poweradmin.se/?p=188</guid>

					<description><![CDATA[<p>A step-by-step guide to quickly and easily create a Hyper-V lab machine for PowerShell and Visual Studio Code development</p>
<p>The post <a href="https://poweradmin.se/create-a-lab-machine/">Create a lab machine</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></description>
										<content:encoded><![CDATA[<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='Create a lab machine' data-link='https://poweradmin.se/create-a-lab-machine/' data-summary='A step-by-step guide to quickly and easily create a Hyper-V lab machine for PowerShell and Visual Studio Code development' data-app-id-name='index_above_content'></div>
<p class="wp-block-paragraph">This comprehensive guide will walk you through setting up Hyper-V on your Windows 11 computer using PowerShell commands, as well as how to utilize the Windows 11 development environment available via the Quick Create feature. By following these steps, you&#8217;ll gain all the knowledge needed to install and run Hyper-V efficiently on your system.</p>



<p class="has-tertiary-background-color has-background has-small-font-size wp-block-paragraph" style="border-width:1px">All the code and information provided on this website are offered &#8220;as is&#8221; without any guarantees or warranties of any kind. Although the code and information are tested, we do not warrant that the code is error-free or that it will meet your specific requirements. Use the code at your own risk. We disclaim all liability for any damages or losses arising from the use or inability to use the provided materials.</p>



<h2 class="wp-block-heading" id="aioseo-enable-hyper-v">Enable Hyper-V</h2>



<p class="wp-block-paragraph"><br>First, we need to verify whether Hyper-V is enabled on your computer.<br>There are multiple ways to check this, but for consistency, this guide will use PowerShell whenever possible.</p>



<p class="wp-block-paragraph">You probably need like <strong>100 GB</strong> of free disk space to be able to do this.<br>The download is almost <strong>22 GB</strong> and then you need disk for the installation and the lab.</p>



<p class="wp-block-paragraph">And you will need some free memory as well.<br>I use <strong>4096 MB</strong> and It&#8217;s okay for a Lab Machine for PowerShell and Visual Studio Code.</p>



<p class="wp-block-paragraph">Start by opening Visual Studio Code or PowerShell ISE with &#8220;Run as Administrator&#8221; privileges.</p>



<p class="wp-block-paragraph">Next, let&#8217;s check if the Hyper-V feature is currently enabled.<br>Write or Copy and paste the code below to your PowerShell editor and run the code.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-WindowsOptionalFeature</span><span style="color: #D4D4D4"> -Online -FeatureName Microsoft-Hyper-V</span></span></code></pre></div>



<p class="wp-block-paragraph">If you get this status you need to enable it.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="833" height="116" src="https://poweradmin.se/wp-content/uploads/2025/05/image-1.png" alt="" class="wp-image-202" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-1.png 833w, https://poweradmin.se/wp-content/uploads/2025/05/image-1-300x42.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/image-1-768x107.png 768w" sizes="auto, (max-width: 833px) 100vw, 833px" /></figure>



<p class="wp-block-paragraph">If you get this status you don&#8217;t need to enable it.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="833" height="114" src="https://poweradmin.se/wp-content/uploads/2025/05/image-2.png" alt="" class="wp-image-208" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-2.png 833w, https://poweradmin.se/wp-content/uploads/2025/05/image-2-300x41.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/image-2-768x105.png 768w" sizes="auto, (max-width: 833px) 100vw, 833px" /></figure>



<p class="wp-block-paragraph">To enable it we just need to write or copy and paste this code (all on the same line):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Enable-WindowsOptionalFeature</span><span style="color: #D4D4D4"> -Online -FeatureName Microsoft-Hyper-V -All</span></span></code></pre></div>



<p class="wp-block-paragraph">This will enable Hyper-V with all subfeatures and tools.<br>When prompted to restart, it is best to press Y and restart.</p>



<h2 class="wp-block-heading" id="aioseo-quick-create"><br>Quick Create</h2>



<p class="wp-block-paragraph">Now that the Hyper-V feature is installed, we can open the Hyper-V Quick Create tool by searching for <strong>Hyper-V Quick Create</strong>.</p>



<p class="wp-block-paragraph">Make sure to open it as an administrator.</p>



<figure class="wp-block-image size-full wp-duotone-unset-1"><img loading="lazy" decoding="async" width="196" height="42" src="https://poweradmin.se/wp-content/uploads/2025/05/image-3.png" alt="" class="wp-image-215"/></figure>



<p class="wp-block-paragraph">Then just click on <strong>Windows 11 dev environment</strong> and after that <strong>Create Virtual Machine</strong>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="833" height="507" src="https://poweradmin.se/wp-content/uploads/2025/05/image-4.png" alt="" class="wp-image-216" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-4.png 833w, https://poweradmin.se/wp-content/uploads/2025/05/image-4-300x183.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/image-4-768x467.png 768w" sizes="auto, (max-width: 833px) 100vw, 833px" /></figure>



<p class="wp-block-paragraph">First of all the Quick Create will download the image.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="841" height="519" src="https://poweradmin.se/wp-content/uploads/2025/05/image-5.png" alt="" class="wp-image-218" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-5.png 841w, https://poweradmin.se/wp-content/uploads/2025/05/image-5-300x185.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/image-5-768x474.png 768w" sizes="auto, (max-width: 841px) 100vw, 841px" /></figure>



<p class="wp-block-paragraph">And then the image will be extracted.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="845" height="527" src="https://poweradmin.se/wp-content/uploads/2025/05/image-6.png" alt="" class="wp-image-223" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-6.png 845w, https://poweradmin.se/wp-content/uploads/2025/05/image-6-300x187.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/image-6-768x479.png 768w" sizes="auto, (max-width: 845px) 100vw, 845px" /></figure>



<p class="wp-block-paragraph">When Quick Create is finished, you will have the option to connect or edit settings.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="849" height="508" src="https://poweradmin.se/wp-content/uploads/2025/05/image-7.png" alt="" class="wp-image-224" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-7.png 849w, https://poweradmin.se/wp-content/uploads/2025/05/image-7-300x180.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/image-7-768x460.png 768w" sizes="auto, (max-width: 849px) 100vw, 849px" /></figure>



<h2 class="wp-block-heading"><br>Connect and start</h2>



<p class="wp-block-paragraph">Just press Start!</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="667" height="524" src="https://poweradmin.se/wp-content/uploads/2025/05/image-8.png" alt="" class="wp-image-227" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-8.png 667w, https://poweradmin.se/wp-content/uploads/2025/05/image-8-300x236.png 300w" sizes="auto, (max-width: 667px) 100vw, 667px" /></figure>



<p class="wp-block-paragraph">Waiting a bit longer</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="870" src="https://poweradmin.se/wp-content/uploads/2025/05/image-9-1024x870.png" alt="" class="wp-image-228" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-9-1024x870.png 1024w, https://poweradmin.se/wp-content/uploads/2025/05/image-9-300x255.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/image-9-768x653.png 768w, https://poweradmin.se/wp-content/uploads/2025/05/image-9.png 1026w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"></p>



<h2 class="wp-block-heading">Sign In</h2>



<p class="wp-block-paragraph"><br>Click on Sign In</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="558" src="https://poweradmin.se/wp-content/uploads/2025/05/image-10-1024x558.png" alt="" class="wp-image-230" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-10-1024x558.png 1024w, https://poweradmin.se/wp-content/uploads/2025/05/image-10-300x164.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/image-10-768x419.png 768w, https://poweradmin.se/wp-content/uploads/2025/05/image-10-1536x837.png 1536w, https://poweradmin.se/wp-content/uploads/2025/05/image-10-2048x1117.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Some more waiting</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="543" src="https://poweradmin.se/wp-content/uploads/2025/05/image-11-1024x543.png" alt="" class="wp-image-231" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-11-1024x543.png 1024w, https://poweradmin.se/wp-content/uploads/2025/05/image-11-300x159.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/image-11-768x407.png 768w, https://poweradmin.se/wp-content/uploads/2025/05/image-11-1536x814.png 1536w, https://poweradmin.se/wp-content/uploads/2025/05/image-11-2048x1086.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">And then we are good to go with a fully installed Windows 11 for development.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://poweradmin.se/wp-content/uploads/2025/05/image-12-1024x576.png" alt="" class="wp-image-233" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-12-1024x576.png 1024w, https://poweradmin.se/wp-content/uploads/2025/05/image-12-300x169.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/image-12-768x432.png 768w, https://poweradmin.se/wp-content/uploads/2025/05/image-12-1536x864.png 1536w, https://poweradmin.se/wp-content/uploads/2025/05/image-12-2048x1152.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"></p>



<h2 class="wp-block-heading">Setup the lab computer</h2>



<p class="wp-block-paragraph">This guide will show you how to set up and install all tools needed for PowerShell and Visual Studio Code in the Lab Machine.</p>



<h3 class="wp-block-heading">Language</h3>



<p class="wp-block-paragraph">First, open PowerShell ISE as Administrator.</p>



<p class="wp-block-paragraph">Click the arrow next to Script to open the Editor in PowerShell ISE.<br>Then close the Commands view on the right to have more space for scripting.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://poweradmin.se/wp-content/uploads/2025/05/image-13-1024x575.png" alt="" class="wp-image-238" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-13-1024x575.png 1024w, https://poweradmin.se/wp-content/uploads/2025/05/image-13-300x168.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/image-13-768x431.png 768w, https://poweradmin.se/wp-content/uploads/2025/05/image-13-1536x863.png 1536w, https://poweradmin.se/wp-content/uploads/2025/05/image-13-2048x1150.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">First of all I want to set all language settings to Swedish.<br>Just copy and past the code below and run it to do the changes.<br>You can do it bit by bit or all at once.<br><br>This can be done in different ways but I like my scripts to have more checks built in.<br>So this is not the easiest way <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f60a.png" alt="😊" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<p class="wp-block-paragraph">We start with a check for Run As Administrator and a Clear-Host.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Check if the script is running with administrative privileges
#Requires -RunAsAdministrator

# Clear the terminal part
Clear-Host</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Check if the script is running with administrative privileges</span></span>
<span class="line"><span style="color: #6A9955">#</span><span style="color: #C586C0">Requires </span><span style="color: #569CD6">-RunAsAdministrator</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Clear the terminal part</span></span>
<span class="line"><span style="color: #DCDCAA">Clear-Host</span></span></code></pre></div>



<p class="wp-block-paragraph">Then we set the input method to Swedish if it is not already.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Set the default input method to Swedish (Sweden) &#8211; Keyboard layout: Swedish
if ((Get-WinDefaultInputMethodOverride).InputMethodTip -ne &#8220;041D:0000041D&#8221;) {
    Set-WinDefaultInputMethodOverride -InputTip &#8220;041D:0000041D&#8221;
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Set the default input method to Swedish (Sweden) - Keyboard layout: Swedish</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinDefaultInputMethodOverride</span><span style="color: #D4D4D4">).InputMethodTip -ne </span><span style="color: #CE9178">&quot;041D:0000041D&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinDefaultInputMethodOverride</span><span style="color: #D4D4D4"> -InputTip </span><span style="color: #CE9178">&quot;041D:0000041D&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">If you want another input method you can look at the <a href="https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-input-locales-for-windows-language-packs?view=windows-11" target="_blank" rel="noopener" title="">Default input profiles (input locales) in Windows </a>page at Microsoft Learn for more language codes.<br><br>You just need to use the same language codes for the <strong>Get</strong> and for the <strong>Set</strong>.<br><br>And now we change the user language list to Swedish.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Set the user language list to Swedish (Sweden)
if ((Get-WinUserLanguageList).LanguageTag -notcontains &#8220;sv-SE&#8221;) {
    Set-WinUserLanguageList -LanguageList &#8220;sv-SE&#8221; -Force
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Set the user language list to Swedish (Sweden)</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinUserLanguageList</span><span style="color: #D4D4D4">).LanguageTag -notcontains </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinUserLanguageList</span><span style="color: #D4D4D4"> -LanguageList </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4"> -Force</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">For this one you will get this warning and it&#8217;s normal:<br><br><strong>WARNING: If the Windows Display Language has changed, it will take effect after the next sign-in.</strong></p>



<p class="wp-block-paragraph">And to set the system locale to Swedish we write:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Set the system locale to Swedish (Sweden)
if ((Get-WinSystemLocale).Name -ne &#8220;sv-SE&#8221;) {
    Set-WinSystemLocale -SystemLocale &#8220;sv-SE&#8221;
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Set the system locale to Swedish (Sweden)</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinSystemLocale</span><span style="color: #D4D4D4">).Name -ne </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinSystemLocale</span><span style="color: #D4D4D4"> -SystemLocale </span><span style="color: #CE9178">&quot;sv-SE&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">Setting user locale to Swedish:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Set the user locale to Swedish (Sweden)
if ((Get-Culture).Name -ne &#8220;sv-SE&#8221;) {
    Set-Culture -CultureInfo &#8220;sv-SE&#8221;
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Set the user locale to Swedish (Sweden)</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-Culture</span><span style="color: #D4D4D4">).Name -ne </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-Culture</span><span style="color: #D4D4D4"> -CultureInfo </span><span style="color: #CE9178">&quot;sv-SE&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">Home location:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Set the home location to Sweden
if ((Get-WinHomeLocation).GeoID -ne &#8220;221&#8221;) {
    Set-WinHomeLocation -GeoID &#8220;221&#8221;
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Set the home location to Sweden</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinHomeLocation</span><span style="color: #D4D4D4">).GeoID -ne </span><span style="color: #CE9178">&quot;221&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinHomeLocation</span><span style="color: #D4D4D4"> -GeoID </span><span style="color: #CE9178">&quot;221&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">For a table of GeoIDs, see Table of <a href="https://go.microsoft.com/fwlink/?LinkID=242308" target="_blank" rel="noopener" title="">Geographical Locations</a> at Microsoft Learn.</p>



<p class="wp-block-paragraph">The last language setting is the Time Zone:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Ensure the time zone is set to W. Europe Standard Time (CET/CEST) 
if ((Get-TimeZone).Id -ne &#8220;W. Europe Standard Time&#8221;) {
    Set-TimeZone -Id &#8220;W. Europe Standard Time&#8221;
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Ensure the time zone is set to W. Europe Standard Time (CET/CEST) </span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-TimeZone</span><span style="color: #D4D4D4">).Id -ne </span><span style="color: #CE9178">&quot;W. Europe Standard Time&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-TimeZone</span><span style="color: #D4D4D4"> -Id </span><span style="color: #CE9178">&quot;W. Europe Standard Time&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">To get another time zone, you can use the cmdlet Get-TimeZone.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>Get-TimeZone -ListAvailable</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Get-TimeZone</span><span style="color: #D4D4D4"> -ListAvailable</span></span></code></pre></div>



<p class="wp-block-paragraph">The last step for the Language section is to restart the Lab computer.<br>This can be done manually or with PowerShell.</p>



<p class="wp-block-paragraph">Using PowerShell for a quick restart, we do the following:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>Restart-Computer -Force -Confirm:$false</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #DCDCAA">Restart-Computer</span><span style="color: #D4D4D4"> -Force -Confirm:</span><span style="color: #569CD6">$false</span></span></code></pre></div>



<p class="wp-block-paragraph">Now we have the following code:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>&lt;#
.SYNOPSIS
    Configures Windows system and user locale settings for Swedish (Sweden).

.DESCRIPTION
    This script sets the following to Swedish (Sweden):
    &#8211; Default input method (keyboard layout)
    &#8211; User language list
    &#8211; System locale
    &#8211; User locale
    &#8211; Home location (region)
    &#8211; Time zone (W. Europe Standard Time)
    The script will restart the computer to apply changes.

.NOTES
    Requires administrative privileges.
    Some changes may require a restart to take effect.
#>

# Check if the script is running with administrative privileges
#Requires -RunAsAdministrator

# Clear the terminal part
Clear-Host

# Set the default input method to Swedish (Sweden) &#8211; Keyboard layout: Swedish
if ((Get-WinDefaultInputMethodOverride).InputMethodTip -ne &#8220;041D:0000041D&#8221;) {
    Set-WinDefaultInputMethodOverride -InputTip &#8220;041D:0000041D&#8221;
}

# Set the user language list to Swedish (Sweden)
if ((Get-WinUserLanguageList).LanguageTag -notcontains &#8220;sv-SE&#8221;) {
    Set-WinUserLanguageList -LanguageList &#8220;sv-SE&#8221; -Force
}

# Set the system locale to Swedish (Sweden)
if ((Get-WinSystemLocale).Name -ne &#8220;sv-SE&#8221;) {
    Set-WinSystemLocale -SystemLocale &#8220;sv-SE&#8221;
}

# Set the user locale to Swedish (Sweden)
if ((Get-Culture).Name -ne &#8220;sv-SE&#8221;) {
    Set-Culture -CultureInfo &#8220;sv-SE&#8221;
}

# Set the home location to Sweden
if ((Get-WinHomeLocation).GeoID -ne &#8220;221&#8221;) {
    Set-WinHomeLocation -GeoID &#8220;221&#8221;
}

# Ensure the time zone is set to W. Europe Standard Time (CET/CEST) 
if ((Get-TimeZone).Id -ne &#8220;W. Europe Standard Time&#8221;) {
    Set-TimeZone -Id &#8220;W. Europe Standard Time&#8221;
}

Restart-Computer -Force -Confirm:$false</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955">&lt;#</span></span>
<span class="line"><span style="color: #6A9955">.</span><span style="color: #D4D4D4">SYNOPSIS</span></span>
<span class="line"><span style="color: #6A9955">    Configures Windows system and user locale settings for Swedish (Sweden).</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955">.</span><span style="color: #D4D4D4">DESCRIPTION</span></span>
<span class="line"><span style="color: #6A9955">    This script sets the following to Swedish (Sweden):</span></span>
<span class="line"><span style="color: #6A9955">    - Default input method (keyboard layout)</span></span>
<span class="line"><span style="color: #6A9955">    - User language list</span></span>
<span class="line"><span style="color: #6A9955">    - System locale</span></span>
<span class="line"><span style="color: #6A9955">    - User locale</span></span>
<span class="line"><span style="color: #6A9955">    - Home location (region)</span></span>
<span class="line"><span style="color: #6A9955">    - Time zone (W. Europe Standard Time)</span></span>
<span class="line"><span style="color: #6A9955">    The script will restart the computer to apply changes.</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955">.</span><span style="color: #D4D4D4">NOTES</span></span>
<span class="line"><span style="color: #6A9955">    Requires administrative privileges.</span></span>
<span class="line"><span style="color: #6A9955">    Some changes may require a restart to take effect.</span></span>
<span class="line"><span style="color: #6A9955">#&gt;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Check if the script is running with administrative privileges</span></span>
<span class="line"><span style="color: #6A9955">#</span><span style="color: #C586C0">Requires </span><span style="color: #569CD6">-RunAsAdministrator</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Clear the terminal part</span></span>
<span class="line"><span style="color: #DCDCAA">Clear-Host</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Set the default input method to Swedish (Sweden) - Keyboard layout: Swedish</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinDefaultInputMethodOverride</span><span style="color: #D4D4D4">).InputMethodTip -ne </span><span style="color: #CE9178">&quot;041D:0000041D&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinDefaultInputMethodOverride</span><span style="color: #D4D4D4"> -InputTip </span><span style="color: #CE9178">&quot;041D:0000041D&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Set the user language list to Swedish (Sweden)</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinUserLanguageList</span><span style="color: #D4D4D4">).LanguageTag -notcontains </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinUserLanguageList</span><span style="color: #D4D4D4"> -LanguageList </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4"> -Force</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Set the system locale to Swedish (Sweden)</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinSystemLocale</span><span style="color: #D4D4D4">).Name -ne </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinSystemLocale</span><span style="color: #D4D4D4"> -SystemLocale </span><span style="color: #CE9178">&quot;sv-SE&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Set the user locale to Swedish (Sweden)</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-Culture</span><span style="color: #D4D4D4">).Name -ne </span><span style="color: #CE9178">&quot;sv-SE&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-Culture</span><span style="color: #D4D4D4"> -CultureInfo </span><span style="color: #CE9178">&quot;sv-SE&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Set the home location to Sweden</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-WinHomeLocation</span><span style="color: #D4D4D4">).GeoID -ne </span><span style="color: #CE9178">&quot;221&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-WinHomeLocation</span><span style="color: #D4D4D4"> -GeoID </span><span style="color: #CE9178">&quot;221&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Ensure the time zone is set to W. Europe Standard Time (CET/CEST) </span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> ((</span><span style="color: #DCDCAA">Get-TimeZone</span><span style="color: #D4D4D4">).Id -ne </span><span style="color: #CE9178">&quot;W. Europe Standard Time&quot;</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Set-TimeZone</span><span style="color: #D4D4D4"> -Id </span><span style="color: #CE9178">&quot;W. Europe Standard Time&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">Restart-Computer</span><span style="color: #D4D4D4"> -Force -Confirm:</span><span style="color: #569CD6">$false</span></span></code></pre></div>



<p class="wp-block-paragraph"></p>



<h3 class="wp-block-heading">PowerShell 7</h3>



<p class="wp-block-paragraph">Now that the language has been successfully set, we can move forward with the next step, which is installing PowerShell 7. This installation is essential to enable and run labs that specifically require PowerShell 7 for their execution and functionality.</p>



<p class="wp-block-paragraph">The simplest and officially recommended method by Microsoft to install <a href="https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.5" target="_blank" rel="noreferrer noopener">PowerShell 7</a> on Windows is by using WinGet.</p>



<p class="wp-block-paragraph">However, this method will only be effective if the lab computer is completely and thoroughly updated with the latest system updates. Without having the most recent updates installed, WinGet will not operate correctly and may encounter various issues or fail to function altogether.</p>



<p class="wp-block-paragraph">The simplest and most straightforward way to ensure your system is fully up to date is to manually navigate to the <strong>Check for Updates</strong> section and carefully install all available updates. This process should include not only the critical and recommended updates but also optional ones, such as those related to <strong>.NET</strong> framework components, which can be essential for certain applications to function properly.</p>



<p class="wp-block-paragraph">Start Windows PowerShell with Administrator privileges to ensure you have the necessary permissions.<br><br>Then enter the following command:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly>winget list &#8211;id Microsoft.PowerShell</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">winget list --id Microsoft.PowerShell</span></span></code></pre></div>



<p class="wp-block-paragraph">After reviewing the MS Store terms carefully, proceed by pressing the Y key to indicate your agreement and acceptance of all the conditions outlined.</p>



<p class="wp-block-paragraph">Now we can start PowerShell ISE as administrator and write the following code:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Check if the script is running with administrative privileges
#Requires -RunAsAdministrator

# Clear the terminal part
Clear-Host

# Check if PowerShell 7 is installed using winget
$Pwsh = winget list &#8211;id Microsoft.PowerShell | Select-String &#8220;PowerShell&#8221;
if ($Pwsh) {
    Write-Output &#8220;PowerShell 7 is installed.&#8221;
} else {
    Write-Output &#8220;PowerShell 7 is NOT installed.&#8221;
    # Install PowerShell 7
    winget install &#8211;id Microsoft.PowerShell &#8211;source winget &#8211;accept-source-agreements &#8211;accept-package-agreements
}</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Check if the script is running with administrative privileges</span></span>
<span class="line"><span style="color: #6A9955">#</span><span style="color: #C586C0">Requires </span><span style="color: #569CD6">-RunAsAdministrator</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Clear the terminal part</span></span>
<span class="line"><span style="color: #DCDCAA">Clear-Host</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Check if PowerShell 7 is installed using winget</span></span>
<span class="line"><span style="color: #9CDCFE">$Pwsh</span><span style="color: #D4D4D4"> = winget list --id Microsoft.PowerShell | </span><span style="color: #DCDCAA">Select-String</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;PowerShell&quot;</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> (</span><span style="color: #9CDCFE">$Pwsh</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Write-Output</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;PowerShell 7 is installed.&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">} </span><span style="color: #C586C0">else</span><span style="color: #D4D4D4"> {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Write-Output</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;PowerShell 7 is NOT installed.&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #6A9955"># Install PowerShell 7</span></span>
<span class="line"><span style="color: #D4D4D4">    winget install --id Microsoft.PowerShell --source winget --accept-source-agreements --accept-package-agreements</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span></code></pre></div>



<p class="wp-block-paragraph"></p>



<h3 class="wp-block-heading"><br>Visual Studio Code</h3>



<p class="wp-block-paragraph">Now it is time to move forward and proceed with the installation of Visual Studio Code on the Lab computer, ensuring that we have the latest tools ready for our development work.<br><br>We will perform this installation process using WinGet along with PowerShell, following the same method we previously used when installing PowerShell 7, to maintain consistency and efficiency in our setup steps.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Check if the script is running with administrative privileges
#Requires -RunAsAdministrator

# Clear the terminal part
Clear-Host

# Install Visual Studio Code
# Check if Visual Studio Code is installed using winget
$VsCode = winget list &#8211;id Microsoft.VisualStudioCode | Select-String &#8220;Visual Studio Code&#8221;
if ($VsCode) {
    Write-Output &#8220;Visual Studio Code is installed.&#8221;
} else {
    Write-Output &#8220;Visual Studio Code is NOT installed.&#8221;
    # Install Visual Studio Code
    winget install &#8211;id Microsoft.VisualStudioCode &#8211;source winget &#8211;accept-source-agreements &#8211;accept-package-agreements
}
</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Check if the script is running with administrative privileges</span></span>
<span class="line"><span style="color: #6A9955">#</span><span style="color: #C586C0">Requires </span><span style="color: #569CD6">-RunAsAdministrator</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Clear the terminal part</span></span>
<span class="line"><span style="color: #DCDCAA">Clear-Host</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Install Visual Studio Code</span></span>
<span class="line"><span style="color: #6A9955"># Check if Visual Studio Code is installed using winget</span></span>
<span class="line"><span style="color: #9CDCFE">$VsCode</span><span style="color: #D4D4D4"> = winget list --id Microsoft.VisualStudioCode | </span><span style="color: #DCDCAA">Select-String</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Visual Studio Code&quot;</span></span>
<span class="line"><span style="color: #C586C0">if</span><span style="color: #D4D4D4"> (</span><span style="color: #9CDCFE">$VsCode</span><span style="color: #D4D4D4">) {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Write-Output</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Visual Studio Code is installed.&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">} </span><span style="color: #C586C0">else</span><span style="color: #D4D4D4"> {</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #DCDCAA">Write-Output</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Visual Studio Code is NOT installed.&quot;</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #6A9955"># Install Visual Studio Code</span></span>
<span class="line"><span style="color: #D4D4D4">    winget install --id Microsoft.VisualStudioCode --source winget --accept-source-agreements --accept-package-agreements</span></span>
<span class="line"><span style="color: #D4D4D4">}</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph"><br></p>



<h3 class="wp-block-heading">VSCode Extensions</h3>



<p class="wp-block-paragraph">Now we are fully prepared and ready to start working with our development environment.<br><br>HOWEVER, Visual Studio Code (VSCode) becomes much more powerful and enjoyable to use when enhanced with some useful extensions, and I personally recommend these 5 essential extensions as a great starter kit to improve your workflow.<br><br></p>



<h4 class="wp-block-heading"><strong>PowerShell for Visual Studio Code</strong></h4>



<p class="wp-block-paragraph">This extension allows you to seamlessly integrate full PowerShell support within Visual Studio Code, making scripting and command execution much easier and more efficient.<br><br></p>



<h4 class="wp-block-heading"><strong>VSCode-Icons</strong></h4>



<p class="wp-block-paragraph">This extension adds visually appealing and distinctive icons to the Explorer view, helping you quickly identify file types and folders.<br>After installing, you must enable it within the extensions panel to activate the icon set.<br><br>Without:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="263" height="270" src="https://poweradmin.se/wp-content/uploads/2025/05/image-16.png" alt="" class="wp-image-306"/></figure>



<p class="wp-block-paragraph">With:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="256" height="266" src="https://poweradmin.se/wp-content/uploads/2025/05/image-15.png" alt="" class="wp-image-304"/></figure>



<p class="wp-block-paragraph"><br></p>



<h4 class="wp-block-heading"><strong>CodeSnap</strong></h4>



<p class="wp-block-paragraph">Takes a clear and nice screenshot of your code and saves it to a file on your computer.<br><br>Press Ctrl-Shift-P to open the Command Palette, then type CodeSnap in the search bar, and select the CodeSnap option from the list.<br><br>After that, simply highlight the portion of code you want to capture, and the tool will create a neat screenshot for you.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="215" src="https://poweradmin.se/wp-content/uploads/2025/05/image-17-1024x215.png" alt="" class="wp-image-307" srcset="https://poweradmin.se/wp-content/uploads/2025/05/image-17-1024x215.png 1024w, https://poweradmin.se/wp-content/uploads/2025/05/image-17-300x63.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/image-17-768x161.png 768w, https://poweradmin.se/wp-content/uploads/2025/05/image-17-1536x323.png 1536w, https://poweradmin.se/wp-content/uploads/2025/05/image-17-2048x430.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Then press the shutter button to capture the image and save the screenshot to your desired location.<br>The picture shown below is taken from the CodeSnap extension.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="371" src="https://poweradmin.se/wp-content/uploads/2025/05/code-1024x371.png" alt="" class="wp-image-308" srcset="https://poweradmin.se/wp-content/uploads/2025/05/code-1024x371.png 1024w, https://poweradmin.se/wp-content/uploads/2025/05/code-300x109.png 300w, https://poweradmin.se/wp-content/uploads/2025/05/code-768x278.png 768w, https://poweradmin.se/wp-content/uploads/2025/05/code-1536x556.png 1536w, https://poweradmin.se/wp-content/uploads/2025/05/code.png 1542w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading"><br>GitHub CoPilot</h4>



<p class="wp-block-paragraph">GitHub CoPilot provides you with the incredible power of artificial intelligence directly within Visual Studio Code, making your coding experience much more efficient and enjoyable.<br><br>All you need to start using this amazing tool is a simple GitHub account, which enables you to access its full range of features without any hassle.<br><br>In my opinion, it is especially useful for assisting with the creation of documentation and for debugging code, offering valuable suggestions and insights that can save time and improve the quality of your projects.</p>



<h4 class="wp-block-heading">XML Tools</h4>



<p class="wp-block-paragraph">XML Tools by Josh Johnson.<br><br>I frequently work with XML files in my projects, and this tool has proven to be incredibly helpful for me. It assists greatly with the formatting of XML files whenever it is needed, making the process much smoother and more efficient.</p>



<h4 class="wp-block-heading">Install Extensions</h4>



<p class="wp-block-paragraph">To install extensions, you have several options available. You can easily do it directly from Visual Studio Code using the graphical user interface (GUI), which provides a user-friendly way to browse and add extensions. Alternatively, if you prefer using the command line, you can install extensions through PowerShell or from a Command Prompt window running with administrator privileges. Each method allows you to efficiently manage your extensions according to your preferred workflow.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><textarea class="code-block-pro-copy-button-textarea" aria-hidden="true" readonly># Install PowerShell Extension
code &#8211;install-extension ms-vscode.PowerShell

# Install VSCode-Icons Extension
code &#8211;install-extension vscode-icons-team.vscode-icons

# Install CodeSnap Extension
code &#8211;install-extension adpyke.codesnap

# Install GitHub CoPilot incl CoPilot Chat Extension
code &#8211;install-extension github.copilot

# Install XML Tools by Josh Johnson
code &#8211;install-extension dotjoshjohnson.xml</textarea><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #6A9955"># Install PowerShell Extension</span></span>
<span class="line"><span style="color: #D4D4D4">code --</span><span style="color: #DCDCAA">install-extension</span><span style="color: #D4D4D4"> ms-vscode.PowerShell</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Install VSCode-Icons Extension</span></span>
<span class="line"><span style="color: #D4D4D4">code --</span><span style="color: #DCDCAA">install-extension</span><span style="color: #D4D4D4"> vscode-icons-team.vscode-icons</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Install CodeSnap Extension</span></span>
<span class="line"><span style="color: #D4D4D4">code --</span><span style="color: #DCDCAA">install-extension</span><span style="color: #D4D4D4"> adpyke.codesnap</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Install GitHub CoPilot incl CoPilot Chat Extension</span></span>
<span class="line"><span style="color: #D4D4D4">code --</span><span style="color: #DCDCAA">install-extension</span><span style="color: #D4D4D4"> github.copilot</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Install XML Tools by Josh Johnson</span></span>
<span class="line"><span style="color: #D4D4D4">code --</span><span style="color: #DCDCAA">install-extension</span><span style="color: #D4D4D4"> dotjoshjohnson.xml</span></span></code></pre></div>



<p class="wp-block-paragraph"></p>



<h2 class="wp-block-heading">The End</h2>



<p class="wp-block-paragraph">This marks the official conclusion of this comprehensive and detailed guide.<br><br>Up to this point, we have successfully completed the setup of a Lab computer that is fully equipped with the latest version of <strong>PowerShell 7 (7.5)</strong>. In addition, we have installed the powerful and versatile <strong>Visual Studio Code</strong> editor along with five carefully selected and highly useful extensions.<br><br>All of these components are running smoothly and efficiently within a <strong>Hyper-V</strong> virtual environment. Furthermore, the system has been configured with the appropriate language settings to significantly enhance overall usability and user experience.<br><br>It is my sincere hope that this guide will assist you in setting up your Lab environment quickly and efficiently, allowing you to have a strong and effective start to your Lab experience.</p>



<p class="wp-block-paragraph"></p>
<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='Create a lab machine' data-link='https://poweradmin.se/create-a-lab-machine/' data-summary='A step-by-step guide to quickly and easily create a Hyper-V lab machine for PowerShell and Visual Studio Code development' data-app-id-name='index_below_content'></div><div style='display:none;' class='shareaholic-canvas' data-app='recommendations' data-title='Create a lab machine' data-link='https://poweradmin.se/create-a-lab-machine/' data-summary='A step-by-step guide to quickly and easily create a Hyper-V lab machine for PowerShell and Visual Studio Code development' data-app-id-name='index_below_content'></div><p>The post <a href="https://poweradmin.se/create-a-lab-machine/">Create a lab machine</a> first appeared on <a href="https://poweradmin.se">The PowerAdmin</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://poweradmin.se/create-a-lab-machine/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
