Folks, Thanks so much … providing this parameter fixed the issue.
One more (minor) thing I hit with my script. I want to have the option to comment/uncomment account that I am interested
I am using ‘real’ account like this:
Account = "vhabhsabjoe"
#Account= "vhabhsabnick"
x = subprocess.call('net user /domain Account', shell=True)
but it failed to pass Account to sub process. Sounds like my syntax is wrong …
Here’s the error:
python WhileLoop_account.py
The request will be processed at a domain controller for domain v01.med.va.gov.
The user name could not be found.