Get list of inactive computers (powershell)

This script will query AD and retrieve all computers that have not authenticated in 90 days, it then exports the results to the stale_computers.csv file.


PHP round, ceil and floor functions

I was working on a script this morning that required me to learn a little bit about PHP functions round, ceil and floor. The script below is just a simple demonstration of exactly what each does.

  This code returns the following:1.28 round function answer = 1 ceil function

Disable Smartcard Enforcement (Windows)

To disable the smartcard requirement for users to login boot the PC into Safe Mode, logon as Administrator, and run Regedit. The following Registry key enables Smart Card enforcement: HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\system “SCForceOption”=dword:00000001 To disable enforcement, delete SCForceOption or set the DWORD = 0 , “SCForceOption”=dword:00000000