This tutorial is about PowerShell and running script to disable some Services in Windows. The Windows PowerShell execution policy allows your scripts to run on your computer. If you want to see the Windows PowerShell execution policy, use the Get-ExecutionPolicy command. To change the Windows PowerShell execution policy on your… Continue Reading PowerShell tips – part 008.

Run cmd command shell into administrator mode. Type Powershell command to start the Powershell shell. Run the next Powershell command to clear all event logs in Event Viewer:

This can be useful to check the integrity of upgrade process for your Windows OS ( all versions with wmic tool).

The same issue with PowerShell tool, see:

To create a listing grid to show info 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:

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 info about… Continue Reading PowerShell tips – part 006.

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… Continue Reading PowerShell tips – part 005.

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.

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… Continue Reading PowerShell tips – part 004.