Tag Archives: Snippet

PowerShell command line menu

I’ve been working on a server build script to assist our server team in automating their server build outs. The objective was to select which environment the server is being built in (Alpha, Dev, etc.) then the type of server … Continue reading

Posted in Programming | Tagged , , , | Leave a comment

PoSH: Connecting to an Remote Domain

DISCLAIMER: The following is pretty much the worst way to do this when it comes to security. Putting plain-text passwords into anything is always a bad idea and I highly recommend using the method described by TechNet at this link … Continue reading

Posted in Programming | Tagged , , , , | Leave a comment

Getting fancy with Write-Progress

Recently I watched a great CBT Nugget by Don Jones (seriously the best trainer/writer out there for PoSH) called Powershell Toolmaking and Scripting.  A lot of it was review, but I did pick up a few nuggets along the way that … Continue reading

Posted in Musing, Programming | Tagged , , , | Leave a comment

Using OpenFileDialog in PowerShell

How many scripts have you had to had a line in that declares a file path? How many times has that path changed? Some scripters like to use a host prompt to ask for the variable, or they declare it … Continue reading

Posted in Programming | Tagged , , | 1 Comment

The debug database switch snippet

Not long into this whole project it became clear that while I was making changes to my PowerShell inventory scripts and updating the database, there were also people who were needing to look at the data while I was making … Continue reading

Posted in Programming | Tagged , , | Leave a comment