コード例 #1
0
 def test_SchRpcGetNumberOfMissedRuns(self):
     dce, rpctransport = self.connect(self.stringBindingAtSvc, tsch.MSRPC_UUID_TSCHS)
     request = tsch.SchRpcGetNumberOfMissedRuns()
     request['path'] = '\\Microsoft\\Windows\\Defrag\\ScheduledDefrag\x00'
     try:
         resp = dce.request(request)
         resp.dump()
     except Exception, e:
         print e
         pass
コード例 #2
0
 def test_SchRpcGetNumberOfMissedRuns(self):
     dce, rpc_transport = self.connect()
     request = tsch.SchRpcGetNumberOfMissedRuns()
     request['path'] = '\\Microsoft\\Windows\\Defrag\\ScheduledDefrag\x00'
     try:
         resp = dce.request(request)
         resp.dump()
     except tsch.DCERPCSessionError as e:
         print(e)
         pass