Johan Arwidmark
Blogs, Articles, and Posts
Cloning Hyper-V VMs with PowerShell
(deploymentresearch.com)
Unlike when using Windows Admin Center to manage your Hyper-V VMs, Hyper-V Manager, nor the built-in
By: Johan Arwidmark submitted:Mar 1 2024
Unlike when using Windows Admin Center to manage your Hyper-V VMs, Hyper-V Manager, nor the built-in
cmdlets, offer any native VM cloning function. But with a bit of creative scripting, it's certainly doable. Here is a script that clones a virtual machine in Hyper-V: Unlike when using Windows Admin Center to manage your Hyper-V VMs, Hyper-V Manager
By: Johan Arwidmark submitted:Mar 1 2024
Configuring NTFS Permissions using PowerShell
(deploymentresearch.com)
Here are some quick examples on configuring NTFS permissions using PowerShell. The first example is
By: Johan Arwidmark submitted:Apr 26 2024
Here are some quick examples on configuring NTFS permissions using PowerShell. The first example is
using the takeown.exe and icacls.exe commands driven by PowerShell, and the second example is using the takeown.exe and native Get-Acl and Set-Acl PowerShell cmdlets. Credits: Thanks to Gary Blok for showing me the Get-Acl and Set-Acl PowerShell cmdlets.
By: Johan Arwidmark submitted:Apr 26 2024
Detecting Wired, Wireless, and VPN Connections using PowerShell
(deploymentresearch.com)
In a recent customer project we needed to detect whether the clients where connected via Wired,
By: Johan Arwidmark submitted:Jun 16 2022
In a recent customer project we needed to detect whether the clients where connected via Wired,
Wireless (WiFi) and/or VPN. This was a decent sized environment, about 50K clients, with hardware models from both HP, Dell, and Lenovo. The existing code I had did not work across all the hardware, so I reached out to the ConfigMgr community, and got some great tips...
By: Johan Arwidmark submitted:Jun 16 2022
Duplicate Drivers from a ConfigMgr Boot Image
(deploymentresearch.com)
When creating new boot images in ConfigMgr, you often want to copy drivers from an older boot image.
By: Johan Arwidmark submitted:Oct 18 2024
When creating new boot images in ConfigMgr, you often want to copy drivers from an older boot image.
If you have many drivers added, it's way quicker to do that in PowerShell compared to comparing drivers in the boot image drivers tab.
By: Johan Arwidmark submitted:Oct 18 2024
Find Scheduled Tasks via PowerShell
(deploymentresearch.com)
This morning I needed to find which scheduled task that ran a specific PowerShell script, and also
By: Johan Arwidmark submitted:Apr 28 2023
This morning I needed to find which scheduled task that ran a specific PowerShell script, and also
which username that was configured to run the task. While the Get-ScheduledTask and Get-ScheduledTaskInfo cmdlets does retrieve detailed information about schedule tasks, they don't reveal the information about the username. Good old schtasks.exe to the rescue. The Script This [...]
By: Johan Arwidmark submitted:Apr 28 2023
Get Action Command Line from Scheduled Task using PowerShell
(deploymentresearch.com)
This week I had to find out the command line of a scheduled task from a few hundred machines, to
By: Johan Arwidmark submitted:Sep 15 2023
This week I had to find out the command line of a scheduled task from a few hundred machines, to
make sure they had received the correct task, deployed from a Group Policy. Well, PowerShell to the rescue. Here is a small PowerShell snippet that will return the command line from a give task:
By: Johan Arwidmark submitted:Sep 15 2023
New PowerShell Command Parameters in ConfigMgr 2403
(deploymentresearch.com)
Here is a list of the Configuration Manager (SCCM) PowerShell module changes in version 2403. So far
By: Johan Arwidmark submitted:May 3 2024
Here is a list of the Configuration Manager (SCCM) PowerShell module changes in version 2403. So far
only the Save-CMSoftwareUpdate changes has been documented, but I have found a few more changes when poking around in the 2403 PowerShell module. Here is a list of the Configuration Manager (SCCM) PowerShell module changes in version 2403.
By: Johan Arwidmark submitted:May 3 2024
Remove Readonly Attribute from All Files in a Folder using PowerShell
(deploymentresearch.com)
When working with content copied from an ISO file, like the Hydration Kit ISO, you'll find that the
By: Johan Arwidmark submitted:Jul 21 2023
When working with content copied from an ISO file, like the Hydration Kit ISO, you'll find that the
files are being marked as read only after being copied from the ISO to a folder. Like the CustomSettings_DC01.ini shown in the below example. The Script To remove the Readonly attribute on all the files, you can [...]
By: Johan Arwidmark submitted:Jul 21 2023
Using Get-Date in PowerShell for Multiple Languages
(deploymentresearch.com)
In a recent project I was collecting client health data across machines in multiple regions, all
By: Johan Arwidmark submitted:Jun 23 2023
In a recent project I was collecting client health data across machines in multiple regions, all
with different cultures/languages configured. As part of the collection, I was adding in a date column in my report via PowerShell. I was using the Get-Date command to get the current date, and then applying the native format options
By: Johan Arwidmark submitted:Jun 23 2023
Projects, Scripts, and Modules
Capture Videos from Hyper-V VMs using PowerShell
(deploymentresearch.com)
In a recent project I was deploying hundreds of VMs across a large set of Hyper-V Hosts, and I
By: Johan Arwidmark submitted:Jun 30 2023
In a recent project I was deploying hundreds of VMs across a large set of Hyper-V Hosts, and I
needed to capture the screen output of each VM for documentation and troubleshooting purposes. Long story short, here is a PowerShell script that will capture still images from the screen of each Hyper-V VM
By: Johan Arwidmark submitted:Jun 30 2023