Appendix A - Scripting; About Powershell Scripting; Powershell Scripting Prerequisites; Testing Scripts - Dell PowerVault DL4000 User Manual

Backup to disk appliance - poweredby appassure
Hide thumbs Also See for PowerVault DL4000:
Table of Contents

Advertisement

Appendix A — Scripting

About Powershell Scripting

Windows PowerShell is a Microsoft .NET Framework-connected environment designed for administrative automation.
AppAssure 5 includes comprehensive client software development kits (SDKs) for PowerShell scripting that enables
administrators to automate the administration and management of AppAssure 5 resources by the execution of
commands through scripts.
It lets administrative users execute user-provided PowerShell scripts at designated occurrences. For example, before or
after a snapshot, attachability and mountability checks, and so on. Administrators can execute scripts from both the
AppAssure 5 Core and the agent. Scripts can accept parameters and the output of a script is written to core and agent
log files.
NOTE: For nightly jobs, preserve one script file and the JobType input parameter to distinguish between nightly
jobs.
Script files are located in the %ALLUSERSPROFILE%\AppRecovery\Scripts folder:
In Windows 7, the path to locate the %ALLUSERSPROFILE% folder is: C:\ProgramData.
In Windows 2003, the path to locate the folder is: Documents and Settings\All Users\Application Data\.
NOTE: Windows PowerShell is required and must be installed and configured prior to using and executing
AppAssure 5 scripts.

Powershell Scripting Prerequisites

Before using and executing the PowerShell scripts for AppAssure 5, you must have Windows PowerShell 2.0 installed.
NOTE: Make sure to place the powershell.exe.config file in the PowerShell home directory. For example, C:
\WindowsPowerShell\powershell.exe.
powershell.exe.config
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0.30319"/>
<supportedRuntime version="v2.0.50727"/>
</startup>
</configuration>

Testing Scripts

If you want to test the scripts you plan to run, you can do so by using the PowerShell graphical editor, powershell_is.
You also need to add the configuration file, powershell_ise.exe.config to the same folder the configuration file,
powershell.exe.config.
9
149

Advertisement

Table of Contents
loading

Table of Contents