Exemplo n.º 1
0
    def step_16(self):
        data_uninstall = [
            971033, 2882822, 2902907, 2922324, 2952664, 2976978, 2977759,
            2990214, 3012973, 3014460, 3015249, 3021917, 3022345, 3035583,
            3042058, 3044374, 3046480, 3058168, 3064683, 3065987, 3065988,
            3068708, 3072318, 3074677, 3075249, 3075851, 3075853, 3080149,
            3081437, 3081454, 3081954, 3083324, 3083325, 3083710, 3083711,
            3086255, 3088195, 3090045, 3093983, 3102810, 3102812, 3112343,
            3112336, 3123862, 3135445, 3135449, 3138612, 3138615, 3139929,
            3146449
        ]
        data_hide = [
            971033, 2882822, 2902907, 2922324, 2952664, 2976978, 2977759,
            2990214, 2966583, 3012973, 3014460, 3015249, 3021917, 3022345,
            3035583, 3042058, 3044374, 3046480, 3058168, 3064683, 3065987,
            3065988, 3068708, 3072318, 3074677, 3075249, 3075851, 3075853,
            3080149, 3081437, 3081454, 3081954, 3083324, 3083325, 3083710,
            3083711, 3086255, 3088195, 3090045, 3093983, 3102810, 3102812,
            3112343, 3112336, 3123862, 3135445, 3135449, 3138612, 3138615,
            3139929, 3146449, 3150513, 3173040
        ]

        TaskManager.uninstall_updates(data_uninstall)
        TaskManager.ps_hide_updates(data_hide)
        if next(TaskManager.sc_query('wuauserv'))['state'] == '4':
            TaskManager.net_stop('wuauserv')

        if next(TaskManager.sc_query('bits'))['state'] == '4':
            TaskManager.net_stop('bits')

        TaskManager.net_start('bits')
        TaskManager.net_start('wuauserv')
Exemplo n.º 2
0
 def step_14(self):
     if next(TaskManager.sc_query('diagtrack'))['state'] == '4':
         TaskManager.net_stop('diagtrack')
     TaskManager.sc_delete('diagtrack')
Exemplo n.º 3
0
 def step_6(self):
     if next(TaskManager.sc_query('remoteregistry'))['state'] == '4':
         TaskManager.net_stop('remoteregistry')
     TaskManager.sc_config('remoteregistry', 'disabled')