Clear Cached Credentials With the cmdkey and PowerShell

Cached credentials make users’ lives easier, but they can be a security issue in Windows if a device falls into the wrong hands. IT can manage them on a large scale with PowerShell. Users like cached credentials because they are convenient and keep them from having to type in their login information every time they access their devices. For IT, […]

Read more

How to Accurately Enumerate Windows User Profiles With PowerShell

When trying to enumerate all profiles, you need a script that can account for a variety of scenarios. An everyday task that many admins must perform when working with both Windows server and client operating systems is listing all user profiles. A user’s profile is the usual place that every installed application, as well as Windows itself, places files and […]

Read more

Know How to Build a Logging Function in PowerShell

Keeping tabs on what a script is doing is critical for monitoring and debugging. Monitoring a script can be done in many different ways, but it is usually dependent on how it’s being executed. If a script is invoked interactively, meaning directly from the console using techniques such as Write-Verbose, Write-Information or Write-Host, it is useful because each command can display messages on the console […]

Read more

Learn to Code or Else: An Information Technology Professional’s Guide

System administrators and developers must come to the table and learn each other’s jobs, or they may find themselves without a job. Are you manually creating new virtual machines? Are you going into the Active Directory Users and Computers tool and creating, modifying or resetting passwords? If so, you may be looking for a new job in 5 years. In […]

Read more

Here’s How to Create PowerShell Functions for the Pipeline

By purposefully building PowerShell functions for the purpose of using the Pipeline, our functions can interact with each other in an easy to understand manner. PowerShell allows you to create functions that have a number of different purposes. Functions allow the scripter to combine like-code into building blocks which can then be used to build even larger functions or scripts. […]

Read more

Measure Objects in PowerShell with the Measure-Object cmdlet

According to the help content, Measure-Object ‘calculates the numeric properties of objects, and the characters, words, and lines in string objects, such as files of text.’ This is a vague description of what this command can do, so let’s dive into that and go over a few contexts where using the Measure-Object command might make sense. Peter Drucker, a legendary […]

Read more

PowerShell Transcript – Record a Session to a Text File

The Start-Transcript and Stop-Transcript cmdlets let you record all of your activities in the PowerShell console to a text file. This allows you to review your entire PowerShell session. If you’re like me, you’ve probably got a ton of PowerShell scripts and modules you use on a daily basis. These scripts perform a number of different actions. Remembering what syntax […]

Read more
1 2 3 4 5 50