Posts

IT Tools I Use Everyday

FreeFileSync ( FreeFileSync.org ) Free file sync is a fantastic tool for copying files from one place to another. The ability to pause, and resume the copy is game changing. It also tends to be faster than windows file copy by only copying what's different between your directories and by using features in windows that not even windows file copy uses. I'm only scratching the surface of what this software can do so please go check it out. WizTree ( DiskAnalyzer.com ) WizTree will quickly scan a folder location (yes remote locations as well) and list all the child files & folders by size in a tree format allowing you to quickly and easily see what the largest (and most problematic) files that are on a PC or server. Microsoft PowerToys ( Microsoft.com ) Microsoft PowerToys is a small toolkit that simply makes your Window's experience better. Its always being updated with new features, so defiantly check out the website. I use one or more of the tools in this kit LITERALLY e...

User accounts set to expire

Use the following PowerShell to find User's expiration status & dates. The Attribute: The LDAP attribute we are interested in here is " AccountExpires ". This field contains a time string formatted in NT Epoch time. (See "Accounts that will Expire" below  to convert it.) You can use the following PowerShell to select it: Get-ADUser -Identity "JHeisler"  -Properties ("AccountExpires") Accounts set to "Never" expire: If the  " AccountExpires "  attribute contains " 9223372036854775807 " or " 0 " that indicates that the user's account is set to never expire. Accounts that will expire: If an account is set to expire, (i.e. " AccountExpires " attribute does not contain  " 9223372036854775807 " or " 0 ") We can convert it using w32tm.exe with the /ntte [AccountExpires] argument. See Below: L...

Managing a Minecraft Server With Windows PowerShell.

So, my friends and I run our own little MC Server and we decided to automate Boot up and shutdown. Thus I was tasked with writing a .ps1 file to do just that. I Present to You  MCServerMgr.ps1!  This file manages the MC server based on the time of day. Basically, if the server stops 9am-12pm, It'll Reboot the server. If the server stops from 12pm-8:59am, It shuts down the host PC. The times were simply chosen because we decided 9:00am was a good time to start the server, and midnight was a good time to stop it. Here Is the Code I Wrote: (I recommend copy and pasting this into PowerShell ISE, VS Code, or Notepad++)