ControlUp's new script batch features four categories, with the focus of this blog post on scripting using new CUActions APIs. This includes 'List Available CUActions', 'Power On Generic VM', 'Force Power Off Generic VM', and 'Logoff Disconnected Sessions'. The post details how to write and use these scripts, including techniques for loading the appropriate DLL, identifying and invoking the correct CUAction, and querying the monitor table. The 'Logoff Disconnected Sessions' script, for instance, fetches data in chunks and logs off all disconnected sessions for a selected user.
Read the entire article here...
PowerShell Related Training & Support Archives
PowerShell training and support-related archives from inside the ControlUp Community on Slack.
Troubleshooting ControlUp Script Show Horizon View Usage
A user asked about the ControlUp script https://www.controlup.com/script-library-posts/show-horizon-view-usage/. An error occurred due to a missing module ("VMware.VimAutomation.HorizonView") which can be resolved by installing it with a 'Install-Module' command using the '-Scope AllUsers' parameter. The need for the scope was explained, and additional tips were provided regarding Automated Actions and where the script should run. An update to the script will be available in the July release.
Read the entire article here...
Read the entire article here...
Best Practices for Upgrading ControlUp on a New VM
Users discussed best practices for upgrading ControlUp by moving it to a new VM; this includes backing up the Console machine's appdata folder and republishing the configuration, as well as reusing the existing database. It was suggested that the platform's consoles and monitors should logon to the new name and IP, while the agent auth key should be migrated using PowerShell commands. Uninstalling the monitors and data collectors was suggested because of the name change.
Read the entire article here...
Read the entire article here...
Automating a Reboot with Two Triggers in ControlUp
A user was looking for a way to reboot a server after an Event Viewer error had triggered maintenance mode and logged out all users. It was suggested to use two triggers - the first would put the server into maintenance mode and set a registry key, and the second would check the registry key and if it was present, reboot the server. The use of a PowerShell script was offered to create the registry key in the first trigger. To ensure that only servers with the 1005 error code were rebooted, the registry key would need to be checked.
Read the entire article here...
Read the entire article here...
How to automate “Force Reset VM” in the real-time console for a ControlUp Trigger?
A user asked if there is a way to automate a 'Force Reset VM' using the real-time console for a trigger. The ControlUp 8.8 Powershell module includes the option to use Solve Actions for this need. A sample script will be available at the end of the month.
Read the entire article here...
Read the entire article here...
What command is executed when you right click on a proces and “kill process”?
When right-clicking on a process and selecting "kill process" using the RT Console, the user asked what command is being executed. They needed to create an automated action to kill winlogon.exe, which is preventing sessions from logging out. It was suggested that they use the Powershell Cmdlets for SOLVE Actions, as found in the ControlUp documentation. Alternatively, a stop-process force or taskkill can be used as part of a logoff trigger.
Read the entire article here...
Read the entire article here...
Anyone used the ControlUp Powershell module to automate adding new servers to ControlUp?
Has anyone used the ControlUp powershell module to automate adding new servers to ControlUp?
Read the entire article here...
Read the entire article here...
Troubleshooting PowerBi Connections to ControlUp Edge DX API
A user could not connect MS Power Query or PowerBi to the Edge API and receive a list of table metadata, not the actual data. Another user suggested the query: "= Table.ExpandRecordColumn(#"Converted to Table1", "Column1", ... " and shared basic Web connector settings for the user to try. The user thanked the second user for their help.
Read the entire article here...
Read the entire article here...
Bypassing Group Policy for PowerShell Scripts
A user was trying to run a PowerShell script in a script action, but was having issues due to an execution policy blocking the script. The user wanted to know if it was possible to bypass the group policy, to which it was suggested this would be seen as a security vulnerability by Microsoft. A workaround of setting the execution policy on the current user was suggested and seemed to work.
Read the entire article here...
Read the entire article here...
Suggestion for Script to Create Log Bundles with ControlUp Infrastructure Servers
A user suggested creating a script to generate log bundles with logs from ControlUp infrastructure servers such as SBA, COP, IOP, etc. An example of such a script was AppSense-Support.vbs and this was used to successfully retrieve the logs. The ControlUp Script Library includes a script (https://www.controlup.com/script-library-posts/deploy-log4net-for-controlup-processes/) for generating log bundles for Cloud components, although it is more complicated to do so for on-prem components due to the large size of the logs.
Read the entire article here...
Read the entire article here...