<?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>VM Archives | DMC, Inc.</title>
	<atom:link href="https://static.dmcinfo.com/blog/tag/vm/feed/index.xml" rel="self" type="application/rss+xml" />
	<link></link>
	<description></description>
	<lastBuildDate>Thu, 02 Jul 2026 18:45:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>

<image>
	<url>https://static.dmcinfo.com/wp-content/uploads/2025/04/site-icon-150x150.png</url>
	<title>VM Archives | DMC, Inc.</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Windows Virtual Machine PowerShell Tweaks</title>
		<link>https://static.dmcinfo.com/blog/17272/windows-virtual-machine-powershell-tweaks/</link>
		
		<dc:creator><![CDATA[Dylan Trainor]]></dc:creator>
		<pubDate>Sat, 26 Aug 2023 16:11:18 +0000</pubDate>
				<category><![CDATA[Manufacturing Automation & Intelligence]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Virtual Machine]]></category>
		<category><![CDATA[VM]]></category>
		<guid isPermaLink="false">https://static.dmcinfo.com/blog/17272/windows-virtual-machine-powershell-tweaks/</guid>

					<description><![CDATA[<p>For companies in the software development sector, creating new Windows virtual machines for employees can become a regular task. Employees who initialize these virtual machines often follow a list of common “best practice” adjustments to rename their machine and correct any system performance issues. PowerShell is an efficient method of conducting all these common tasks [&#8230;]</p>
<p>The post <a href="https://static.dmcinfo.com/blog/17272/windows-virtual-machine-powershell-tweaks/">Windows Virtual Machine PowerShell Tweaks</a> appeared first on <a href="https://static.dmcinfo.com/">DMC, Inc.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">For companies in the software development sector, creating new Windows virtual machines for employees can become a regular task. Employees who initialize these virtual machines often follow a list of common “best practice” adjustments to rename their machine and correct any system performance issues.</p>



<p class="wp-block-paragraph">PowerShell is an efficient method of conducting all these common tasks in quick succession and providing a repeatable methodology that can be reused for each new virtual machine.</p>



<p class="wp-block-paragraph"><em>Note: The following commands are tested for Windows10 virtual machines using an admin-privileged PowerShell. I&nbsp;recommend creating a restore point of your virtual machine using a feature such as <strong>VMWare Workstation’s Snapshot</strong>.</em></p>



<h2 class="wp-block-heading" id="h-renaming-the-virtual-machine-pc-and-local-user-account">Renaming the Virtual Machine PC and Local User Account</h2>



<p class="wp-block-paragraph">When distributing virtual machines across many employees, it is a best practice to rename the employee’s virtual machine so that it can be easily identified when working on large collaborative projects. The computer and local usernames can both be renamed using the following PowerShell commands:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" 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;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e"><span style="background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e">PowerShell</span></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>
 # Renames the computer - be sure to replace the sample name

Rename-Computer -NewName "SampleName"

# Renames the local user - be sure to replace the company and sample name

Rename-LocalUser -Name "SampleCompanyName" -NewName "SampleName"

</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="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"></span>
<span class="line"><span style="color: #D4D4D4"> </span><span style="color: #6A9955"># Renames the computer - be sure to replace the sample name</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">Rename-Computer</span><span style="color: #D4D4D4"> -NewName </span><span style="color: #CE9178">&quot;SampleName&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Renames the local user - be sure to replace the company and sample name</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">Rename-LocalUser</span><span style="color: #D4D4D4"> -Name </span><span style="color: #CE9178">&quot;SampleCompanyName&quot;</span><span style="color: #D4D4D4"> -NewName </span><span style="color: #CE9178">&quot;SampleName&quot;</span></span>
<span class="line"></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">If the name of the current Local User is unknown, it can be viewed by searching for <strong>Computer Management</strong> using the start menu and navigating to “Local Users and Groups &gt; Users”.</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/local-user.png" alt="A screenshot of a computerDescription automatically generated"/></figure>



<p class="wp-block-paragraph"><p style="text-align: center;"><em>Figure 1: Location of the Local User within Computer Management</em></p></p>



<p class="wp-block-paragraph">When changing the sample names to the appropriate fields for your needs, make sure there is no white space before or after the field. Using “ SampleName “ instead of “SampleName” may cause problems with password acceptance after a restart, locking you out of your virtual machine.</p>



<h2 class="wp-block-heading" id="h-performance-improvements"><strong>Performance Improvements</strong></h2>



<p class="wp-block-paragraph">When working with limited computing resources, performance improvements can become vital on Windows virtual machines that&nbsp;run intensive programs. Two notable PowerShell commands are setting the Power Plan to <strong>High Performance </strong>and the removal of native Windows applications, which may bloat the system.</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" 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;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e"><span style="background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e">PowerShell</span></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>
# Sets the Windows Power Plan setting to High Performance

powercfg.exe -SETACTIVE 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c

# Removes all default Windows application packages

Get-AppxPackage -AllUsers | Remove-AppxPackage
</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="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"></span>
<span class="line"><span style="color: #6A9955"># Sets the Windows Power Plan setting to High Performance</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">powercfg.exe</span><span style="color: #D4D4D4"> -SETACTIVE 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Removes all default Windows application packages</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">Get-AppxPackage</span><span style="color: #D4D4D4"> -AllUsers | </span><span style="color: #DCDCAA">Remove-AppxPackage</span></span>
<span class="line"></span></code></pre></div>



<p class="wp-block-paragraph">This first command will set your virtual machine’s Power Plan setting to <strong>High Performance</strong>. The second command fetches all app packages (applications with a .msix or .appx file extension) for default Windows applications and removes them. This may take a while, as it will remove all applications such as the default calculator, photo viewer, Cortana, Xbox features, and more. System-crucial programs such as the File Explorer are untouched.</p>



<p class="wp-block-paragraph">On some Windows11 and Windows10 host machines, virtual machine software such as <strong>VMWare Workstation</strong> experiences significant performance inhibitions due to the default program power throttling settings. If you experience this, you can disable power throttling for the application with the following command (executed in your host machine instead of the virtual machine):</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" 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;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e"><span style="background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e">PowerShell</span></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>
# Disables power throttling for VMWare Workstation

powercfg /powerthrottling disable /path "C:\Program Files (x86)\VMware\VMware Workstation\x64\vmware-vmx.exe"</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="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"></span>
<span class="line"><span style="color: #6A9955"># Disables power throttling for VMWare Workstation</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D4D4D4">powercfg /powerthrottling disable /path </span><span style="color: #CE9178">&quot;C:\Program Files (x86)\VMware\VMware Workstation\x64\vmware-vmx.exe&quot;</span></span></code></pre></div>



<h2 class="wp-block-heading" id="h-quality-of-life-improvements"><strong>Quality of Life Improvements</strong></h2>



<p class="wp-block-paragraph">For companies with many regional or international offices, employees in various time zones can quickly update the displayed time of their virtual machine by executing the following:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" 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;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e"><span style="background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e">PowerShell</span></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>
# Displays the current time zone

Get-TimeZone

# Lists all available time zones

Get-TimeZone -ListAvailable

# Set the time zone to the desired time zone name – be sure to replace the name with the appropriate time zone

Set-TimeZone "Sample Time Zone"</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="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"></span>
<span class="line"><span style="color: #6A9955"># Displays the current time zone</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">Get-TimeZone</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Lists all available time zones</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">Get-TimeZone</span><span style="color: #D4D4D4"> -ListAvailable</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Set the time zone to the desired time zone name – be sure to replace the name with the appropriate time zone</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">Set-TimeZone</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Sample Time Zone&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">Common options for time zone names can be seen below. Replacing &#8220;Standard&#8221; with &#8220;Daylight&#8221; will correct the time to Daylight Savings Time.</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" 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;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e"><span style="background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e">PowerShell</span></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>
Set-TimeZone "Eastern Standard Time"

Set-TimeZone "Pacific Standard Time"

Set-TimeZone "US Mountain Standard Time"

Set-TimeZone "Central Standard Time"</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="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"></span>
<span class="line"><span style="color: #DCDCAA">Set-TimeZone</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Eastern Standard Time&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">Set-TimeZone</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Pacific Standard Time&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">Set-TimeZone</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;US Mountain Standard Time&quot;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">Set-TimeZone</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Central Standard Time&quot;</span></span></code></pre></div>



<p class="wp-block-paragraph">Disabling automatic Windows updates can save a significant amount of time during virtual machine system restarts and potentially save a virtual machine from incompatibility crashes after an unwanted feature update. To do this, run the following commands:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" 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;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e"><span style="background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e">PowerShell</span></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>
# Stop the automatic Windows update service

sc.exe stop wuauserv

# Disable the automatic Windows update service

sc.exe config wuauserv start=disabled
</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="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"></span>
<span class="line"><span style="color: #6A9955"># Stop the automatic Windows update service</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">sc.exe</span><span style="color: #D4D4D4"> stop wuauserv</span></span>
<span class="line"></span>
<span class="line"><span style="color: #6A9955"># Disable the automatic Windows update service</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">sc.exe</span><span style="color: #D4D4D4"> config wuauserv start=disabled</span></span>
<span class="line"></span></code></pre></div>



<h2 class="wp-block-heading" id="h-single-line-execution"><strong>Single-Line Execution</strong></h2>



<p class="wp-block-paragraph">Copying each line one-by-one is inefficient, so why not run all the commands at once? You can execute all of these changes in a single line by copying and pasting the text below. Adjust the fields, such as your name and time zone, before executing. When finished, your virtual machine will restart and apply the changes to your computer name and local username.</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" 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;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e"><span style="background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e">PowerShell</span></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>
# Executes all commands in a single line

Rename-Computer -NewName "SampleName"; Rename-LocalUser -Name "SampleCompanyName" -NewName "SampleName"; Get-AppxPackage -AllUsers | Remove-AppxPackage; powercfg.exe -SETACTIVE 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c; Set-TimeZone "Sample Time Zone"; sc.exe stop wuauserv; sc.exe config wuauserv start=disabled; Restart-Computer</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="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"></span>
<span class="line"><span style="color: #6A9955"># Executes all commands in a single line</span></span>
<span class="line"></span>
<span class="line"><span style="color: #DCDCAA">Rename-Computer</span><span style="color: #D4D4D4"> -NewName </span><span style="color: #CE9178">&quot;SampleName&quot;</span><span style="color: #D4D4D4">; </span><span style="color: #DCDCAA">Rename-LocalUser</span><span style="color: #D4D4D4"> -Name </span><span style="color: #CE9178">&quot;SampleCompanyName&quot;</span><span style="color: #D4D4D4"> -NewName </span><span style="color: #CE9178">&quot;SampleName&quot;</span><span style="color: #D4D4D4">; </span><span style="color: #DCDCAA">Get-AppxPackage</span><span style="color: #D4D4D4"> -AllUsers | </span><span style="color: #DCDCAA">Remove-AppxPackage</span><span style="color: #D4D4D4">; </span><span style="color: #DCDCAA">powercfg.exe</span><span style="color: #D4D4D4"> -SETACTIVE 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c; </span><span style="color: #DCDCAA">Set-TimeZone</span><span style="color: #D4D4D4"> </span><span style="color: #CE9178">&quot;Sample Time Zone&quot;</span><span style="color: #D4D4D4">; </span><span style="color: #DCDCAA">sc.exe</span><span style="color: #D4D4D4"> stop wuauserv; </span><span style="color: #DCDCAA">sc.exe</span><span style="color: #D4D4D4"> config wuauserv start=disabled; </span><span style="color: #DCDCAA">Restart-Computer</span></span></code></pre></div>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/power-shell-example.png" alt="A screen shot of a computer screenDescription automatically generated"/></figure>



<p class="wp-block-paragraph"><p style="text-align: center;"><em>Figure 2: An example virtual machine PowerShell tweak to a new DMC virtual machine</em></p></p>



<p class="wp-block-paragraph"><strong>Learn more about our <a href="https://static.dmcinfo.com/services/manufacturing-automation-and-intelligence">Manufacturing Automation services</a>&nbsp;and <a href="https://static.dmcinfo.com/contact">contact us</a>&nbsp;for your next project.</strong></p>
<p>The post <a href="https://static.dmcinfo.com/blog/17272/windows-virtual-machine-powershell-tweaks/">Windows Virtual Machine PowerShell Tweaks</a> appeared first on <a href="https://static.dmcinfo.com/">DMC, Inc.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Creating a Virtual Machine from a Physical Computer</title>
		<link>https://static.dmcinfo.com/blog/19951/creating-a-virtual-machine-from-a-physical-computer/</link>
		
		<dc:creator><![CDATA[Will Todd]]></dc:creator>
		<pubDate>Thu, 07 May 2020 15:43:22 +0000</pubDate>
				<category><![CDATA[Manufacturing Automation & Intelligence]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Virtual Machine]]></category>
		<category><![CDATA[VM]]></category>
		<guid isPermaLink="false">https://static.dmcinfo.com/blog/19951/creating-a-virtual-machine-from-a-physical-computer/</guid>

					<description><![CDATA[<p>Many people and/or companies have computers running that they would be very upset if it were to fail. There are tons of examples where the failure of hardware or loss of software install files can be devastating to recover a computer or bigger system it is connected to. Luckily there is a way to preserve [&#8230;]</p>
<p>The post <a href="https://static.dmcinfo.com/blog/19951/creating-a-virtual-machine-from-a-physical-computer/">Creating a Virtual Machine from a Physical Computer</a> appeared first on <a href="https://static.dmcinfo.com/">DMC, Inc.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Many people and/or companies have computers running that they would be very upset if it were to fail. There are tons of examples where the failure of hardware or loss of software install files can be devastating to recover a computer or bigger system it is connected to.</p>



<p class="wp-block-paragraph">Luckily there is a way to preserve a computer without having to keep the physical hardware in solid running condition forever. VMware offers a free tool called <strong>VMware vCenter Converter</strong> that allows the user to take a physical machine and create a virtual version of it while it is powered on and running!</p>



<h2 id="h-virtualize-a-physical-machine" class="wp-block-heading">Virtualize a Physical Machine</h2>



<p class="wp-block-paragraph">In VMware workstation you can find an option to virtualize a physical machine:</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/1-virtualize-vm.png" alt="virtualizevm"/></figure>



<p class="wp-block-paragraph">This will prompt you to download the latest version of <strong>VMware vCenter Converter Standalone.</strong></p>



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



<p class="wp-block-paragraph">You can create a free account and download the software on <a href="https://www.vmware.com/" type="link" id="https://www.vmware.com/">VMware&#8217;s website</a>.</p>



<p class="wp-block-paragraph">You will have to create a FREE account to do this, accept the end-user license agreement, then the software download will begin.</p>



<p class="wp-block-paragraph">When the download is complete you should have a .exe file available in your downloads folder. Run this executable and the software install will begin. For this example, I have installed the standard installation of the software on the local machine. The software can then be run on the host machine from either the shortcut created on the desktop or through the newly added program path where it was installed.</p>



<p class="wp-block-paragraph">Once the application opens you will see a <strong>Convert Machine</strong> button near the top left corner, which will prompt with a wizard to start the conversion. You can also start this from <strong>File -&gt; New -&gt; Convert Machine</strong>, or simply pressing <strong>Ctrl+M</strong>.</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/3-convert-machine.png" alt=""/></figure>



<p class="wp-block-paragraph">The first page in the wizard is where you pick the source computer. In this example, we want to use the host machine to clone so we leave the drop-down as local machine and select the radio button for <strong>‘Powered On’</strong>. Click Next.</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/4-powered-on.png" alt=""/></figure>



<p class="wp-block-paragraph">The next screen is <strong>Destination System</strong>. Here you can select the <strong>Destination type</strong>, which affects the other options available. For a ‘VMware Workstation or other VMware virtual Machine’, you can select which software/version you will be using after the VM is created.</p>



<p class="wp-block-paragraph">The VM details allow you to change the computer name for the VM and the destination path for where the application will save the files. Depending on the size of the host being used, this could be quite large, so make sure you have a destination that has plenty of storage.</p>



<p class="wp-block-paragraph">For instance, my local machine has several virtual machines already saved on the hard drive which can take up a very significant amount of storage, so it is recommended to save files on external drives or networks then move them back to the VM later if needed using the shared folders options in VMware Workstation.</p>



<h2 id="h-configuring-the-vm" class="wp-block-heading">Configuring The VM</h2>



<p class="wp-block-paragraph">As a better example, I will go through the process using a bare-bones Windows machine that has very little stored on the hard drive.</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/5-vm-workstation.png" alt=""/></figure>



<p class="wp-block-paragraph">You can see the destination was set to use a removable disk mounted on the F drive. The next page has several options the user can choose from. These options include the size of the virtual hard drive, memory allocated for the processor, number of cores for the CPU, etc.</p>



<p class="wp-block-paragraph">The size of the hard drive has multiple options: <strong>Maintain Size</strong> (keeps the full size of the physical hard drive), <strong>Min Size</strong> (uses the minimum amount possible), or <strong>type in size</strong> (any value above the Min Size requirement). Depending on how much you plan on adding to the VM after creation, select your size accordingly. Also, the size of the hard drive will affect the size of the VM file so make sure your destination storage device can handle this.</p>



<p class="wp-block-paragraph"><strong>Memory allocation</strong> and <strong>Number of processors</strong> can be adjusted in&nbsp;the VM settings later in VMware using the <strong>VM -&gt; Settings</strong>. Then, navigate to the hardware tab and select the Memory and Processors to change their values.</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/6-vm-settings.png" alt=""/></figure>



<h2 id="h-adding-the-vmware-tools-option" class="wp-block-heading">Adding the VMware Tools Option</h2>



<p class="wp-block-paragraph">A useful tool that is recommended for install is <strong>VMware Tools</strong>. This install is great for using the auto fit and adjustment for the guest operating system so it will match the screen resolution to better fit the environment it is running in. The option to install VMware Tools on the VM can be found here:</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/7-vmware-tools.png" alt=""/></figure>



<p class="wp-block-paragraph">Clicking to the next page will bring you to the summary. Here you can review all the options selected from the wizard and if anything looks wrong you can navigate back to change the options.</p>



<h2 id="h-creating-the-vm" class="wp-block-heading">Creating the VM</h2>



<p class="wp-block-paragraph">Clicking finish in the bottom right corner will start the conversion process. If you choose not to do this, you can install VMware tools later in VMware Workstation through the top menu bar <strong>VM -&gt; Install VMware Tools… selection</strong>.</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/8-local-machine.png" alt=""/></figure>



<p class="wp-block-paragraph">Depending on the size and specs of the host computer, the conversion process can take a while. The conversion screen will give you estimated time and total percentage complete while it is running, so you will have good feedback on where it is at in the process.</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/9-feedback-process.png" alt=""/></figure>



<p class="wp-block-paragraph">Once the process is complete. You will see the status change to <strong>‘Completed’</strong> and you now have the VM file that you can start in VMware.</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/10-completed-vm.png" alt=""/></figure>



<h2 id="h-opening-the-vm" class="wp-block-heading">Opening the VM</h2>



<p class="wp-block-paragraph">In the destination folder selected in the Wizard, you will find the<strong> ‘.vmx’</strong> and <strong>‘.vdmk’</strong> files created from the converter application. The ‘.vmx’ file is what you select to power up the machine in the VMware workstation. In the picture below you can see the two files generated from the conversion process.</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/11-vm-files.png" alt=""/></figure>



<p class="wp-block-paragraph">Before opening the VM, it is best practice to save a copy of the files on the host machine’s hard drive. A good idea is to make a <strong>Virtual PC folder on the C:\ drive</strong> to store all the VMs. As you can see below here is the location where this example VM will be stored.</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/12-vm-file-location.png" alt=""/></figure>



<p class="wp-block-paragraph">In VMware Workstation, click the<strong> ‘Open a Virtual Machine’</strong> button, and navigate to the path where the VM is saved. Select the .vmx file and click <strong>‘Open’</strong>.</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/13-vm-workstation.png" alt=""/></figure>



<p class="wp-block-paragraph">Now you can run the VM by opening the .vmx file in VMware, and if the VM is backed up it can live forever, even with a failure in the VM or the host computer. Make sure to save your VM in a safe place in case of something tragic happening!</p>



<p class="wp-block-paragraph">If you chose not to install VMware tools earlier, you can still install it using VMware Workstation. It will prompt on screen how to start the installation. It may require a manual start from the start menu.</p>



<figure class="wp-block-image"><img decoding="async" src="https://static.dmcinfo.com/wp-content/uploads/2025/05/14-install-vmware-tools.png" alt=""/></figure>



<p class="wp-block-paragraph">Once the installation is complete the VM will need to restart. Now you can run the VM with auto size adjustment for the monitor connected to the host machine, plus more seamless transitions from VM to host windows if working with multiple monitors.</p>



<p class="wp-block-paragraph">With this short procedure, you can now enjoy the same machine running in a virtual environment!</p>



<p class="wp-block-paragraph"><a href="/contact">Contact DMC</a> with any questions and learn more about our <a href="https://static.dmcinfo.com/services/manufacturing-automation-and-intelligence">Manufacturing Automation services.</a>&nbsp;</p>
<p>The post <a href="https://static.dmcinfo.com/blog/19951/creating-a-virtual-machine-from-a-physical-computer/">Creating a Virtual Machine from a Physical Computer</a> appeared first on <a href="https://static.dmcinfo.com/">DMC, Inc.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
