PowerShell tips – part 011.

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 that prevents scripting on PowerShell, see:

You can use the four options to choose with:

  • Restricted – The default execution policy that stops scripts from running.
  • All Signed – Will run scripts if they are signed by a trusted publisher
  • Remote Signed – Allows scripts to run which have been created locally
  • Unrestricted – A policy with no restrictions on running scripts

The Clear-Host function removes all text from the current display, including commands and output that might have accumulated, alias command – CLS, see:

Use with admin shell and the PowerShell command named Clear-EventLog to clear all your logs:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.