Search Results
PowerShell is King – Find VM Configuration files (.vmcx) that have not been imported/registered
Posted on November 9, 2016
Sometime you need to move a large number of VMs, or you need to recover from a broken hyper-v host, or similar. If you have a few VM’s, that will be easy, but if you have many you will most likely use PowerShell to import the VM’s. That works perfectly fine, but you have a […]
Posted in Hyper-V, PowerShell | Leave a Comment »
PowerShell is King – Find VHDs that are not connected to a VM
Posted on November 8, 2016
Working with VM’s in Hyper-V means that you will eventually have VHD’s that are not connected, not not even in use. That happens when you remove the VM configuration from Hyper-V manager, but you told your self “I will remove the data files later”, later very rarely happens, at least not for my lab and […]
Posted in Hyper-V, PowerShell | Leave a Comment »
PowerShell is King – Find out what Differencing disks that are in use
Posted on November 7, 2016
I use Hyper-V, in both production as well as for lab. One very effective way to spin up systems very fast is to use differencing disks, it also saves space. So I use differencing disks basically. After a while you tend to have some VM’s in your environment, and when it comes to a lab […]
Posted in Hyper-V, PowerShell | Leave a Comment »
PowerShell is King – Generate an array of server names, with the same length and the same prefix
Posted on November 4, 2016
Basic Idea and Challenge PowerShell is all about automation, and creating a loop in PowerShell that creates an array of numbers is easy, add a prefix to that and hey you have an array The output. The Magical -F But, there is a small issue, the names of the server names that i need to […]
Posted in PowerShell | Leave a Comment »
PowerShell is King – Getting a massive amount of hotfixes from the Windows Update Site
Posted on June 30, 2016
Working for a customer in Norway, I received a list of “hotfixes” that needs to be downloaded and imported into WSUS for distribution, number of patches was 90. I have not found any great way to automate download from the Update Catalog into WSUS (there must be). So the here is the ugly version: The […]
Posted in PowerShell | Leave a Comment »
PowerShell is King – Simple function to test a VMSwitch is present
Posted on May 27, 2016
When building VM’s, they are usually connected to a Hyper-V switch, so when working for a customer I suddenly needed to verify that the switch actually exists before building the VM. One way to solve this is of course to use Get-VMSwitch –Name, but if it cant find it, it blows up and turns red […]
Posted in Hyper-V, PowerShell | Leave a Comment »
OSD – The future of MDT is going to be PowerShell!
Posted on May 18, 2016
At MMSmoa today, Michael Niehaus presented a new approach for MDT, the shift from VBscript to PowerShell. They idea is to get the code up on GitHub. The basic engine and framework will be done, but it will allow for contributors to test and verify and even provide suggestions. You can check it out here: […]
Posted in MDT | 6 Comments »
OSD – Export drivers using a task sequence in Lite Touch and some PowerShell
Posted on May 18, 2016
Yesterday i did a demo of a Task Sequence I use to extract drivers from a computer that already have all drivers correctly installed, could be a system that I need to reinstall, or a new machine with fairly new drivers installed. The Task Sequence basically grabs information from the computer, such as Operating System, […]
Posted in Lite Touch, MDT, OS Deployment, OSD | 6 Comments »
OS Deployment – Using the PowerShell to work with the MDT Database module: Sample 1
Posted on April 22, 2016
During the OSD class in Phoenix this week we worked with the MDT Database and some one asked if it was possible to use PowerShell to modify the database and and the same time verify if the mac address or the computer name was already in use before creating the database entry. The short answer […]
Posted in MDT, OS Deployment, OSD, PowerShell | Leave a Comment »
PowerShell is King – Read HP Bios Sensor data from WMI
Posted on March 16, 2016
I was bored in my hotel room and I ended up browsing WMI, found one cool/fun thing. I have a EliteBook 8570w and it turns out that HP uses WMI to store data and that makes it possible to read the data using PowerShell of course. Here is how: Read HP Bios Sensor data from […]
Posted in BIOS, HP, PowerShell | Leave a Comment »






