https://bugs.winehq.org/show_bug.cgi?id=56434
Bug ID: 56434 Summary: Error calling COM object WScript.Network to get username, hostname and domainame Product: Wine Version: 9.0 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: blocker Priority: P2 Component: wshom.ocx Assignee: wine-bugs@winehq.org Reporter: rbenrax@gmail.com Distribution: ---
Python pywin32 example to reproduce:
import win32com.client
def main(): network = win32com.client.Dispatch("WScript.Network") print(network) username = network.UserName hostname = network.ComputerName domain = network.UserDomain
print(username) print(hostname) print(domain)
if __name__ == "__main__": main()