The discussion inquired about the functionality of ControlUp Academy, a training platform that offers free self-training and instructor-led content. Certifications from ControlUp are also available. Suggestions were given on how to filter out machines without the agent in order to properly run a PowerShell script on all machines. Additionally, it was recommended to disconnect from all extensions and connect to a specific folder in order to avoid complications with unmanaged machines. Local machine accounts are used when running a script, but the agent must be connected to the tree for it to function properly.
Read the entire ‘Maximizing Use of ControlUp Academy and Running Scripts on All Machines’ thread below:
Hey all, i created a PS script to check the version of .net framework on all my machines. I want to run it against ALL the machines. I dont see the script show up when i select all 800+ machines. Is this a permission issue for the script or because some of the machines are linux and not able to run a powershell script on it so doesn’t give me the option at all…..?
You may have some machines without the agent in that selection.
ok ty, i’ll check it out
@member is there a way to filter out the ones with no agent?
https://support.controlup.com/docs/90-powershell-cmdlets
Absolutely. Enable grouping, drag status here, and then expand the “ready” machines.
u could also use that to pull the list of machines from the monitor and loop throught the check
If in Solve/DEX us the machines (Agent) instead of All.
sorry wrong article https://support.controlup.com/docs/controlup-powershell-commands
i dont see the “status” column header
Should be the first one in the machines view.
Probably need to set the column preset back to “Default”.
ok i can do that. how?
(also, thanks a million for your help!!)
If that doesn’t show it then reset the default view.
in the old console focus on hyperv ann group by status the status will have install agent
if it is an unmanaged vm
Thats the point, his SBA isn’t compatible with unmanaged.
OK THANKS
that may have worked
let me try again
dang i still dont see my script in the options
Ahh! Does the script show (draft)?
You can only run draft scripts on one machine at a time. You must “finalize” it first.
its finalized
So you right click one machine, its there. Right click 2, its gone?
nope, right click one it’s there, test like 10, its there
but all 500+ its GONE
Really sounds like your getting something wrong with the grouping somehow.
Disconnect from all your extensions at the top of the tree and try again. Things like all your hypervisors, XD Sites, Horizon, etc.
can i just disconnect the ROOT?
the “organization”?
You can but you need to connect to just the agents.
Just disconnect from all this.
then reconnect to it all?
You don’t need extensions to run your script. In fact its probably not helping you filter out the unmanaged machines.
Its just complicating things if you can’t filter those out of your right click selection. If your not connected they won’t show in the grid and won’t be in your way as far as the selection goes.
a lot of what i need to run this on is in the vcenter hypervisor folder
Doesn’t matter. The SBA will need the agent. If the machine is not seen when your not connected to the hypervisor then the machine needs to be added to the tree.
ok so i disconnected from ALL
Cool. Just connect to a folder instead.
then just connected to vcenter and a couple othjer folders. seems to work now
vCenter will not work. You need to connect to the folder.
CU collects data from a machine from numerous data sources (hypervisor, EUC sites, and the agent). In guest SBAs run from the agent.
ok thanks
The tree is just a list of data sources. Nothing more.
SBA?
Script based action.
oh duh
haha
does the script run as local machine account or the user im logged into CU as?
And what you connect to in the tree affects what you see in the grid.
By default on the endpoint running as system and executed by the agent.
Therefore you need to be connected to the AGENT.
ok perfect Thanks so much
Continue reading and comment on the thread ‘Maximizing Use of ControlUp Academy and Running Scripts on All Machines’. Not a member? Join Here!
Categories: All Archives, ControlUp Scripts & Triggers