PowerShell One-Liner: Create a new Hyper-V VM
My test environment resides on a workstation that runs Windows 8.1 Enterprise Edition with the Hyper-V role enabled. I need to create a new VM that will be used as a second domain controller in my test...
View ArticleMount an ISO on a Physical Server running Server Core
So you need to mount an ISO on a physical server that is running Windows Server 2012 R2 Server Core? If so, how would you accomplish that task without a graphical user interface? With PowerShell of...
View ArticleCreating Hyper-V VM’s with Desired State Configuration
I’m looking to automate the build of my test environment that runs as Hyper-V virtual machines on my Windows 8.1 Laptop computer. To get started, I thought I would take a look at the xHyper-V DSC...
View ArticleUse caution when updating to Windows 10 RTM with data deduplication enabled...
I recently decided to reload my computer, moving from Windows 8.1 Enterprise Edition to Windows 10 Enterprise Edition. I had previously enabled the data deduplication feature on my Windows 8.1...
View ArticleRemove App Packages from Windows 10 Enterprise Edition
So you’ve installed Windows 10 enterprise edition only to find applications that you would consider to be consumer type apps such as Bing Finance, News, and Sports which is not what you would normally...
View Article#PowerShell: DelayedAutoStart Property added to the Win32_Service WMI Class...
I recently discovered that Windows 10 adds a DelayedAutoStart property to the Win32_Service WMI Class: [crayon-561ea8dc46c66216794331/] I’ve verified that this property does not exist on prior...
View ArticleSolving DSC Problems on Windows 10 & Writing PowerShell Code that writes...
I recently ran into a problem with DSC on Windows 10 when trying to create MOF files with DSC configurations that work on other operating systems. An error is generated when the friendly name for a DSC...
View ArticleConvert, Resize, and Optimize VHD and VHDX files with PowerShell
I recently received an email from someone who attended one of my presentations asking if I had a blog article on using PowerShell to compact and optimize VHD files. Since I didn’t have a blog article...
View ArticlePowerShell Function to Determine the Hyper-V Host for a VM
This week, I thought I would share a PowerShell function that I wrote to determine what Hyper-V host server a VM (virtual machine) resides on. In this scenario, you have no idea which Hyper-V host a VM...
View ArticleUse PowerShell to Install the Remote Server Administration Tools (RSAT) on...
My computer recently updated to Windows 10 version 1809 and as with all previous major updates of Windows 10, this wipes out the Remote Server Administration Tools (RSAT). However, unlike previous...
View ArticleDetermine the Generation of a Hyper-V VM with PowerShell
Ever need to determine what generation all of the virtual machines are on your Hyper-V servers? This is simple using the Get-VM command that installs as part of the Hyper-V module for Windows...
View ArticleImport a Hyper-V Virtual Machine with PowerShell
I recently ran into a problem where an exported VM from Windows Server 2016 running Hyper-V wasn’t able to be imported on Windows Server 2019 running Hyper-V. When attempting to perform the import, the...
View Article
More Pages to Explore .....