Day: December 14, 2020

Linux: Shell Script to Reboot Remote Devices Daily

Set Variables remoteDevice=10.25.0.20username=adminpassword="PASSWORDHERE" Install sshpass if it doesn't exist if ! sshpass -v sshpass &>…

How to Fix Duplicate Computer Account Names Issue in Active Directory

Automatic cleanup: # disableDuplicateComputers.ps1 # Version 0.0.1 $defaultPasswordPeriod=30 $disabledComputersReport='c:\disabledComputersReport.csv' function disableDuplicateComputers{ param( $lastLogonDaysExceeding=30, $disabledComputersReport='c:\disabledComputersReport.csv' )…

PowerShell: Move Computer Objects in Active Directory

Version 2 # MoveComputers.ps1 # Version 0.0.2 # Obtain credentials being passed by Jenkins #…