Log lines

Extract IP address from log lines using PowerShell

Recently I had to extract IP Addresses from log file and check their hostnames. The easiest way to get this was using regex pattern in Select-String command. Extract IP Address Lets says that we have a log file which contains lines like: AUDIT “2018-06-19 00:14:16.481 GMT+0200” 10.13.11.7 Server01:1812 0 0 “text=Access GRANTED cloudId=pawel.janowicz To extract IP Address from it we can use Select-String command with the following regex pattern “\d{1,3}(\.\d{1,3}){3}”>: …

Setup Azure VPN using PowerShell

Hey Scripters! Today I want to share with you my script for setup Azure VPN using PowerShell. In few words, script is using basic Azure module command. At the begginig you should have your VPN device already configured and once it is done, you can start configuration from Azure site. To configure VPN device you should already have public IP created in Azure. All variables depends on your on premise …

Update Rollup

Get SCOM update rollup version remotely

Checking SCOM update rollup version using console is pretty simple. Things are getting a little bit complicated if we want to get this from server. Using WMI or PowerShell commands like Get-Hotfix probably we will not get this information. Update Rollup To check this locally we have to get FileVersion for OMAgentTraceTMFVer.Dll file. Each version is assosiated with one of the Update Rollups. For more information you can visit System …