This is another tutorial about PowerShell and Windows 8.1 operating system. You can try with another Windows OS version and PowerShell. The first issue is to show all active services on your computer:

This will show all event logs on your computer:

More info about restricted execution policy… Continue Reading PowerShell tips – part 011.

Windows PowerShell modules provide a convenient way to package reusable ode by using modules. The concept of modules is a package that contains Windows PowerShell version 2.0 commands. Anyone can write and install a Windows PowerShell script module with administrator rights. There is three default location for Windows PowerShell modules:… Continue Reading PowerShell tips – part 010.

Today I come with this simple tutorial about how to show logs from the last day. The command is very simple and can be used with PowerShell and administrator command shell like this:

This command is built from Get-EventLog and parse by Get-Date, see options:

About AddDays is… Continue Reading PowerShell tips – part 009.

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.

Translate »