![]() ![]() This line will force the runbook to end in a “Warning” state, which will show as warning icon instead of successful icon on the web console. Basically, set the link to the Invalid Entry Published Data does not equal blank.įor Delete Computer Objects, just change it to failed: NET Script activities and these platform events. It’s important to also change the link between the Run. You can make these events say whatever you want for your environment. Here is what the setup for this event looks like (Invalid Entry): These events will show a message under the “Events” node of the web console, as illustrated here: You can find Platform Events under the Notification activity node. These are “Invalid Entry”, “Delete Failure”, and “Delete Success”. ![]() Next, we will go over the three Platform Event activities. The second and third lines deletes the object. The first line of this gets the computer name for us to use in the next step. $uf_names = “”Īgain, be sure to replace the placeholders with your actual site server and site code and replace the blue text with the real Published Data. $wmi = Get-WmiObject -computername -namespace “root\sms\site_ ” -class SMS_R_SYSTEM ![]() $uf_wmi_names = $wmi | select-object Name $uf_wmi_names = Get-WmiObject -computername -namespace “root\sms\site_ ” -class SMS_R_SYSTEM As the title says, this activity will validate the entries by checking SCCM for corresponding names or MAC addresses and split the values into an array. Name it “Split/Validate Entries” and change the language to PowerShell. Also, decide what character you want to use as a separator. I named mine “Computer Name(s)” and “MAC Address(es)”. The first step, Initialize Data, is under the Runbook Control activities. The user will be able to feed multiple computer names, MAC addresses, or both to the runbook. There is also error checking along the way. The runbook will take computer name and MAC address inputs and execute. The primary reason for this runbook is to be able to delete devices from a web browser using the Orchestration Web Console. This script works with SCCM 2012 – it has not been tested on SCCM 2007. This article will detail an Orchestrator Runbook that has the ability to delete devices from SCCM based on computer name or MAC address. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |