Comparing files with Powershell

I know I put something about graylog but in reality I like living off the land, basically you can compare hashes of files in every directory. repeat that same loop. Here is a script that demonstrates how to get the hash of a file using PowerShell and then compare it to a previously stored hash: […]

Read More Comparing files with Powershell

if else Statements in Powershell

Coming from another Language if else Statements with Powershell is pretty straight forward. Lets just see an example for syntax. $eggs = 14 if ($eggs -eq 12) {“You have exactly a dozen eggs.”}elseif ($eggs -lt 12) {“You have less than a dozen eggs.”}else {“You have more than a dozen eggs.”} Something different than other languages […]

Read More if else Statements in Powershell

Filtering OBJECTS in Powershell

Hey there, When we think of filtering an Object basically that’s just a fancy way to say I am going to look for an answer about a certain Object. Let’s just say You want to know how to look for the disable accounts in the system? The answer would be as follows: What is happening […]

Read More Filtering OBJECTS in Powershell

Strings in powershell

So First lets start by looking at what is a String in Powershell? The Technical definition is basically a datatype that comes from the System.Object. That’s a concept to hard to grasp basically a group a of letters put together would form a string. so whenever you see the double quotes or single quotes with […]

Read More Strings in powershell

Array LIST in Powershell

Hi there! I was doing my research on Array List in Powershell. Lets start by Google what is an Array List or Examples of Array List in Powershell that way you can understand them better. Here are some of my results: https://adamtheautomator.com/powershell-aray/ https://www.spguides.com/powershell-arraylist/ https://learn.microsoft.com/en-us/powershell/scripting/learn/deep-dives/everything-about-arrays?view=powershell-7.3 There are also books on the results and a few more […]

Read More Array LIST in Powershell

Arrays in Powershell.

Oh snap! Stuff are getting interesting. First What is an Array. In powershell or most other languages arrays basically it is a data structure that can serves as a collection of multiple items, for example if you want to organize multiple books. You will use a Bookcase right!? or some other thing. But a bookcase, […]

Read More Arrays in Powershell.

DOing Labs with Powershell

So the main reason I want to start doing labs is because I want to become really good with powershell and in order to be really good, you actually need to do stuff, so as I am writing this I am also doing at the same same time. What I mean about labs is basically […]

Read More DOing Labs with Powershell