If you work in IT, you have most likely stumbled upon a CSV-file. CSV stands for Comma-separated values. You can read more about CSV-files here. Two IT-related examples of what data a CSV-file can contain would be a list of AD-users or network traffic. I'll use network traffic as my example. I'm not going to … Continue reading Reading CSV-files in PowerShell
Time for a new post! This time I figured I could do a write-up on how to filter data in PowerShell and make it display the information you want to see. Please take note that everything in this post is done with PowerShell.exe, and some examples might not work in ISE or VSCode. In PowerShell … Continue reading Filtering and using Comparison operators in PowerShell
PowerShell is full of objects. And dealing with different types of objects is something you'll spend a lot of time doing if you want to get into PowerShell. But what really are objects in PowerShell? The answer is "pretty much everything". Every command you run in PowerShell returns an object, or an array of objects. … Continue reading What are Objects in PowerShell?
PowerShell commands use a verb-noun syntax. This makes understanding and remembering (and guessing) PowerShell commands easier. Actually, PowerShell has a list of approved verbs. These can also be viewed in the Shell by running Get-Verb. (The verb list that Get-Verb returns might not be complete. For an updated list of approved Windows PowerShell verbs with … Continue reading How to discover PowerShell Commands
PowerShell provides a great way of making the shell "your own" by using profile scripts. These are basically a .ps1 script that loads every time you open the shell. I usually customize the shell background, change the starting directory, load modules or add custom functions to my profile. I'm gonna show you how to get … Continue reading Creating your own PowerShell profile