ITScripts and Windows PowerShellâ„¢ Overview

Windows PowerShellâ„¢ is a task automation framework. It is built on Microsoft .NET Framework and provides administrators the ability to quickly and easily perform management tasks on Windows machines and applications. The ITScripts function of Shavlik Protect supports the use of PowerShell 3.0 and WinRM 2.0, enabling you to execute a variety of scripts on the console and on remote target machines. It also enables you to start a Windows PowerShell session between the console and a selected machine.

Why Use Windows PowerShell Scripts?

PowerShell scripts enable you to perform a wide variety of administrative tasks on the machines in your organization -- from the most rudimentary task to highly advanced and complex operations. You might want to search your target machines for a particular type of data, gather and read log files, install software, create a report, determine the status of a service, read the registry, etc. PowerShell scripts are a great way to automate repetitive tasks across a large number of machines.

Why Use Shavlik Protect to Run Scripts?

The advantages to running scripts in Shavlik Protect include:

Many Predefined Scripts are Available

The ITScripts function comes with a number of predefined scripts. The most basic scripts are free and are used to perform various utility tasks. The more advanced scripts perform more complicated tasks and can be used only if you have an ITPro license key.

You can use the Script Catalog Manager to view the predefined scripts that are available to you.

Create and Import Custom Scripts

If you have an ITPro license key you can import custom scripts that you created or that were created by someone you trust, such as a member of the ITScripts Community Site. Any custom scripts you import will appear in the Script Catalog Manager along with the predefined scripts. Custom PowerShell modules are also supported. You can create and import modules containing cmdlets, providers, functions, variables, and aliases that you can use in your other custom scripts. For more information, see Creating a Custom Script.

Target Types

Shavlik Protect provides four target types for executing scripts. The target type indicates what the target machine requires when executing a script. The target type is set by the script author using the scriptType element and cannot be altered by Shavlik Protect. A script can only be run in one mode. In all cases the script engine runs on the Shavlik Protect console.

You do not need to install any additional software on the target machines when executing scripts of this type. The only ports required are the ports required by the Windows services being used.

For the full list of target machine requirements when using WinRM Remoting (PowerShell remoting), see ITScripts Requirements.

You can use the Script Catalog Manager to identify the target type that will be used by a script.

Security Considerations

Shavlik Protect provides a number of security features when using the ITScripts function.

Scripts created by Shavlik will be signed by Shavlik. If you create a custom script you must sign it using your own certificate and you will accept all liability for use of that script.

Virtual Machine Considerations

Scripts can be executed on online virtual machines but not on offline virtual machines.