예제 #1
0
 def test_SchRpcGetTaskInfo(self):
     dce, rpctransport = self.connect(self.stringBindingAtSvc, tsch.MSRPC_UUID_TSCHS)
     request = tsch.SchRpcGetTaskInfo()
     request['path'] = '\\Microsoft\\Windows\\Defrag\\ScheduledDefrag\x00'
     request['flags'] = tsch.SCH_FLAG_STATE
     try:
         resp = dce.request(request)
         resp.dump()
     except Exception, e:
         print e
         pass
예제 #2
0
 def test_SchRpcGetTaskInfo(self):
     dce, rpc_transport = self.connect()
     request = tsch.SchRpcGetTaskInfo()
     request['path'] = '\\Microsoft\\Windows\\Defrag\\ScheduledDefrag\x00'
     request['flags'] = tsch.SCH_FLAG_STATE
     try:
         resp = dce.request(request)
         resp.dump()
     except tsch.DCERPCSessionError as e:
         print(e)
         pass