9Appendix A — ScriptingAbout Powershell ScriptingWindows 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 enablesadministrators to automate the administration and management of AppAssure 5 resources by the execution ofcommands through scripts.It lets administrative users execute user-provided PowerShell scripts at designated occurrences. For example, before orafter a snapshot, attachability and mountability checks, and so on. Administrators can execute scripts from both theAppAssure 5 Core and the agent. Scripts can accept parameters and the output of a script is written to core and agentlog files.NOTE: For nightly jobs, preserve one script file and the JobType input parameter to distinguish between nightlyjobs.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 executingAppAssure 5 scripts.Powershell Scripting PrerequisitesBefore 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 version="1.0"?> version="v4.0.30319"/> version="v2.0.50727"/>Testing ScriptsIf 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.149