Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 1.02 KB

README.md

File metadata and controls

33 lines (27 loc) · 1.02 KB

WinRemote

This package is primarily a library which helps you remotely manage your windows machine. Secondly it's command line tool to manage windows machine remotely. The command line tool calls directly specific module. Modules are very easily extensible. You can write your own and use it from command line immediately, only specifying its name and module function.

For example this command:

$ winremote --username=Administrator --password=****** --ip=10.0.0.1 services get WinRM
{'Name': 'WinRM', 'StartMode': 'Auto', 'State': 'Running'}

Equals to this python code:

import pprint
import winrm

from winremote import winremote
from winremote.modules import services

session = winrm.Session(target='10.0.0.1', auth=('Administrator', '******'))
pprint.pprint(
    services.get(
        winremote.Windows(session, winremote.WMI(session)),
        'WinRM'
    )
)

This package uses pywinrm, so please follow its readme to setup your windows machine to work via WinRM.