Montag, 25. April 2016

PowerShell Tip of the Day

Hi, Everyone

Long time, no see. Last week I attended the AWESOME PSConfEU 2016. Boy (and girl), what a great event, with  a lot of fantastic people and exciting topics. Might be a good time to restart my daily tip series :)

Today I want to show, how we can ensure that a PowerShell script will only run, if a specific module exists on the machine.

It is very simple: we can use the #Requires statement - and I encourage you to read the help site, because there a few other parameter available.

What is happening when we try to run this script?

Keine Kommentare:

Kommentar veröffentlichen