Comparing Objects using JSON in PowerShell for Pester Tests
Recently I spent the good part of a weekend putting together Pester Tests (click here if you aren’t familiar with Pester) for my LabBuilder PowerShell module- a module to build a set of Virtu… Source:...
View ArticleComparing Objects using JSON in PowerShell for Pester Tests
PowerShell, Programming and DevOps Recently I spent the good part of a weekend putting together Pester Tests (click here if you aren’t familiar with Pester) for my LabBuilder PowerShell module- a...
View ArticleServer Uptime
Richard Siddaway's Blog Its easy to get the last boot time of a Windows machine but how do you get the uptime function Get-Uptime { [CmdletBinding()] param ( [string]$ComputerName = $env:COMPUTERNAME...
View ArticleFirst release of AutoRuns module
>_ You may remember the excellent PowerShell Security series from PowerShell Magazine where I presented a Get-PSAutoRun function to investigate malware persistence ala “Sysinternals autoruns”. I’ve...
View ArticleFirst release of AutoRuns module
You may remember the excellent PowerShell Security series from PowerShell Magazine where I presented a Get-PSAutoRun function to investigate malware persistence ala “Sysinternals autorunsR… Source:...
View ArticleOpen source PowerShell and OMI
Richard Siddaway's Blog OMI – the Open Source CIM server is available on github https://github.com/Microsoft/omi This appears to be a later version than currently shown on the open group web site...
View ArticleCreate a GPO for PowerShell 5.0 settings
I’ve written the following piece of code to automate the creation of a Group Policy that would configure all the new PowerShell 5 settings – ScriptBlock Logging, Protected EventLog and … Source: Create...
View ArticleSafely storing credentials and other things with PowerShell
FoxDeploy.com Hey guys, This post is mostly going to be me sharing an answer I wrote on StackOverflow, about a technique I use in my PowerShell modules on Github to safely store credentials, and...
View ArticleBuilding Better PowerShell Dashboards
FoxDeploy.com First off, YUUGE props to Flynn Bundy for shining lights on the possibility with his post Making DSC Beautiful and @Neeco of HTML5Up.com for these gorgeous HTML5 and CSS templates. If...
View ArticleBreaking CIM sessions
Richard Siddaway's Blog A CIM session is analogous to a PowerShell remoting session but for CIM based cmdlets – the CIM cmdlets themselves and any CDXML based cmdlets e.g. the networking cmdlets By...
View ArticlePowerShell Summit: CIM Deep Dive
Richard Siddaway's Blog A big thank you to everyone who attended my Summit pre-conference workshop. The interaction was great and I really enjoyed it even though I was feeling the efffects of my...
View ArticleCreating a Robust Services Function
Fantastic script as usual… Learn Powershell | Achieve More I had a time when I needed to know whether or not a service had triggers, which would mean that the StartMode could be Auto (Triggered Start)...
View ArticleSQL Code for SCCM Status Message Viewer
FoxDeploy.com I found myself juggling many different Status Message views in SCCM to try to keep on top of various messages that would arise in one environment. So I did what anyone would do, and...
View ArticleDeployImage Module for PowerShell 5
Energized About PowerShell This is a module I started to put together after the current MVP Summit when I decided I wanted to put together Nano Server. The current Technet documentation at the time...
View ArticleGetting Accurate File Versions
Rohn's Blog I used to think that getting a file version in PowerShell was a fairly simple process: PS> (Get-Item c:windowssystem32mshtml.dll).VersionInfo.FileVersion 11.00.9600.16410...
View ArticleCreating DNS records
Richard Siddaway's Blog Following on from my previous post about creating a reverse lookup zone in DNS here’s a function to create records in that zone. The function takes an IP address and name (of...
View ArticleBlocking Mixed Exchange 2013/2016 DAG
EighTwOne (821) In the RTM version of Exchange 2016, there’s an issue in that it is allows you to add Exchange 2016 Mailbox servers to Exchange 2013 Database Availability Groups, and vice-versa. As...
View ArticleWorking with EPPlus and PowerShell
SqlChow I recently worked on a requirement, where the end user wanted to convert Excel files into tab-delimited text files. In my head I was like, this is easy: “PowerShell FTW! Yay!”. The reason for...
View ArticleCheck UserID for Differences
What prompted me to look for this solution was an error we received while trying to run - Get-CSUser TBOLTON I received this error - Management object not found for identity "tbolton". + CategoryInfo :...
View ArticleWhy Should I Learn PowerShell? Real World Example Saves the Day!
Posted on the Hey Scripting Guy BLOG. Why Should I Learn PowerShell? Real World Example Saves the Day! Some real life issues that came up. I was very happy to have been asked to contribute. Click On...
View Article