Latest Posts Under: Scripting

I needed an easy way to do mass DNS lookups a while back, and found a script online that I modified slightly to fit my needs. Posting it below for archiving purposes.

I started playing around with the Palo Alto API a while back, and found that you could more easily do certain things through the API, versus using the Palo Alto Panorama web interface. Similar to the Active Directory tool that I build a while back, then plan is to add multiple tabs to the GUI,… Read Article →

I have been working on a Active Directory tool that makes it easier to work with users from another AD Forest. My main goal was to improve upon the horrible search function in dsa.msc by allowing free text search in real time (WinAmp “jump” style is the best example I can think of). I also… Read Article →

I was looking for this script a few days ago, but couldn’t find it. Throwing it up here for my own reference. Basically it will run a number of tests on a DC to make sure that there are no errors or connectivity issues. Just save it as a .bat file and run it with… Read Article →

I recently had to replace a lot of words inside a bunch of text files, and I found myself referencing the recursive replace script that I originally posted here. However, I thought that it could use some work, as it was annoying to have to change the word to replace manually each time I wanted… Read Article →

Continuing the short series of Active Directory (AD) scripts (Part 1, Part 2) we have one more way to do mass changes in AD, such as password resets or property changes. The below script (save as <filename>.ps1) will perform changes to an entire OU, or even a whole domain. In this example we will set… Read Article →

I am brushing up on my bash scripting skills, as I’ve only learned bash through trial and error as well as stealing code found on the Internet. Something simple that I came across is preventing unintentional file/folder removals such as the classic “rm -rf /” which will delete the entire file system in some cases…. Read Article →

Yesterday we learned how to get Active Directory (AD) usernames out of a list of full names, something that can come in handy if HR sends a long list of users that need to have their manager changed to Bob. Today we will learn how to perform mass changes using this list of AD usernames… Read Article →

I have been slacking off this month with content, so lets fix that by starting a short Active Directory (AD) scripting series. This will go over a few simple ways to handle changes to┬álarge amounts of users in AD. Our main tools will be Excel and Command Prompt or PowerShell. Let’s get started with: Active┬áDirectory… Read Article →

I needed a simple backup script that compressed a folder and saved it on a locally mounted network share. I found the following script on this Github page, which I then modified to suit my needs. I run this script daily through Cron (make sure to use bash to run it, sh does not work)…. Read Article →

Scroll To Top