Get Windows Logged in Domain Name Info from Java
807603Jan 9 2008 — edited Jan 12 2008I am working on Core Java Swing Project running on Windows. The version of Windows can be anything from 98, 2000, XP, NT etc. My system needs 3 things to login to it namely: Username, Password, Domain
Is there any way to get Java to retrieve the windows domain name I logged into
Please note that its not a web application, but its a standard Standalone Java Program.
I have tried System.getProperty("user.name"); to get the username I have used to login to. SImilarly I require the domain name value used to login to the machine.