Publisher review:Get user info on Windows, for current user script demonstrates how to query the domain controller if there is one. Calling win32net.NetUserGetInfo(None, win32api.GetUserName(), 1) works for users logged in to the local machine, only, but fails for domain users. This code demonstrates how to query the domain controller if there is one.
Get user info on Windows, for current user 1.0 is a Python script for Networking Tools scripts design by Wolfgang Strobl.
It runs on following operating system: Windows.
demonstrates how to query the domain controller if there is one.
Operating system:Windows