Tag Archives: powershell

powershell

PowerShell tips – part 017.

PowerShell execution policies are a security mechanism to protect your system from running malicious scripts. Execution policies are based on trust Execution policies have various security levels, like: Unrestricted – the least restrictive policy is one that does not affect at all; it’s Unrestricted. Unrestricted execution policies are essentially disabled. Users can run all scripts… Read More »

PowerShell tips – part 015.

This PowerShell script will create a screenshot file named MyScreenshot.bmp. I created a folder named temp and I put this PowerShell script named screen.ps1. The source code of this script is this:

To run this script you need to be allowed with this args:

PowerShell tips – part 014.

Today I will tell you about how to use PowerShell command with DIR command with filters. Let’s see some examples with outputs:

PowerShell tips – part 013.

Using the administrator PowerShell:

Using the regular user PowerShell:

PowerShell tips – part 012.

From Azure documentation we can read this: The Azure support we are going to use requires PowerShell version 5.0 or higher.

The update of PowerShell can be found here, see the table: Windows PS 3.0 PS 4.0 PS 5.0 PS 5.1 Windows 10 (see Note1) Windows Server 2016 – – – installed Windows 8.1… Read More »

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,… Read More »

PowerShell tips – part 010.

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: home users, Windows PowerShell home… Read More »