G
gnja.io
HomeBlogProjectsGalleryVideosAbout
System operational
© 2026 gnja.io•About•GitHub•YouTube•RSS
Blog

Blog

46 posts in powershell

PowerShell: Reset a user's AD password
PowerShell

PowerShell: Reset a user's AD password

I cant login"My password isn't working!" ...  Can you reset it?" These words are typically heard at least once or twice a day by front line support at most places. No matter how much we try to...

Feb 4, 20161 min read
PowerShell Quick Tip: Basic use of the Switch statement
PowerShell

PowerShell Quick Tip: Basic use of the Switch statement

Why use Switch?In PowerShell you can use an if statement to compare things and determine actions based upon the result. You also can use elseif to keep comparing values until you reach a desired...

Feb 3, 20161 min read
PowerShell: Building a basic text menu system (part 1)
← Prev1...34
PowerShell

PowerShell: Building a basic text menu system (part 1)

Menus?! But...why?As I dove deeper into PowerShell years ago I started to think about ways to help those utilizing my scripts. I wrote a script that became a module that the whole team would use.In...

Feb 1, 20163 min read
PowerShell: Using the VictorOps REST API and PRTG Sensor Output
PowerShell

PowerShell: Using the VictorOps REST API and PRTG Sensor Output

What's it do?I utilized the VictorOps REST API with PowerShell to return data in a user readable format, or to use with PRTG sensors.I wanted a way to display who was currently on call via a PRTG map...

Jan 28, 20163 min read
PowerShell: Check for NetApp failed and unowned disks (CDOT)
PowerShell

PowerShell: Check for NetApp failed and unowned disks (CDOT)

Why I needed thisI received a call from a technician in another site one day to let me know that we had 3 amber lights in our NetApp cluster. While autosupport should have caught this, it didn't (one...

Jan 27, 20161 min read
PowerShell: Working with CSV Files
PowerShell

PowerShell: Working with CSV Files

Why did I want to do this?I wanted to learn how to manipulate CSV files for logging purposes as well as for part of a script I was writing to email out a different quest each day. In particular...

Jan 18, 20161 min read
PowerShell: Working with the NetApp module (part 2) 7-Mode
PowerShell

PowerShell: Working with the NetApp module (part 2) 7-Mode

A couple weeks ago I shared part of a script that enables you to separate out the connection to 7-Mode and CDOT controllers.If you missed that, check it out!Today I will share the part that expands...

Jan 15, 20161 min read
Get VMware Guest OS List With PowerCLI
PowerShell

Get VMware Guest OS List With PowerCLI

What it does...This function I wrote will return an object which contains the unique name of each OS for guests on a vCenter server. It will also show you the total number of VMs with that OS.What it...

Jan 15, 20161 min read
PowerShell: Working with the NetApp module (part 1)
PowerShell

PowerShell: Working with the NetApp module (part 1)

I've been tasked with heading up a storage migration where I am currently employed.We have both 7-Mode and CDOT systems here (NetApp), and I wanted a way to run different functions with varying...

Dec 31, 20151 min read
PowerShell: Get-DCDiag script for getting domain controller diagnostic information
PowerShell

PowerShell: Get-DCDiag script for getting domain controller diagnostic information

I wrote a script that will run DCDiag on domain controllers that you specify or all DCs in your environment. I will be working to improve the script as much as I can. This was a way for me to...

Dec 29, 20151 min read