Did I find the right examples for you? yes no

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/p/y/Pyro-3.16/examples/tlstest/server.py   Pyro(Download)
        else:
            locator=win32com.client.Dispatch("WbemScripting.SwbemLocator")
            top = locator.ConnectServer(".", r"\\.\root\cimv2")
            users = top.InstancesOf("Win32_UserAccount")
            names=[]

src/a/d/adminscripts-HEAD/FindUnusedRemoteProfiles/Examples/accessad.py   adminscripts(Download)
import win32com.client
strComputer = "."
objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator")
objSWbemServices = objWMIService.ConnectServer(strComputer,"root\cimv2")
colItems = objSWbemServices.ExecQuery("Select * from Win32_NTDomain")

src/s/a/salt-HEAD/salt/modules/win_pkg.py   salt(Download)
    this_computer = "."
    wmi_service = win32com.client.Dispatch("WbemScripting.SWbemLocator")
    swbem_services = wmi_service.ConnectServer(this_computer, "root\\cimv2")
 
    # Find out whether the Windows Installer provider is present. It

src/s/a/salt-thin-HEAD/salt/modules/win_pkg.py   salt-thin(Download)
    this_computer = "."
    wmi_service = win32com.client.Dispatch("WbemScripting.SWbemLocator")
    swbem_services = wmi_service.ConnectServer(this_computer, "root\\cimv2")
 
    # Find out whether the Windows Installer provider is present. It

src/c/b/cbtop-1.0.1/lib/remote/stats_windows_helper.py   cbtop(Download)
            strComputer = "."
            objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator")
            objSWbemServices = objWMIService.ConnectServer(strComputer,"root\cimv2")
 
            query_str = '''Select * from %s%s''' % (self.win32_perf_base,counter_type)
            strComputer = "."
            objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator")
            objSWbemServices = objWMIService.ConnectServer(strComputer,"root\cimv2")
 
            query_str = '''Select * from %s%s''' % (self.win32_perf_base,counter_type)

src/s/a/salt-2014.1.3/salt/modules/win_pkg.py   salt(Download)
    this_computer = "."
    wmi_service = win32com.client.Dispatch("WbemScripting.SWbemLocator")
    swbem_services = wmi_service.ConnectServer(this_computer, "root\\cimv2")
 
    # Find out whether the Windows Installer provider is present. It

src/n/o/nova-HEAD/tools/esx/guest_tool.py   nova(Download)
def _get_windows_network_adapters():
    """Get the list of windows network adapters."""
    import win32com.client
    wbem_locator = win32com.client.Dispatch('WbemScripting.SWbemLocator')
    wbem_service = wbem_locator.ConnectServer('.', 'root\cimv2')

src/g/n/gns3-server-HEAD/gns3server/builtins/interfaces.py   gns3-server(Download)
    import win32com.client
    locator = win32com.client.Dispatch("WbemScripting.SWbemLocator")
    service = locator.ConnectServer(".", "root\cimv2")
    interfaces = []
    # more info on Win32_NetworkAdapter: http://msdn.microsoft.com/en-us/library/aa394216%28v=vs.85%29.aspx

src/d/o/dodai-compute-HEAD/tools/esx/guest_tool.py   dodai-compute(Download)
def _get_windows_network_adapters():
    """Get the list of windows network adapters."""
    import win32com.client
    wbem_locator = win32com.client.Dispatch('WbemScripting.SWbemLocator')
    wbem_service = wbem_locator.ConnectServer('.', 'root\cimv2')

src/c/b/cbtestlib-1.0.0/cbtestlib/remote/stats_windows_helper.py   cbtestlib(Download)
            strComputer = "."
            objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator")
            objSWbemServices = objWMIService.ConnectServer(strComputer,"root\cimv2")
 
            query_str = '''Select * from %s%s''' % (self.win32_perf_base,counter_type)
            strComputer = "."
            objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator")
            objSWbemServices = objWMIService.ConnectServer(strComputer,"root\cimv2")
 
            query_str = '''Select * from %s%s''' % (self.win32_perf_base,counter_type)

  1 | 2  Next