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 »
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 »
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 »
We are in the process of migrating our DPM servers (again!) and just thought it would be handy to share how you can protect one server with multiple DPM servers. The way to do this is with SetDPMServer.exe and the -add switch. SetDPMServer.exe can be found in your DPM Agent… Read more »
Recently we had to connect an untrusted Domain Controller to our DPM instance, it’s pretty straight forward and heres how to do it: Install the DPM Agent on the server you want to protect, agents can be found in C:\Program Files\Microsoft System Center 2012 R2\DPM\DPM\agents\ on the DPM server. Once… Read more »
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 »
Hi, Today I found myself needing to run a PowerShell command from the command line. I ran powershell /? and had a look at the switches and there is a -Command switch. My first attempt to use the switch looked like:
Hello! Here’s a quick script that lets you query an SQL Database, store the results in an array and export to CSV. The script uses the .NET SQLClient class for connecting to the database and stores the results in a DataTable object. The connection string uses SQL authentication for the… Read more »
Hi Again, Recently we’ve been fed up with Deployed Printer Connections through Group Policy and have decided to map printers using a PowerShell logon script. We wanted printer additions, removals and defaults to be based on AD groups, and for the script to work with PowerShell 2.0. Our clients are… Read more »
Hi, As part of the MDT build process we set a couple of Registry Keys to tell us the status of the build (I.e in build or finished build) For logging purposes I retrieve the value of 2 keys from the registry, however when running the following command I get… Read more »