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

Tape library
Hide thumbs Also See for 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 includes comprehensive client software development kits (SDKs) for PowerShell
scripting that enables administrators to automate the administration and management of AppAssure
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 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 scripts.

Powershell scripting prerequisites

Before using and executing the PowerShell scripts for AppAssure, 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_ise. You also need to add the configuration file, powershell_ise.exe.config to the same folder
the configuration file, powershell.exe.config.
162
9

Advertisement

Table of Contents
loading

Table of Contents