david-guenault / check-windows-by-winrm

Windows check by winrm codebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

check-windows-by-winrm

Windows check by winrm codebase

#Information

Currently it's only tested with SSL+BasicAuth on 2012R2

##Install check

git clone git@git.internal.leshop.ch:IO/check-windows-by-winrm.git
virtualenv check-windows-by-winrm
cd check-windows-by-winrm
source bin/activate
pip install http://github.com/diyan/pywinrm/archive/master.zip
pip install --upgrade pip
pip install -r requirement.txt

##Install custom self-signed unsecure anchor

#Install the ca-certificates package:
yum install ca-certificates

#Enable the dynamic CA configuration feature:
update-ca-trust enable

#Add it as a new file to /etc/pki/ca-trust/source/anchors/:
cp my_ca_file.crt /etc/pki/ca-trust/source/anchors/

#Then break your security model
update-ca-trust extract

##Prerequisites for windows 2008 R2

##Enable auth on Windows 2008 R2 and 2012r2 +

winrm set winrm/config/client/auth @{Basic="true"}
winrm set winrm/config/service/auth @{Basic="true"}

About

Windows check by winrm codebase

License:GNU Affero General Public License v3.0


Languages

Language:Python 100.0%