Skip to content
shell{&}co

shell{&}co

Menu

  • News
    • Bug and tips
  • Automation
    • Ansible
  • Scripts & Code
    • Perl
      • Network
    • PHP
    • Powershell
      • Active Directory
      • Citrix
      • Cluster
      • Database
      • Exchange
      • Files and folders
      • Hardware
      • Network
      • Operating System
      • PKI
      • SCCM
      • Service and process
      • Tips
      • VMWare
    • Python
      • Monitoring
      • Network
      • PKI
      • Ruby
      • Security
    • Shell
      • Backup
      • Filesystem
      • Image processing
      • Monitoring
      • Network
      • PKI
      • Process
      • Time
      • Virtualization
      • Web
  • Fun
  • Project
    • Github
    • Log Analyzer

    Copy certificate to the Windows Services store

    Recently, I have encountered an issue with Active Directory, LDAPS and multiple Server authentication certificates in the default computer certificate store of my domain controllers. The LocalComputer certificate store contained one certificate for AD LDAPS and the other was dedicated

    shellandco_admin October 22, 2019February 20, 2020 Active Directory, PKI, Powershell No Comments Read more

    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

    shellandco_admin September 20, 2019 Ansible, Automation, Files and folders No Comments Read more

    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

    shellandco_admin September 17, 2019 PKI, Powershell No Comments Read more

    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

    shellandco_admin July 16, 2019 Active Directory, Powershell No Comments Read more

    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

    shellandco_admin July 4, 2019 Active Directory, Powershell No Comments Read more

    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

    shellandco_admin July 3, 2019 PKI, Security, Shell No Comments Read more

    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

    shellandco_admin June 24, 2019 Ansible, Automation, Files and folders 4 Comments Read more

    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

    shellandco_admin June 20, 2019 Ansible, Automation, PKI No Comments Read more

    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 : PS> Install-Module -Name PSPKI This module is intended to simplify

    shellandco_admin October 23, 2018 PKI, Powershell No Comments Read more

    Cleanup your Group Policies with Powershell

    You will find in this post two little scripts to help you on cleaning your unused Group Policies (GPO). The first script will help you to identify the GPO linked to an OU but with a disabled link. The second

    shellandco_admin September 18, 2018 Active Directory, Powershell, Tips No Comments Read more
    • « Previous

    Recent Posts

    • Copy certificate to the Windows Services store
    • Copy files from Windows CIFS share
    • Create a certificate from a request file with Powershell
    • Ansible – Manage multi-threading in playbooks
    • Play with group policy, XML and Powershell

    Recent Comments

    • Nicolas HAHANG on WMIC command on Ubuntu 16.04 LTS
    • Nicolas HAHANG on WMIC command on Ubuntu 16.04 LTS
    • Nicolas HAHANG on WMIC command on Ubuntu 16.04 LTS
    • Vok on WMIC command on Ubuntu 16.04 LTS
    • Vok on WMIC command on Ubuntu 16.04 LTS
    Copyright © 2021 shell{&}co. Powered by WordPress. Theme: Spacious by ThemeGrill.