Encrypt and store passwords securely in PowerShell scripts

Encrypting passwords (and usernames) in Powershell scripts that will be used in scheduled tasks could be very useful to automatize important tasks in test/development/production environments. Let’s see how to do this. Read More …

Check Windows Services statuses using Powershell

PowerShell is a great and essential “scripting” (the scripting is just one of the many things this language can do) tool. It not only helps save you time, it also provides greater flexibility to execute repeated tasks manually or via scheduled tasks. Almost all Windows roles and features ship with PowerShell cmdlets. Once of the most common tasks, specially on server machines, is to check regularly the status of a specific service. Read More …

Powershell – Digitally signing a .ps1 script

A file is signed with a certificate. A digital certificate is usually issued by a Certification Authority (CA). These are important things to consider, so it better to focus these before going on with the Powershell code signing process for scripts. Read More …

What are Dot-Source scripts in Powershell?

Dot-sourcing is a concept in PowerShell that allows you to reference code defined in one script in a separate one. This is useful when you’re working on a project with multiple scripts and might have functions specified in one script(s) and the code to call those functions in another. Other than building a module, dot-sourcing is a good way to make that code in another script available to you.
Read More …