Author's posts
Oct 27 2015
List All DNS Records with Powershell
UPDATED 6/16/2016 Thanks for the comments! Here’s a nice quick script to list all DNS records in each zone on the DNS server(includes sub-zones): From the DNS Server $Zones = @(Get-DnsServerZone) ForEach ($Zone in $Zones) { Write-Host “`n$($Zone.ZoneName)” -ForegroundColor “Green” $Zone | Get-DnsServerResourceRecord } From a Remote DNS Server $DNSServer = “servernameOrIp” $Zones = @(Get-DnsServerZone …
Jul 08 2015
vi Cheatsheet
OVERVIEW Almost every Linux distribution includes the vi text editor, and it’s usually the only text editor included in minimal installations. If you’ve never used vi, it can seem really confusing at first and can even be frustrating since you’ll need to use it to configure network settings prior to downloading another text editor such as …
Jul 08 2015
How to Configure Network Settings in CentOS 7
1 – FIND YOUR NETWORK ADAPTER Once logged in, you’ll want to enable and configure your network adapter. First, you’ll need to get the name of your network adapter(s) by running the following command: nmcli d Below you’ll see my results of running this command. My results show I have an Ethernet adaptor called ens160 and …
Jul 08 2015
How to Install CentOS 7 Minimal
1 – INSTALL OPERATING SYSTEM Select Install CentOS 7 and press Enter Press Enter to begin the installation Select your Language and click Continue Complete any items marked with the Exclamation icon. Only the Installation Destination should be marked and will be automatic partitioning by default. Click Installation Destination By default automatic partitioning is selected. Review the automatic …
May 14 2015
Search for Emails in a 365 User’s Mailbox
EDIT: Search-Mailbox has been deprecated as of April 2020 in 365. Please see my updated post that about using Compliance Search instead! Overview Often times, my posts are influenced by the questions of others in IT forums. The other day, an IT pro asked “How can I retrieve emails a 365 user sent to a certain …
Apr 28 2015
Determine If A Date Is Between Two Dates
If you need to know if a date is between two dates, you can easily figure this out by treating the date as a number and doing comparisons. This can be useful for instances where you need a script to do a different task on different months, days, years, etc. Let’s start with our first …
Feb 11 2015
Removing Trend Micro Client/Server Security Agent from Dell Laptops
Trend Micro Client/Server Security Agent 3.5.1163 Removal from Dell Laptops OVERVIEW Some Dell laptops came bundled with “Trend Micro Client/Server Security Agent” which most people will want to uninstall. I recently had to restore a Dell Latitude E6430 to the Factory Defaults. When removing the bundled bloatware, uninstalling “Trend Micro Client/Server Security Agent” froze up and I had …
Jan 06 2015
Restart Computers by OU
#RestartComputersbyOU.ps1 Import-Module ActiveDirectory $ou = “CN=Computers,DC=domain,DC=local” $computers = Get-ADComputer -Filter * -SearchBase $ou ForEach ( $c in $computers ) { Restart-Computer -ComputerName $c.name -Force }