Security Controls simplifies many IT functions, including patch management, asset management and script execution. The machines that are being managed are referred to as the “target machines,” or “managed machines.”
The ITScripts feature supports four different script execution environments. In the Script Catalog Manager, these are distinguished by their target type.
Console scripts run on the console and do not target a group of managed machines. In the Script Catalog Manager, these have a target type of “Console” since the default target of script commands is the console (the local machine). These scripts are executed by selecting Tools > Run console ITScripts.
These scripts target a group of managed machines without using PowerShell remoting. In the Script Catalog Manager, these have a target type of “Any” since the target machines generally do not require any special configuration. These scripts are executed from the home screen, Machine View, or Scan View. The commands in this type of script typically specify the target computer and credentials by using the ComputerName and Credential parameters on the command.
These scripts target a group of managed machines using PowerShell remoting. In the Script Catalog Manager, these have a target type of “WinRM Remoting” and require that PowerShell remoting is configured on target machines. These scripts are executed from the home screen, Machine View, or Scan View. Because these scripts are executed on the target machine, the target of commands is typically the local machine, and therefore the ComputerName and Credential arguments do not need to be specified on the command.
The script runs against an ESXi Server or a vCenter Server. This type of script may use VMware vSphere PowerCLI. VMware vSphere PowerCLI lets you automate all aspects of vSphere management, including network, storage, VM, guest OS and more. Scripts of this type only run against machine groups that contain ESXi servers. If the machine group contains any other machines, they will be ignored when this script executes.