![]() This command shows the successful/failed attempts to remove multiple folders. ![]() This command enables users to show results for batch actions performed when it precedes another command that permits batch actions.Įxample 1: Show-CUBatchResult Remove-CUFolder -FolderPath 'CUFolder' -ParentPath 'Organization Name' Shows batch results for the performed computer and folder commands. In the organizational tree, these computers are added to the "\SQLServers" folder path. The command searches for computers in the NTNET domain that contain "SQLSRV". Search-CUComputersFromAD -Domain NTNET -Name *SQLSRV* | Add-CUComputer -FolderPath “\SQL Servers” -Batch $b This command removes all computers from the folder path "\SQL Servers" that match the name "SQLSRV". ![]() Get-CUComputers -FolderPath “\SQL Servers” -Match SQLSRV | Remove-CUComputer -Batch $b This command enables users to publish batch updates when it precedes another command that permits batch actions. Publishes updates to the computer and folder commands. In the first two examples, computers "PC002" and "PC003" are in the domain "NTNET", and the third in the "NTNET.local" domain, with a distinct DNS name "". This command adds three computer to the "\SQL Servers" folder path in the organizational tree. This command enables users to perform batch updates when it precedes another command that permits batch actions.Īdd-CUComputer -Name PC002 -Domain NTNET -FolderPath "\SQL Servers" -Batch $bĪdd-CUComputer -Name PC003 -Domain NTNET -FolderPath "\SQL Servers" -Batch $bĪdd-CUComputer -Name PC004 -Domain NTNET.local -DnsName -FolderPath "\SQL Servers" -Batch $b Performs batch updates for the computer and folder commands. These commands enable you to perform batch actions Moves a managed machine to another folder. Removes a folder from the ControlUp organizational tree. Removes a managed machine from your ControlUp organization, but keeps the ControlUp Agent installed. Adds a new folder to your ControlUp organizational tree. Adds new machines to the your ControlUp organization. ![]() List all sites you added to your monitor settings. Lists all managed machines in your ControlUp organization. Lists all folder paths of your ControlUp organizational tree. Import-Module $pathToUserModule, $pathToMonitorModule $pathToMonitorModule = (Get-ChildItem "C:\Program Files\Smart-X\ControlUpMonitor\*" -Recurse | Sort-Object LastWriteTime -Descending) To load the modules, open a PowerShell session as administrator and run the following commands: $pathToUserModule = (Get-ChildItem "C:\Program Files\Smart-X\ControlUpMonitor\*" -Recurse | Sort-Object LastWriteTime -Descending) The monitor-specific cmdlets Clear-CUAAQueue, Get-CUAAQueue and Open-ControlUpMonitor can be found in the module. The module contains most PowerShell cmdlets mentioned in this article. With our PowerShell cmdlets, you can programmatically perform actions, giving you great control over your ControlUp environment as you can do things that would be otherwise too time-consuming or not possible in the GUI. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |