Click to See Complete Forum and Search --> : How to get Windows NT system information


Marlboro
07-25-2003, 05:06 AM
Hi!
I wanna get Windows NT/2000 user name(e.g Administrator or etc) from browser using javascript or any other way..Is it possible?

Please reply as soon as possible....thanks in advance

truly
Shahzad Badar

Khalid Ali
07-25-2003, 08:27 AM
If you want to get this information from client side(using a browsers) that points to possible foul play.
Hence I am sure you won't get any help there.However,if you wanted to know this using a hard code programming language then there are several ways to get it.Here are is one using Java


public class RunExec {
public RunExec() {
//print system properties
java.util.Properties prop = System.getProperties();
prop.list(System.out);
java.util.Enumeration enum = prop.keys();
while(enum.hasMoreElements()){
String property = String.valueOf(enum.nextElement());
System.out.println("["+property+"] = ["+System.getProperty(property)+"]");
}
}
public static void main(String[] args) {
RunExec runExec1 = new RunExec();
}
}