pywinrm | Python library for Windows Remote Management | Command Line Interface library

 by   diyan Python Version: 0.4.3 License: MIT

kandi X-RAY | pywinrm Summary

kandi X-RAY | pywinrm Summary

pywinrm is a Python library typically used in Utilities, Command Line Interface applications. pywinrm has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can install using 'pip install pywinrm' or download it from GitHub, PyPI.

pywinrm is a Python client for the Windows Remote Management (WinRM) service. It allows you to invoke commands on target Windows machines from any machine that can run Python. WinRM allows you to perform various management tasks remotely. These include, but are not limited to: running batch scripts, powershell scripts, and fetching WMI variables. Used by Ansible for Windows support. For more information on WinRM, please visit Microsoft's WinRM site.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              pywinrm has a medium active ecosystem.
              It has 977 star(s) with 257 fork(s). There are 49 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 32 open issues and 222 have been closed. On average issues are closed in 691 days. There are 9 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of pywinrm is 0.4.3

            kandi-Quality Quality

              pywinrm has 0 bugs and 0 code smells.

            kandi-Security Security

              pywinrm has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              pywinrm code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              pywinrm is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              pywinrm releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              pywinrm saves you 1066 person hours of effort in developing the same functionality from scratch.
              It has 2424 lines of code, 146 functions and 23 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed pywinrm and discovered the below as its top functions. This is intended to give you an instant insight into pywinrm implemented functionality, and help decide if they suit your requirements.
            • Send a message
            • Build a session object
            • Prepare an encrypted request
            • Decrypt a response message
            • Parse an encrypted response
            • Send a message request
            • Encrypts the message payload
            • Gets the response text
            • Setup the security context
            • Decrypt encrypted message
            • Decrypt a WinRM message
            • Builds a credential message
            • Calculate the length of the TLS trailer
            • Build Kerberos message
            • Encrypts a message
            Get all kandi verified functions for this library.

            pywinrm Key Features

            No Key Features are available at this moment for pywinrm.

            pywinrm Examples and Code Snippets

            copy iconCopy
            env LANG=C LC_ALL=C ansible-playbook ... 
            
            .exe not getting executed via winrm
            Pythondot img2Lines of Code : 2dot img2License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            session.run_cmd('\\\\machine2IP\path\to\exe\filename.exe')
            
            How to collect files on Windows machines with pywinrm?
            Pythondot img3Lines of Code : 2dot img3License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            winrm.Session('192.168.9.102', auth=('username@domain', 'password'), transport='ntlm')
            
            pip installation is failing, how to fix it?
            Pythondot img4Lines of Code : 4dot img4License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            pip2 install --upgrade --user pip
            
            pip2 install --user "setuptools<45"
            
            Ansible failing to ping Windows host from MACOS(source machine)
            Pythondot img5Lines of Code : 2dot img5License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            pip install "pywinrm>=0.3.0"
            
            winrm or requests is not installed: cannot import name certs with installed pywinrm
            Pythondot img6Lines of Code : 42dot img6License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            fgi-dcv-depl1 root# yum install python-urllib3
            Loaded plugins: aliases, changelog, fastestmirror, tmprepo, verify, versionlock
            Loading mirror speeds from cached hostfile
            Resolving Dependencies
            --> Running transaction check
            ---> Packa
            Start detached process using pywinrm in remote desktop
            Pythondot img7Lines of Code : 7dot img7License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            session = winrm.Session(host, auth=(user, password), transport='credssp')
            prtl = session.protocol
            encoded_ps = b64encode(script.encode('utf_16_le')).decode('ascii')
            command = 'powershell -encodedcommand {0}'.format(encoded_ps)
            shell_id = p
            Ansible for Windows: WinRM HTTPS setup
            Pythondot img8Lines of Code : 2dot img8License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            python -c "import ssl; print(ssl.get_default_verify_paths())"
            
            Bad HTTP response returned from the server. Code 500
            Pythondot img9Lines of Code : 5dot img9License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            [libdefaults]
                 ***
                 allow_weak_crypto = true
                 ***
            
            Ansible msg: "winrm or requests is not installed: cannot import name certs"
            Pythondot img10Lines of Code : 34dot img10License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            thinkred1cartoon:$ ansible all -i hosts.txt -m win_ping
            172.16.96.135 | FAILED! => {
                "msg": "winrm or requests is not installed: cannot import name certs"
            
            yum list installed | grep winrm
            python2-winrm.noarch

            Community Discussions

            QUESTION

            Alpine 3.11 diff: unrecognized option: c BusyBox v1.31.1 () multi-call binary
            Asked 2022-Feb-28 at 17:13

            I am using an alpine 3.11 to build my image, everything goes well during the build the dockefile is here below :

            ...

            ANSWER

            Answered 2022-Feb-28 at 16:56

            Well I just had to add the diffutils package to the list after installing it everything works well

            Source https://stackoverflow.com/questions/71297838

            QUESTION

            Ansible win_updates won't work on Debian 11 /("msg": "winrm put_file failed; \nstdout: Active code page: 1252\r)
            Asked 2022-Jan-21 at 14:02

            I am fairly new to Ansible and have now started automating some repetitive Windows administration tasks.

            As a controller I use a Debian 11 VM where I have only Ansible and pywinrm installed. My test target is a Windows Server 2016 and everything works fine, I can install programs, create users or copy files. The only thing that does not work is the module "win_updates".

            I get the following message back when I call win_updates.

            ...

            ANSWER

            Answered 2022-Jan-21 at 14:02

            Adding the suitable env vars solved my problem.

            Source https://stackoverflow.com/questions/70773723

            QUESTION

            .exe not getting executed via winrm
            Asked 2021-May-05 at 07:39

            I am trying to run a exe via pywinrm. Architecture is as follows:

            ...

            ANSWER

            Answered 2021-May-05 at 07:39

            It took a lot of trial and error but it worked for me.

            Source https://stackoverflow.com/questions/67395773

            QUESTION

            How to collect files on Windows machines with pywinrm?
            Asked 2020-Oct-20 at 14:20

            How to collect files on Windows machines?

            Password rejected on pywinrm connection, but the password is correct and the connection port is listening

            Script:

            ...

            ANSWER

            Answered 2020-Oct-20 at 14:20

            Have you tried using another authentication transport like ntlm, according to your server configuration:

            Source https://stackoverflow.com/questions/62683765

            QUESTION

            How to debug docker container that randomly dies with exit code 0
            Asked 2020-Mar-04 at 08:18

            I use Jenkins as a docker container in a custom Docker image, starting it like:

            ...

            ANSWER

            Answered 2020-Feb-28 at 15:43

            docker logs {containername} - it shows what was going on inside of the container.

            or kubectl logs {containername} - shows you logs, if you are using kuberneties.

            for me it shows logs even if container was stopped(restarted) which is very useful to se the reason why.

            And you need to make sure that you output as much as you can inside of container - if you are running some application inside do console output for any error you have.

            But in general i bet that that is happening for you because of memory lack - you can just try increase amount of memory available for container. (depends on the way you are running container, would definitely recommend kubernetes for production - way more control on everything).

            Source https://stackoverflow.com/questions/60454803

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install pywinrm

            You can install using 'pip install pywinrm' or download it from GitHub, PyPI.
            You can use pywinrm like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install pywinrm

          • CLONE
          • HTTPS

            https://github.com/diyan/pywinrm.git

          • CLI

            gh repo clone diyan/pywinrm

          • sshUrl

            git@github.com:diyan/pywinrm.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Command Line Interface Libraries

            ohmyzsh

            by ohmyzsh

            terminal

            by microsoft

            thefuck

            by nvbn

            fzf

            by junegunn

            hyper

            by vercel

            Try Top Libraries by diyan

            assimilator

            by diyanGo

            falcon_seed

            by diyanPython

            webex-docker

            by diyanShell

            echo-seed

            by diyanGo