Tag Archives: powershell

powershell

PowerShell tips – part 007.

To create a list grid to show infos and output from powershell, you can send the output to the Out-GridView cmdlet: Let’s make one example to show the output of : Get-WmiObject Win32_Processor .

The result is this:

PowerShell tips – part 006.

You can test connectivity with the PowerShell administrator mode by using the next commands:

Let’s start with Test-NetConnection command. This command displays diagnostic information for a connection. Depending on the input you can test ping test, TCP test, route tracing, and route selection diagnostics and also get infos about DNS lookup results, a list… Read More »

PowerShell tips – part 005.

This is another tutorial about PowerShell tips and one powershell command: Get-WindowsOptionalFeature . Start by using the windows key and try to find the powershell by typing : powershell. When you see it use right-click the Windows PowerShell and select Run As Administrator from the action menu. This will open the PowerShell command shell. Use… Read More »

How to protect from mass ransomware attack.

On Windows 10, start by pressing Windows key + X, selecting PowerShell (Admin), and pasting the following code:

The SMB1 is an old protocol. More recent versions are not vulnerable to the WanaCryptor 2.0 variant.

PowerShell tips – part 004.

Another tutorial about powershell commands. Get infos from Enviroment with powershell: [Environment]::UserName [Environment]::UserDomainName [Environment]::MachineName Test connection to server or test the network connectivity of a computer and get some common properties: Test-Connection google.com Test-Connection -ComputerName localhost -Count 1 | Select-Object IPv4Address,ResponseTime,TimeToLive Displays diagnostic information for a connection. Test-NetConnection Get a detailed IP configuration report for… Read More »