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

    Configure HKPK on Apache

    What is HKPK The Wikipedia explanation is the following: HTTP Public Key Pinning (HPKP),[1] sometimes incorrectly known as certificate pinning, is a security mechanism which allows HTTPS websites to resist impersonation by attackers using mis-issued or otherwise fraudulent certificates. For

    shellandco_admin January 16, 2017 PKI, Security, Web No Comments Read more

    Fake update screens

    Funny site before the weekend about fake update screens: fakeupdate Prank your friends and colleagues with fake update screens! Press F11 to go fullscreen Press ENTER to cause a BSOD You have the choice between the following operating systems: Windows

    shellandco_admin January 6, 2017 Fun, News 1 Comment 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

    Restrict a group’s rights to a specific command with sudo

    Wikipedia sudo is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user, by default the superuser. It originally stood for “superuser do” as the older versions of sudo were

    shellandco_admin January 5, 2017 Process, Security, Shell 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

    Get HP iLO board informations using XML

    The purpose of this script is to retrieve the following HP iLO board informations : HP Server model, iLO model, iLO firmware version. You only need a host file filled in with all your iLO IP addresses. The script has

    shellandco_admin December 15, 2016 Hardware, Operating System, Powershell, Tips 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.