Wrap windows related imports in a try/except to properly handle module loading.
Code formatting, logic simplification, fewer local variable.
Merge pull request #6399 from s0undt3ch/hotfix/win-useradd-imports

Wrap windows related imports in a try/except to properly handle module loading