Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static String server = "****";
- private static String username = "**\Administrator";
- private static String password = "pass";
- private static String namespace = "root\cimv2";
- SWbemLocator locator = new SWbemLocator(server,username,password,namespace);
- SWbemServices services = locator.connectServer(); //this line throws exception
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement