Search for Windows 7 Systems, Disable, Move and Remove from SCCM
This script will search AD for any computer objects that match the OperatingSystem value of Windows 7. It will then disable those systems and move them to a container called “To Be Removed” at the root of the domain. The second part imports your SCCM module, mounts the drive and then removes those same objects […]