Scripted Event Documentation - Microsoft Office 365
Contributors Download PDF of this page
Global Scripts Overview
NetApp VDS includes a library of pre-defined scripted events that can be used directly in VDS environments and/or duplicated and used as the building blocks for custom scripted events.
For this application, this article covers both the install/enable and uninstall/disable action.
Global Script Use
Built-in scripted events such as this one are pre-populated, checking the "global" filter checkbox will display them.
Global Scripted Events such as this one are read-only. They can be used as-is or the "Clone" function can be used to create a customer copy for editing and use.
The Clone button is found in the action menu on the Scripted Events page.
Microsoft Office 365 overview
This script package installs/uninstalls Microsoft Office using the Chocolatey package manager (https://chocolatey.org/) to do the deployment. Chocolatey is deployed by VDS when VMs are created but this script will also check and install Chocolatey as a prerequisite if it is missing.
|This Microsoft Office 365 install script does not include Microsoft Teams or Microsoft One Drive. These are included as stand-alone automated scripts to allow for greater flexability as some deployments do not require these applications. This deployment can be copied and edited to include them (or to change any other Office Deployment Tool settings) by cloning the Script from VDS and editing the InstallMicrosoftOffice365.ps1 to input different values into the xml config file.|
Default shortcut path
The default shortcut path will be entered below, for this application the shortcut is:
Add activity dialog window screenshot
Add application install/uninstall activity
In order for a script in the repository to take any action, an activity must be created to associate that script with a selected trigger. In this example activity will install/uninstall this application when the app is added to or removed from the workspace (from the Workspace > Applications page in VDS).
VDS scripted events offers many other types of activity triggers such as Create Server which could be used as an alternative to the Application Install (or Application Uninstall) event type. Using Create Server would simply run this app install against all newly created VMs in VDS. Create Server and other triggers are documented and can be explored here.
|This application will need to be present in the VDS application library. This section of the app entitlement for RDS article covers adding apps to the library.|
Navigate to the Scripted Events section in VDS
Under Activities click + Add Activity
In the opened dialog window enter the following information:
Name: Name this activity
Description: Optionally enter a description
Deployment Select the desired deployment from dropdown
Script: Select the install (or uninstall) script from the dropdown. This could be the global script or customer script you’ve cloned and customized.
Arguments: Leave blank
Event Type: Select
Application Install(or Application Uninstall) from dropdown
Application: Select this application from dropdown
Shortcut Path: Enter the default shortcut path for this application (noted above)