PowerShell - Check Active Internet Connection
If your machine has more than one Internet connection at the same time, which connection is used?
Research and Development
If your machine has more than one Internet connection at the same time, which connection is used?
You might know the more tool - when you pipe output to more, the output is displayed page by page.
Here is a sample that uses the live.com freemailer (formally Hotmail) which requires a secure connection.
To find out when a system restarted and why, use the below code to extract the relevant information from the System event log.
The Start-Process cmdlet has no -ComputerName parameter, so WMI can be used instead.
Here’s a simple function wrapper that utilizes a standard console application and wraps it into a PowerShell function.
If you ever feel the need to lock your interactive session via PowerShell, here’s a function that can do this.
This powershell single-liner will analyse your system event log for disk controller errors.
Here is a function that lists all the domains in your forest.
Ever wanted to display a dialog box from PowerShell rather than spitting out console text?