Convert ISO and WIM to VHD with a module

Convert-WindowsImage.ps1 is a very popular method to create VHD’s with. However it’s not a module, and in it’s current form cant be added to one. So I have started a new project on GitHub called WindowsImageTools and posted the results to the PowerShell Gallery. It has a few functions so far. Convert-Wim2Vhd, to do the work,  and New-UnattendXml because it hate having to edit XML to make minor changes. The resulting XML is universal in that it works on both 32 and 64 bit and will do a silent install (currently on Volume Media only). Then it auto-logs on the Admin and run […]

Store Secured Password in PowerShell Script

Automation is awesome, but what if you need to run a script with elevated privileges?   If you are following security best practices then the account you login with most likely doesn’t have the required elevated privileges.  Storing your password in plain text in your scripts is no good either.  So what do we do?  There are several options and each has there place, but I’ll show you my favorite below.  Check out the full article by clicking on the link below.  While you are there check out some of my other posts, the script repository and the resource page. Store […]

Basic Exchange Monitoring

Exchange Basic Monitoring.

Hello!  This is the first time I’ve posted for anyone outside of my own powershell blog site and I just want to thank for everything they do for our community.  I think most of you would agree that this site is one of the best PowerShell sites out there today and I am grateful for the opportunity to reach so many PowerShell people.  OK enough with the touchy-feely stuff. If you’ve been a Sys Admin for any extended time then you’ve probably had your fair share of run-ins with Exchange.  Whether you are a full-time Exchange Admin or […]

Update – What’s your favorite PowerShell Editor?

On june 9th, I’ve started a survey about the most popular PowerShell editor around: What’s your favorite PowerShell Editor? I have some results for you now, and it’s quite clear. Till now PowerShell ISE is the most popular editor. Well done Microsoft! But please keep sending in your votes, let’s make this the ultimate survey! Vote here: Survey Related posts: Working on a new PowerShell module: ProtectedData What’s your favorite PowerShell Editor? PowerShell and System.Nullable<T> Tracking down commands that are polluting your pipeline

Automating with Jenkins and PowerShell on Windows

Take a minute think about how many PowerShell scripts you have written for yourself or your team. Countless functions and modules, helping to automate this or fix that or make your teams lives easier. You spend hours coding, writing in-line help, testing, packaging your script, distributing it to your team. All that effort, and then a lot of the time the script is forgotten about! People just go back to doing things the manual way. I put this down to being out of sight, out of mind. Users who do not use the command line regularly will quickly forget about […]

Tracking down commands that are polluting your pipeline

In a recent forum post, someone was having trouble with a function that was outputting more values than he expected. We’ve all been there. He was having trouble debugging this, and I decided to see if I could find a way to narrow down the search in an automated fashion, rather than having to step through the code by hand. The full article and code are up on my blog at Related posts: Saving Passwords (and preventing other processes from decrypting them) PowerShell Gotcha: UNC paths and Providers Working on a new PowerShell module: ProtectedData Proxy Functions for Cmdlets […]

Working on a new PowerShell module: ProtectedData

I’m working on a new module intended to make it easier to encrypt secret data, and share it among multiple users and computers in a secure fashion. It’s not quite ready for “release” yet, but I’ve made it public on GitHub anyway, so I can start to get feedback early. Check out my original blog post (link) for details. The GitHub repository is here. Related posts: PowerShell Gotcha: UNC paths and Providers PowerShell and System.Nullable<T> Cmdlets or Advanced Functions? Tracking down commands that are polluting your pipeline

SAPIEN’s new WMI Explorer Released

We all know that working with WMI/CIM can be frustrating. So little of it is documented, and it can be tough to find the class that has the exact info you need. A long time ago, SAPIEN released a very nice WMI Explorer tool that, recently, was taken offline. The reason is that the company was producing an all-new, from-scratch replacement – and it’s now available. Their new approach is pretty interesting. Rather than just live-browsing the local WMI repository or a remote computer’s repository, the tool can now go through the repo and actually create a local cache. That […]

[UPDATED] Review: SAPIEN VersionRecall

I recently played around with SAPIEN’s VersionRecall, and thought I’d share a bit about the experience. As a note, SAPIEN provided me with a license key to use. VersionRecall is advertised as a simple, single-user version control system “for the rest of us.” There are no servers, no databases, and nothing complex, according to the marketing copy. Setup is quick – a 3-screen wizard and you’re done. Installation took under a minute. When you first launch the product, it attempts to find all the places on your computer where you might store scripts, so that it can connect those to […]

Saving Passwords (and preventing other processes from decrypting them)

This question is nothing new: “How do I save credentials in PowerShell so I don’t have to enter a password every time the script runs?” An answer to that question has been in PowerShell for a very long time: you use the ConvertFrom-SecureString cmdlet to encrypt your password, save the resulting encrypted string to disk, and then later reverse the process with ConvertTo-SecureString. (Alternatively, you can use Export-CliXml, which encrypts the SecureString the same way.) For example: # Prompt the user to enter a password $secureString = Read-Host -AsSecureString "Enter a secret password" $secureString | ConvertFrom-SecureString | Out-File -Path .\storedPassword.txt […]

Getting a list of Windows Language Locales with Windows Powershell

I shall never profess to be a developer.   I just like finding answers.   One of the challenges I had today was finding a list of Language locales in Windows.   I poked about and found an online list posted which could help me out with MDT and programming in the Locales for Non english versions of Windows and Office 365 cached downloads. The problem was the list links from Microsoft weren’t current.   I’m certain there are updated versions (if you have them, email them please or add them to comments) but I went for a programmatic solution.     But I wanted to […]

WMI Explorer

This is a PowerShell-based WMI Explorer tool created by Marc van Orsouw (aka /\/\O\/\/). His Web site has been down for ages, but Thomas Lee was helpful enough to post a copy of this, and we’re hosting it here as a backup against further unavailability. Download WMI Explorer No related posts.