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

    List duplicated valid certificates on a MS PKI version 2

    Description I have written another version of the script provided some weeks ago. This new version is looking for duplicated valid certificates based on both CommonName and Certificate template. The first version checked only the CommonName. All of this cmdlets

    shellandco_admin March 15, 2018 PKI, Powershell, Security No Comments Read more

    Microsoft PKI: revoke expired certificates

    Microsoft PKI: revoke expired certificates Description I have written the script below to cleanup the CA database by revoking the expired certificates. First, the script performs three checks and then revoke the expired certificates: a valid certificate for the same

    shellandco_admin March 15, 2018 PKI, Powershell, Security No Comments Read more

    Manage reverse DNS zones with Powershell

    Manage reverse DNS zones with Powershell The script is a complete tool that will perform the following tasks: list the A records in the domain name defined in the variable $dnsDomainName for each record, check if the reverse zone exist.

    shellandco_admin February 12, 2018 Network, Powershell 1 Comment Read more

    Password never expires status

    Description With this little script, you will have a status on the user account “Password never expires” flag. This check is done on a specific OU. You can adapt the script to run it on a domain-wide. The principe of

    shellandco_admin January 23, 2018 Active Directory, Powershell No Comments Read more

    Owncloud Passwords application migration to Passman

    If you used the application Passwords for Owncloud to store your credentials, you have seen recently this app does not exist anymore. The application has been removed from Github and it is hard to find the documentation. This is why

    shellandco_admin November 13, 2017 Github, PHP, Project, Security No Comments Read more

    List duplicated valid certificates on a MS PKI

    List duplicated valid certificates on a MS PKI The following script will give you the possibility to list the valid certificates on your Active Directory PKI that are duplicated. By “duplicated”, I mean at least two valid certificates for the

    shellandco_admin October 2, 2017 PKI, Powershell, Security No Comments Read more

    Request and remove a certificate using Active Directory templates

    You can request from Powershell a certificate from your Active Directory PKI. In that case you will use the cmdlet Get-Certificate. If you already know the template you want to use (for example Enhanced Web Server), you can use this

    shellandco_admin September 29, 2017 PKI, Powershell, Security No Comments Read more

    List AD domain controller KDC certificates

    Kerberos uses certificates to encrypt communication between the Kerberos client and the Kerberos Key Distribution Center (KDC). If you’re domain controllers use certificate for KDC you can list them by runnning this script: $domains = (Get-ADForest).domains $dcs = (Get-ADForest).globalcatalogs $list

    shellandco_admin September 28, 2017 Active Directory, PKI, Powershell, Security No Comments Read more

    Certificate renewal with Powershell

    With the following function, it is possible to renew a Local machine certificate by providing the certificate thumbprint to the function. To simply get a certificate thumbprint, you can run this command: gci -path Cert:\LocalMachine\My | select Thumbprint If you

    shellandco_admin September 27, 2017 PKI, Powershell, Security 4 Comments Read more

    Revoke a certificate that has specific properties

    In the next days, I will show you how to perform specific tasks on your Microsoft PKI using Powershell. In this post, you will be able to revoke a certificate that matches your criteria. In the following example, I will

    shellandco_admin September 26, 2017 PKI, Powershell, Security No Comments Read more
    • « Previous
    • Next »

    Recent Posts

    • Get Azure Security event workspace configuration
    • 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

    Recent Comments

    • shellandco_admin on Get GDI handles by process
    • tadalafil 20 mg on Get GDI handles by process
    • รับออกแบบโลโก้ on Playing with ACL on the Active Directory objects
    • ปืนสั้นแก๊ส on Audit the Active Directory FREE
    • XxGaaabrielxX on Fake update screens
    Copyright © 2023 shell{&}co. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.