A user asked about how to run a PowerShell script and view the output for desktops on ControlUp. Gemini provided a helpful answer, explaining that a script can be created and run through the Scripts section in the ControlUp for Desktops console, with the output appearing in the Device Events log. The user tagged @member for feedback on this process. The steps to create a SIP event script were also provided.
Read the entire ‘How to Run and View Output from PowerShell Scripts on ControlUp for Desktops’ thread below:
I’ve a powershell script that I want to run and see the output from, when doing this for VDI I just use Action menu and select my script and get the output in my browser session.
How is it supposed to work for desktop? do I need to create a custom report which seems a bit overkill or I’m missing something trivial?
Gemini gave a really good answer…
AI Overview
+4
To create a ControlUp script for a "SIP event," you should understand that "SIP" refers to the ControlUp for Desktops (Edge DX) agent/platform itself. You would create a script, often a PowerShell script for Windows devices, and place your desired command or data collection logic between ### SIP EVENT BEGINS ### and ### SIP EVENT ENDS ### to send the output to the Device Events log. This allows you to collect custom data, such as specific event logs, or perform administrative tasks for later analysis and automation within the ControlUp platform.
Steps to Create a SIP Event Script
- Navigate to Scripts:
In the ControlUp for Desktops console, go to Configuration and then select Scripts.
- Add a New Script:
Click Add Script and choose the desired operating system (e.g., Windows) and scripting language (e.g., PowerShell).
- Write Your Script:
Enter your PowerShell commands to gather the necessary data or perform an action.
- Define SIP Event Output:
Enclose the output of your commands within the special markers:
Code
Write-Output "### SIP EVENT BEGINS ###"
# Your PowerShell commands and data collection logic here
Write-Output $EventList | Format-List # Example: output specific event data
Write-Output "### SIP EVENT ENDS ###"
Write-Output: This cmdlet is used to send the data to the output.
SIP EVENT BEGINS ### / ### SIP EVENT ENDS ###: These specific lines tell ControlUp to treat the enclosed output as a "SIP Event".
Save the Script: Save the script to your ControlUp environment.
Run the Script: You can run the script manually from the Actions dropdown on a target device or schedule it to run automatically using triggers.
View the Output: The output will appear in the Device Events log for the targeted devices.
So basically:
- Create your PowerShell script
- Make sure you add the SIP event begins / ends thing
- Run the script
- Watch the script output in Device events in our web UI
good luck
Thnx got it working, still prefer the way you do this VDI tho 🙂
Me too!
Tagging @member so he can see your feedback, since he’s working a project related to the CU4D scrip library
Continue reading and comment on the thread ‘How to Run and View Output from PowerShell Scripts on ControlUp for Desktops’. Not a member? Join Here!
Categories: All Archives, ControlUp for Desktops, ControlUp Scripts & Triggers
