Secure PowerShell Scripting in Azure AD

      No Comments on Secure PowerShell Scripting in Azure AD

Are you keen on automating tasks in Azure AD but concerned about the security risks associated with storing passwords in your script files? Fret not! You have the power to craft PowerShell scripts with delegated permissions to Azure AD, eliminating the need to store sensitive service account passwords within the… Read more »

Files in DFSRoots folder using storage

      No Comments on Files in DFSRoots folder using storage

Bit of a weird one today. We recently migrated some data to OneDrive and as a result the corresponding DFS Namespace Folder was no longer required, so I deleted it thinking that will prevent it being accessed. The folder was still shared, but at a different path than the namespace…. Read more »

Understanding PowerShell For Each: A Comprehensive Guide

PowerShell, with its powerful scripting capabilities, offers a wide array of functionalities to automate tasks and streamline processes. Among its many features, the ForEach loop stands out as a crucial construct for iterating through collections of items. Whether you’re a beginner or an experienced user, understanding how to effectively use… Read more »

Send Key combinations to a VM through the Host OS with WMI

Hi, Recently I posted an article on how to send key strokes and text to a Hyper-V virtual machine through use of WMI on the host computer. Since that article was written I’ve learned of a way to send any key combinations through to the VM. For example if you… Read more »

Adding Custom Properties to the MDT Database – Extending the Schema

Heyo, There’s been a couple of occasions where we’ve needed to store additional settings in the MDT Database, for example storing AD groups, or the OU that the computer was last in before rebuilding. The process is straight forward, using SQL Server Management Studio, open up the MDT Database, edit… Read more »

List MSI paths from Software Installation Policies

Hey, We have 1000’s of MSI’s assigned through group policy and often need to work with the file paths in PowerShell, here’s a function that returns the file path of the MSI from the Software Installation GPO.

This function will return the MSI path and MST path. It will… Read more »

Invoke a command using VB.Net and WMI

      No Comments on Invoke a command using VB.Net and WMI

Hi Again, I’ve been looking into different ways of invoking commands on remote machines. Here’s one that can be used in VB.NET by using WMI. First add a reference to System.Management and reference it at the start of your project:

Then add the guts, the code that calls WMI… Read more »