A user asked for an existing PowerShell script to show published apps by delivery group. A suggested script of Get-BrokerDesktopGroup, Get-BrokerApplication, and Select Name was provided and the user received the necessary help.
Read the entire article here...
PowerShell Related Training & Support Archives
PowerShell training and support-related archives from inside the ControlUp Community on Slack.
Troubleshooting Scheduled Task with PS1 on Intune Laptop
A user encountered an issue pushing a PS1 to a remote Intune laptop to create a scheduled task. Suggestions to include code to set the output encoding to ensure non-ASCII characters are captured, and to set the principal for the task to run as system were offered. The user ultimately found success in adding code to set the principal for the task.
Read the entire article here...
Read the entire article here...
Error “there was an error accessing the service” on an EUC environment
A user encountered an error accessing the service in their EUC environment, even when the broker was available and accessible on port 80 and shared credentials were working. They tried port 443 but the same error occurred. It was suggested that they use the Data Collector's installed Citrix PoSh SDK to see why it was failing, but were unable to do so due to no trust between domains. The user suggested it had been working until some days ago. It was suggested to look at the other side as all parts on the ControlUp side were working.
Read the entire article here...
Read the entire article here...
Triggering ControlUp Automation with Scoutbees Alerts
A user asked if an alert from Scoutbees can trigger a ControlUp automated action. It was suggested to run scripts using ControlUp Automation to interact with Scoutbees. An idea was proposed to create an error log in the events, and for ControlUp RealTime to trigger an automation from that event. Additionally, writing a script to either put the server into maintenance mode or reboot was considered. ControlUp RealTime currently only has the ability to execute native actions through PowerShell commandlets and the follow up actions can call web hooks.
Read the entire article here...
Read the entire article here...
Finding Multiple User Sessions for a Specific Application in ControlUp
A user asked for the best way to see which users are running multiple sessions of the same application. It was suggested to use the "published application usage details report" or the "Session - Activity" report, and to further narrow down the required data, use PowerShell API. It was also mentioned that the result needs to be run on a monitor. The full instruction can be found at https://support.controlup.com/v1/docs/invoke-cuquery#example-6-search-for-all-machines-with-the-name-monitor.
Read the entire article here...
Read the entire article here...
Creating a ControlUp Trigger to Check if Log File is Changed
A user asked about creating a trigger file that notifies an email if a log file is not changed for two days. Solutions proposed include making a custom event log entry and using the System.IO.FileSystemWatcher class. The user found a potential solution and will update the discussion with their results.
Read the entire article here...
Read the entire article here...
Running Nutanix CLI Commands From the ControlUp Console
A user asked if it was possible to run Nutanix CLI commands from the ControlUp console, and if it was possible through the PowerShell module or REST API. It was suggested that if the CLI tools and firewall are open, this might be possible. One member shared that they have a similar solution which involves SSH'ing into the Nutanix host, plus the OpenSSH Powershell module installed. The member agreed to share their solution.
Read the entire article here...
Read the entire article here...
How to set a ControlUp Trigger with multiple schedules?
Users discussed finding a clean way to set a trigger with multiple schedules for monitoring Horizon services. It was suggested to use a PowerShell script with IF logic for this. To prevent getting emails when the server closes for patching, a maintenance window could be set, with a different action taken if the service is down for more than 30 minutes. ControlUp's Realtime DX can be used to set a custom schedule. An example script was provided, which requires the user to edit it with the event IDs they want to monitor for and any services to be excluded. This thread can be added to the FAQ page.
Read the entire article here...
Read the entire article here...
Testing File Share Availability Using a Shell Scout
A user asked about testing file share availability which can be done wtih a Shell Scout - this can be done using a PowerShell script that checks the share and exits with a code != 0 if it fails. To handle permission access issues, a PowerShell script can be amended by adding a credential to the test-path command. More information can be found at: https://support.controlup.com/docs/shell-execution and https://devblogs.microsoft.com/scripting/powertip-test-the-presence-of-a-remote-share-by-using-powershell/.
Read the entire article here...
Read the entire article here...
Script for Monitoring Published App and Desktop Session Statistics with ControlUp
A user shared a script for a furniture company that was designed to show the number of sessions for published apps and desktops, and the percentage of the total for each of them. The script must be run on the ControlUp Monitor version 8.6.5 or newer and it was modified to allow for large amounts of sessions. The results use Export-CUQuery instead of Invoke-CUQuery. The discussion also included tips regarding color scheme and location.
Read the entire article here...
Read the entire article here...
