try { args[0] = "x.y.z.w"; String domain = "";//i am using it as blank String username = "username";//user who logs in to the system as admin String password = "password";// used by admin to login to windows pc JISystem.getLogger().setLevel(Level.FINEST); JISystem.setInBuiltLogHandler(false); JISystem.setAutoRegisteration(true); JISession session3 = JISession.createSession(domain,username,password); session3.useSessionSecurity(true); System.out.println(" session3 "+session3); }catch(Exception e){ e.printStackTrace(); }
public MSExcel2_Test(String address, String[] args) throws JIException, UnknownHostException { session = JISession.createSession(args[1],args[2],args[3]); session.useSessionSecurity(true); comServer = new JIComServer(JIProgId.valueOf("Excel.Application"),address,session); }
public MSWord(String address, String[] args) throws JIException, UnknownHostException { JISession session = JISession.createSession(args[1], args[2], args[3]); session.useSessionSecurity(true); comStub = new JIComServer(JIProgId.valueOf("Word.Application"), address, session); }
public MSWord ( final String address, final String[] args ) throws JIException, UnknownHostException { final JISession session = JISession.createSession ( args[1], args[2], args[3] ); session.useSessionSecurity ( true ); this.comStub = new JIComServer ( JIProgId.valueOf ( "Word.Application" ), address, session ); }
public MSExcel2_Test ( final String address, final String[] args ) throws JIException, UnknownHostException { this.session = JISession.createSession ( args[1], args[2], args[3] ); this.session.useSessionSecurity ( true ); this.comServer = new JIComServer ( JIProgId.valueOf ( "Excel.Application" ), address, this.session ); }
public MSExcel2_Test(String address, String[] args) throws JIException, UnknownHostException { session = JISession.createSession(args[1],args[2],args[3]); session.useSessionSecurity(true); comServer = new JIComServer(JIProgId.valueOf("Excel.Application"),address,session); }
public MSTypeLibraryBrowser2 ( final String address, final String args[] ) throws JIException, UnknownHostException { final JISession session = JISession.createSession ( args[1], args[2], args[3] ); session.useSessionSecurity ( true ); this.comServer = new JIComServer ( JIProgId.valueOf ( args[4] ), address, session ); }
public MSWord(String address, String[] args) throws JIException, UnknownHostException { JISession session = JISession.createSession(args[1], args[2], args[3]); session.useSessionSecurity(true); comStub = new JIComServer(JIProgId.valueOf("Word.Application"), address, session); }
public MSExcel2(String address, String[] args) throws JIException, UnknownHostException { session = JISession.createSession(args[1],args[2],args[3]); session.useSessionSecurity(true); comServer = new JIComServer(JIProgId.valueOf("Excel.Application"),address,session); }
public MSTypeLibraryBrowser2(String address, String args[]) throws JIException, UnknownHostException { JISession session = JISession.createSession(args[1],args[2],args[3]); session.useSessionSecurity(true); comServer = new JIComServer(JIProgId.valueOf(args[4]),address,session); }
public MSTypeLibraryBrowser2(String address, String args[]) throws JIException, UnknownHostException { JISession session = JISession.createSession(args[1],args[2],args[3]); session.useSessionSecurity(true); comServer = new JIComServer(JIProgId.valueOf(args[4]),address,session); }
MSSysInfo(String[] args) throws JIException, UnknownHostException { session = JISession.createSession(args[1],args[2],args[3]); session.useSessionSecurity(true); JIComServer comServer = new JIComServer(JIProgId.valueOf("SYSINFO.SysInfo"),args[0],session); sysInfoServer = comServer.createInstance(); sysInfoObject = (IJIComObject)sysInfoServer.queryInterface("6FBA474C-43AC-11CE-9A0E-00AA0062BB4C"); dispatch = (IJIDispatch)JIObjectFactory.narrowObject(sysInfoObject.queryInterface(IJIDispatch.IID)); } void displayValues() throws JIException
MSSysInfo(String[] args) throws JIException, UnknownHostException { session = JISession.createSession(args[1],args[2],args[3]); session.useSessionSecurity(true); JIComServer comServer = new JIComServer(JIProgId.valueOf("SYSINFO.SysInfo"),args[0],session); sysInfoServer = comServer.createInstance(); sysInfoObject = (IJIComObject)sysInfoServer.queryInterface("6FBA474C-43AC-11CE-9A0E-00AA0062BB4C"); dispatch = (IJIDispatch)JIObjectFactory.narrowObject(sysInfoObject.queryInterface(IJIDispatch.IID)); } void displayValues() throws JIException
MSSysInfo ( final String[] args ) throws JIException, UnknownHostException { this.session = JISession.createSession ( args[1], args[2], args[3] ); this.session.useSessionSecurity ( true ); final JIComServer comServer = new JIComServer ( JIProgId.valueOf ( "SYSINFO.SysInfo" ), args[0], this.session ); this.sysInfoServer = comServer.createInstance (); this.sysInfoObject = this.sysInfoServer.queryInterface ( "6FBA474C-43AC-11CE-9A0E-00AA0062BB4C" ); this.dispatch = (IJIDispatch)JIObjectFactory.narrowObject ( this.sysInfoObject.queryInterface ( IJIDispatch.IID ) ); }
public MSWMI(String address, String[] args) throws JIException, UnknownHostException { this.address = address; session = JISession.createSession(args[1],args[2],args[3]); session.useSessionSecurity(true); session.setGlobalSocketTimeout(5000); comStub = new JIComServer(JIProgId.valueOf("WbemScripting.SWbemLocator"),address,session); IJIComObject unknown = comStub.createInstance(); comObject = (IJIComObject)unknown.queryInterface("76A6415B-CB41-11d1-8B02-00600806D9B6");//ISWbemLocator //This will obtain the dispatch interface dispatch = (IJIDispatch)JIObjectFactory.narrowObject(comObject.queryInterface(IJIDispatch.IID)); }
public MSWMI(String address, String[] args) throws JIException, UnknownHostException { this.address = address; session = JISession.createSession(args[1],args[2],args[3]); session.useSessionSecurity(true); session.setGlobalSocketTimeout(5000); comStub = new JIComServer(JIProgId.valueOf("WbemScripting.SWbemLocator"),address,session); IJIComObject unknown = comStub.createInstance(); comObject = (IJIComObject)unknown.queryInterface("76A6415B-CB41-11d1-8B02-00600806D9B6");//ISWbemLocator //This will obtain the dispatch interface dispatch = (IJIDispatch)JIObjectFactory.narrowObject(comObject.queryInterface(IJIDispatch.IID)); }
public MSWMI ( final String address, final String[] args ) throws JIException, UnknownHostException { this.address = address; this.session = JISession.createSession ( args[1], args[2], args[3] ); this.session.useSessionSecurity ( true ); this.session.setGlobalSocketTimeout ( 5000 ); this.comStub = new JIComServer ( JIProgId.valueOf ( "WbemScripting.SWbemLocator" ), address, this.session ); final IJIComObject unknown = this.comStub.createInstance (); this.comObject = unknown.queryInterface ( "76A6415B-CB41-11d1-8B02-00600806D9B6" );//ISWbemLocator //This will obtain the dispatch interface this.dispatch = (IJIDispatch)JIObjectFactory.narrowObject ( this.comObject.queryInterface ( IJIDispatch.IID ) ); }
public MSInternetExplorer ( final String address, final String[] args ) throws JIException, UnknownHostException { JISystem.mapHostNametoIP ( "locutus", "192.168.0.130" ); this.session = JISession.createSession ( args[1], args[2], args[3] ); this.session.useSessionSecurity ( true ); this.comServer = new JIComServer ( JIProgId.valueOf ( "InternetExplorer.Application" ), address, this.session ); this.ieObject = this.comServer.createInstance (); final IJIComObject ieObjectWebBrowser2 = this.ieObject.queryInterface ( "D30C1661-CDAF-11D0-8A3E-00C04FC9E26E" ); this.ieObjectDispatch = (IJIDispatch)JIObjectFactory.narrowObject ( this.ieObject.queryInterface ( IJIDispatch.IID ) ); }
public MSInternetExplorer(String address, String[] args) throws JIException, UnknownHostException { JISystem.mapHostNametoIP("locutus", "192.168.0.130"); session = JISession.createSession(args[1],args[2],args[3]); session.useSessionSecurity(true); comServer = new JIComServer(JIProgId.valueOf("InternetExplorer.Application"),address,session); ieObject = comServer.createInstance(); IJIComObject ieObjectWebBrowser2 = (IJIComObject)ieObject.queryInterface("D30C1661-CDAF-11D0-8A3E-00C04FC9E26E"); ieObjectDispatch = (IJIDispatch)JIObjectFactory.narrowObject((IJIComObject)ieObject.queryInterface(IJIDispatch.IID)); }
public MSInternetExplorer(String address, String[] args) throws JIException, UnknownHostException { JISystem.mapHostNametoIP("locutus", "192.168.0.130"); session = JISession.createSession(args[1],args[2],args[3]); session.useSessionSecurity(true); comServer = new JIComServer(JIProgId.valueOf("InternetExplorer.Application"),address,session); ieObject = comServer.createInstance(); IJIComObject ieObjectWebBrowser2 = (IJIComObject)ieObject.queryInterface("D30C1661-CDAF-11D0-8A3E-00C04FC9E26E"); ieObjectDispatch = (IJIDispatch)JIObjectFactory.narrowObject((IJIComObject)ieObject.queryInterface(IJIDispatch.IID)); }