Samba 4 // Linux console // Delete machines

OBJECT2DELETE=Workstation03 ldbdel -H $SAMBA_LDB “$(ldbsearch -H $SAMBA_LDB “(sAMAccountName=$OBJECT2DELETE)” dn | grep -v ‘^#’ | head -n 1 | grep ‘dn:’ | sed ‘s|dn:\ ||’ | grep ‘DC’)” Advertisements

UBUNTU // Handle old kernel mess

Automatic: dpkg-reconfigure unattended-upgrades vi /etc/apt/apt.conf.d/50unattended-upgrades //Unattended-Upgrade::Remove-Unused-Dependencies “false”; —> //Unattended-Upgrade::Remove-Unused-Dependencies “true”; By hand: apt install byobu purge-old-kernels or apt autoremove –purge

WSUS | update file storage cleanup

You are facing the following phenomenon: Your WSUS shows you that your clients need updates and that there is proper contact between clients and WSUS but clients say that they don’t need any updates. Check your \WSUS\WSUSContent volume. Maybe older update files left no space on device. How to cleanup? Follow the rules: ;) *Close […]