I'm looking for best practices regarding using Sysprep in a domain environment. I made sure that BitLocker was disabled and removed my antivirus, but I left the machine on the domain before running Sysprep. After deploying my WinPE image, everything started off fine, but post-reboot, I encountered issues with GPU updates and an LDAP binding error. Should I be removing the machine from the domain before running Sysprep? Any advice would be appreciated!
5 Answers
Make sure to clean up the Active Directory of the old computer account after removing it. And remember, allow some time for replication!
Yes, it's a good idea to remove the machine from the domain before running Sysprep. This is generally considered best practice.
Running Sysprep on a machine that’s already domain-joined can lead to failures. I had to redo an image because previous updates caused Sysprep to fail miserably. If you decide to use Sysprep, keep your audit mode procedures simple and follow a structured approach.
From my experience, I always remove machines from the domain before doing Sysprep and I've never faced issues doing it that way. It's definitely the safer route, especially if you're capturing images.
When you use Sysprep with the generalize option, it will automatically remove the machine from the domain. However, for optimal results, it's better to Sysprep in a workgroup environment, which is the default when setting up Windows. If you're deploying, consider using an unattend.xml file to automatically join the computers to the domain later.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures