Copy files from Windows CIFS share

In this post, I will show a playbook with different tasks to copy files from Windows CIFS shared folder to a Linux folder. First, the status and the prerequisites: I have 3 machines: The Ansible controller ansible_srv01 where the playbook…

Create a certificate from a request file with Powershell

The purpose of this post is to show you the different available Powershell cmdlets to get a certificate from a Microsoft PKI using a base64 certificate request file. The following command lines will uses the Powershell module PSPKI. To install…

Ansible – Manage multi-threading in playbooks

In this post, I will show an example on how to manage multi-threading in an Ansible playbook. The playbook will perform the following steps: Connect on the Service-Now API. Use the CMDB table and retrieve a server list. This server…

Play with group policy, XML and Powershell

I will show you in this post simple examples to get informations on Active Directory group policies using Powershell. The main cmdlet I will use is the get-gporeport. With this cmdlet, you can export a Group Policy in XML format…

DNS forwarder setting healthcheck

To keep your environment/infrastructure clean and up-to-date, it is important to perform some healthcheck. The following simple Powershell cmdlet will discover and test the configured DNS forwarders on your Active Directory Get-DnsServerForwarder > Gets forwarder configuration settings on a DNS…

OpenSSL useful commands

In this post, you will find below some useful usage of the OpenSSL tool. This commands can be used on both Linux and Windows environment. For the Windows OS, I have choosen to use the pre-compiled packages at conan.io (version…

Ansible – Create a new directory on a CIFS shared folder

In this post, I will show you how to create a directory on a CIFS shared folder hosted on the Windows machine This task can be achieved by configuring the WinRM listener on the Windows machine. In the playbook, we…

Ansible – Read Certificate request file with the module openssl_csr_info

In this post, I will show you how to read a certificate request file and extract some informations. In the current case, the information is the Subject Alternate Name. If SAN have been specified in the CSR, it will be…

Ansible – Copy a file to a remote node

You will find in the next days several posts with specific Ansible playbook for usual use case. The first post is to show how to copy a file or a folder from the node (nodeA) where you are running the…

Automate certificate revocation on a Microsoft PKI

The purpose of this script is to automate your certificate revocation on a Microsoft PKI. The script uses the powershell module PSPKI. To install it, run the following command :

This module is intended to simplify various PKI and…

Social Media Auto Publish Powered By : XYZScripts.com
%d bloggers like this: