HTML report

Create HTML email report using PowerShell

Create HTML report using PowerShell. Some time ago I added a post about creating your own report. This time I wanted to show you how to create a basic system performance report and send it to your mailbox. HTML Report Below you can find PowerShell script for checking the following system details using Get-WMIObject remotely: BootUpTime UpTime C: Free space % PhysicalRAM Memory % CPU % You need to have …

disconnected sessions

Get disconnected sessions on all Domain Controllers

Get disconnected sessions on all Domain Controllers using PowerShell script. In this short article, I wanted to show you how to use Query User command to get user sessions and export final results to CSV file. Domain Controllers To get list of all Domain Controllers you need to use Get-ADDomainController command from ActiveDirectory module. Command gets one or more Active Directory domain controllers based on discoverable services criteria, search parameters …

Quick Test-NetConnection

PowerShell Tip of the Week: Quick connection test on remote machines

I’m often asked how to quickly test connectivity on remote machines. In this short article from PowerShell tip of the week series, I wanted to share such script with you. I hope that it can be useful for some of you. Quick connection test Basically, the script is based on Test-NetConnection command. I running it inside single Invoke-Command script block. The Invoke-Command cmdlet runs commands on a local or remote computer and …

netstat traceroute files

Get netstat and traceroute results from remote servers

Today you will find out how to get netstat and traceroute results from remote machines. I often had a situation where I was asked to do some basic checks from a network perspective. It’s easy once you already have a script for that. Netstat and traceroute There are multiple ways to do network checks. I guess that most of you are probably familiar with commands like ipconfig, tracert, netstat and …

Run SCCM client actions on remote machines using PowerShell script

It probably takes some time to run SCCM client actions on all machines in your environment. It’s getting more complicated when you have only server core machines. This is why I decided to write a PowerShell function for that. SCCM client actions Most common client schedule actions Hardware Inventory Cycle Software Inventory Cycle Discovery Data Collection Cycle (Send DDR) Machine Policy Retrieval & Evaluation Cycle Software Updates Deployment Evaluation Cycle …

Get pending updates in Software Center on remote machines

How to get updates from the Software Center on server core machines? Recently I had to investigate some patching problems on multiple servers. As I’m working mostly on GUI-less operating systems it was time-consuming to display that from the command prompt. I decided to create a script to generate such a report. Software Center updates If you want to open Software Center from the command prompt you can navigate to …

Get SCOM agents settings remotely using PowerShell

In one of the previous articles, I was describing how to get SCOM agent setting from the OS level. This time I would like to share a more advanced script. SCOM agents settings To find all SCOM agent details on a local machine we have to navigate to the registry. Check how to find SCOM agent version – article. At the end of the article you will find PowerShell script …

certificate

PowerShell Tip of the Week: Get certificate remotely

Get certificate details from remote machines. In this post I wanted to share simple script which check certificates expiration date. Get certificate details To get certificates details we can use Get-ChildItem command and provide cert path Cert:\LocalMachine\My. In this example I was looking for certificates which subject contains my computer name: As you can see above we get Thumbprint and Subject properties as default. In this case expiration date is …

Event ID's

PowerShell Tip of the Week: Query multiple event ID’s remotely

In my daily work I often need to look for specific event ID’s on all computers. As my environmnet contains mostly server core machines I always use PowerShell script for checking that. Multiple event ID’s Get-WinEvent cmdlet gets events from event logs, including classic logs, such as the System and Application logs, and the event logs that are generated by the Windows Event Log technology.  It also allows you to …

Test multiple ports on remote servers using PowerShell script

Some time ago I added articles about testing connection on several ports. In one of them I was explaining how to format PortQry results and other was about PowerShell function. This time I wanted to speed up things a little bit 🙂 Testing connection We can test connection in several ways. In this case I wanted to make a test on lots of remote machines in fast way. In this …