Quantcast
Channel: quick tips | Adam the Automator - DevOps, Automation, PowerShell
Browsing latest articles
Browse All 32 View Live

Discover Recent ConfigMgr Software Metering Data on a Client

Here’s a quick post but a useful one. Today, I needed to get a quick idea of what ConfigMgr metering rule data a particular client had generated recently. I have my Software Metering Usage Report Cycle...

View Article



The Powershell If Statement

Conditional constructs like if/then have been in programming languages for decades. Eventually, if a script or application goes past a couple of lines you’re going to ultimately need to make a decision...

View Article

Image may be NSFW.
Clik here to view.

Quick Way to Get Your Operating System

  Here’s a great way to get the operating system name, service pack and architecture of a local computer. You can also use the -Computername parameter to run this on remote computers as well! This tiny...

View Article

Image may be NSFW.
Clik here to view.

Monitor Time and Add a Timeout to Your Long Running Powershell Process

Adding a Timeout to Your Long Running Powershell Process Ever started a process in Powershell that takes forever only to just end up staring at the last line you put in your Write-Host (shame!) or...

View Article

Image may be NSFW.
Clik here to view.

Looping through a hash table like an array

Coming directly from scripting on the web with PHP I thought a Powershell hash table was simply another array; an associate array. I mean, it’s just an array just with some key/value pairs instead of...

View Article


The Powershell Array: Creating, Reading and Modifying

The Powershell array is one of those staples of scripting I use in nearly every script I write. It’s a very easy way to store multiple variables inside a single container. Let’s see how we can use...

View Article

Image may be NSFW.
Clik here to view.

Powershell’s Answer to VBscript’s Msgbox

Remember Vbscript?  I do but I’d rather not.  I’ll give VBscript credit though.  It got me through a lot of problems that I otherwise had to have written batch files (GASP!) to accomplish.  VBscript...

View Article

Image may be NSFW.
Clik here to view.

Powershell’s Comparison Operators: What’s -eq, -ne, -ceq and -cne?

Coming from a software development background the first instance I had a “Huh?” moment was when I first saw Powershell’s comparison operators eq, ceq, cne, etc.  All other languages have comparison...

View Article


How to Find Monitor Size for a Local or Remote PC

Here’s a pretty cool script that will get you the monitor size for a local or remote device via WMI. If will work with both single monitor devices as well as multiple monitors. param($ComputerName =...

View Article

Browsing latest articles
Browse All 32 View Live




Latest Images