Windows HowTo's

Check for Windows Updates using PowerShell

This article shows a one lines (well, 4 lines) that output any updates that are waiting to be installed on your local computer. Open PowerShell and run the following commands: $UpdateSession = New-Object -ComObject Microsoft.Update.Session $UpdateSearcher = $UpdateSession.CreateupdateSearcher() $Updates = @($UpdateSearcher.Search(“IsHidden=0 and IsInstalled=0”).Updates) $Updates | Select-Object Title The output should

Read more
All Linux HowTo's Scripting HowTo's

Ansible To Get Linux OS Version Details

This article shows the Ansible playbook used to query target systems to get their version details. Ie, the details obtained from “/etc/*release”. — – hosts: all # remote_user: root # become: yes tasks: – debug: msg: – “ansible_distribution {{ hostvars[inventory_hostname].ansible_distribution }}” – “major version {{ hostvars[inventory_hostname].ansible_distribution_major_version }}” – “version {{

Read more