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

    Automatic HTTPS WinRM Listener creation

    In this post I will show you how to create a HTTPS WinRM listener that is using a certificate issued by your own MS PKI. The requirements are the following: – An Active Directory domain – An Enterprise MS PKI

    shellandco_admin June 6, 2018 Active Directory, Operating System, PKI, Powershell, Tips No Comments Read more

    Play with the Windows Task Scheduler and XML

    You will find in this post two scripts to : create scheduled tasks on remote computers get scheduled tasks on remote computers These actions will be performed using xml and the COM object Schedule.Service. I will write another article on

    shellandco_admin July 3, 2017 Operating System, Powershell No Comments Read more

    Get the free space on remote computer disks

    With this simple script, you will be able to get the free space available on the C: drive on a list of remote computers. I’m using WMI to request the remote computers. You can use two different ways for the

    shellandco_admin June 12, 2017 Files and folders, Operating System, Powershell, Tips No Comments Read more

    List domain controllers forest wide with OS version

    This powershell script will allow you to get a list of your domain controllers and their operating system versions. This script uses information stored in the Active Directory database using the cmdlet get-adcomputer $list = (Get-ADForest).GlobalCatalogs $domainnames = (Get-ADForest).Domains $domainnames_arr

    shellandco_admin April 10, 2017 Active Directory, Operating System, Powershell No Comments Read more

    Retrieve Active Directory domain controller OS forest wide

    Retrieve Active Directory domain controller OS forest wide This script uses the information stored in the Active Directory database to retrieve the domain controller FQDNs qnd their operating system. The script follow the steps below enumerate the domain names in

    shellandco_admin February 13, 2017 Active Directory, Operating System, Powershell No Comments Read more

    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

    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

    List the installed softwares remotely using WMI

    This script gets the installed software list on a specific computer using WMI Script : $strComputer = “computer_hostname” $colItems = get-wmiobject -class “Win32_Product” -namespace “root\CIMV2” ` -computername $strComputer foreach ($objItem in $colItems) { write-host “Caption: ” $objItem.Caption write-host “Description: “

    shellandco_admin December 14, 2016 Operating System, Powershell No Comments Read more

    Get hotfix list remotely

    This script gets the hotfix list installed on a remote system. I add a date filter to the result. Script : $strComputer = “remote_system_name” $hotfixlist = Get-HotFix -ComputerName $strComputer foreach ($hotfix in $hotfixlist) { if ($hotfix.psbase.properties[“installedOn”].Value -eq “10/28/2010”) { write-host

    shellandco_admin December 13, 2016 Operating System, Powershell No Comments Read more
    • « Previous

    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.