PowerShell tips – part 011.

By | 07/09/2018

This is another tutorial about powershell and windows 8.1 operating sistem.
You can try with another Windows OS version and powershell.
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.