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

    Logoff user session remotely

    I found a useful method to use WMI to logoff remotely a user session (on a workstation for example). It has been tested successfully on a Windows 7 computer. This WMI method can be found with the following command: gwmi

    shellandco_admin February 6, 2017 Operating System, Powershell, Tips No Comments Read more

    Configure OCSP Stappling

    What is OCSP OCSP is a protocol to check the revocation status of a certificate. This check is performed on the CA Implementation example found in this Wikipedia article: Alice and Bob have public key certificates issued by Ivan, the

    shellandco_admin January 31, 2017 News, Security, Tips No Comments Read more

    Online SSL configuration checker

    I have found a website to check my web server SSL configuration: SSL checker from High-Tech Bridge In the past, I was using the free tool provided by Qualys It seems to me the tool from by High-Tech Bridge gives

    shellandco_admin January 30, 2017 News, Security, Tips No Comments Read more

    WMIC command on Ubuntu 16.04 LTS

    I have written several months ago a post on how to install the wmic command on a linux system. Some additional steps are required now to get the wmic command on an Ubuntu 16.04 LTS server. Description Windows Management Instrumentation

    shellandco_admin January 19, 2017 Monitoring, Shell, Tips 24 Comments Read more

    Replace string in file with sed

    Some useful scenarios to use sed to replace string in file found here Replacing all occurrences of one string with another in all files in the current directory: These are for cases where you know that the directory contains only

    shellandco_admin January 6, 2017 Shell, Tips No Comments Read more

    List DNS conditional forwarders Active Directory forest wide

    With this simple script, you will be able to retrieve the DNS conditional forwarder settings in all the domain controllers in the forest. To get the list of the domain controllers in the Active Directory forest, the cmdlet get-adforest is

    shellandco_admin January 4, 2017 Active Directory, Network, Powershell No Comments Read more

    How to count the mailboxes on each Exchange store

    This script counts the number of mailboxes on each Exchange store Script : Get-MailboxDatabase | ` Select-Object Name,@{Name=”Number of users”;Expression={(Get-Mailbox -Database $_.name).Count}} | ` Out-GridView Reference Get-MailboxDatabase This cmdlet is available only in on-premises Exchange Server 2013. Use the Get-MailboxDatabase

    shellandco_admin December 22, 2016 Exchange, Powershell No Comments Read more

    Get statistics on Microsoft Exchange databases

    This script gets the following Exchange database statistics : Server name Database name The last full backup The number of mailboxes The database size The average mailbox size The database whitespace Script : function Get-DatabaseStatistics { $Databases = Get-MailboxDatabase -Status

    shellandco_admin December 21, 2016 Exchange, Powershell No Comments Read more

    Get the cluster quorum type

    Microsoft Clusters can be managed using Powershell cmdlets. To get a specific information on the cluster like the quorum type, this cmdlet can help: Get-Cluster -Name ClusterName | Get-ClusterQuorum Reference Get-ClusterQuorum   Syntax Get-ClusterQuorum [-InputObject ] [-Cluster ] [] InputObject

    shellandco_admin December 20, 2016 Cluster, Powershell No Comments Read more

    Get operating system information using WMI

    Fill a host file (hosts.txt) with the hostnames you want to retrieve the operating system information Script : $Catalog = GC “C:\hosts.Txt” ForEach($Machine in $Catalog){ $QueryString = Gwmi Win32_OperatingSystem -Comp $Machine $QueryString = $QueryString.Caption Write-Host $Machine “:” $QueryString } Reference

    shellandco_admin December 16, 2016 Operating System, Powershell 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 © 2025 shell{&}co. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.