SHARE
TWEET

Untitled

a guest Aug 12th, 2016 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private static String server = "****";
  2. private static String username = "**\Administrator";
  3. private static String password = "pass";
  4. private static String namespace = "root\cimv2";
  5.  
  6. SWbemLocator locator = new SWbemLocator(server,username,password,namespace);
  7. SWbemServices services = locator.connectServer(); //this line throws exception
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top