Difference between revisions of "Endpoint Configuration Manager"

From Hornbill
Jump to navigation Jump to search
(Replaced content with "This document can now be found at its new location in the [https://docs.hornbill.com/itom-packages/welcome Hornbill Document Library]. file:hornbill-document-librar...")
Tag: Replaced
Line 1: Line 1:
{{bluebanner|[[Main_Page|Home]] > [[Administration]] > [[IT_Operations_Management|IT Operations Management]] > [[ITOM_Package_Library|ITOM Package Library]] > Endpoint Configuration Manager|[[:Category:ITOM|Index]]}}
+
This document can now be found at its new location in the [https://docs.hornbill.com/itom-packages/welcome Hornbill Document Library].
[[File:microsoft_logo.png|microsoft_logo.png|300px]]
 
{{IntroAndLinks|The Endpoint Configuration Manager package for Hornbill's IT Operations Management (ITOM) contains operations to manage Microsoft Endpoint Configuration Manager Devices, Scripts, Packages and Discoveries.
 
|
 
<!-- Related Links go here -->
 
:* [[IT_Operations_Management|IT Operations Management]]
 
:* [[Business_Process_Designer|Business Process Designer]]
 
:* [[Hornbill_KeySafe|KeySafe]]
 
}}
 
  
==Target Environment Requirements==
+
    [[file:hornbill-document-library.png|ITOM Package Reference|link=https://docs.hornbill.com/itom-packages/welcome]]
 
 
===Script Execution Machine Requirements===
 
 
 
* PowerShell v5.0 or above;
 
* The ConfigurationManager PowerShell module needs to installed on the machine that will be executing the operations;
 
* If the script execution policy on the machine executing these operations is set to Restricted, then this will need to be updated to something less restrictive. See the [https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-5.1 PowerShell Documentation] for more information.
 
 
 
==KeySafe Configuration==
 
[[File:Itomtarget_keysafe.png|300px|right|link=https://wiki.hornbill.com/images/d/d2/Itomtarget_keysafe.png]]
 
 
 
When creating SIS jobs for operations contained within this package, they need to be run on the target machine as a user who has the correct privileges on the target.
 
 
 
To configure your '''Target Machine''' account authentication in '''[[Hornbill_KeySafe|KeySafe]]''':
 
 
 
* In the Admin console, navigate to: System > Security > KeySafe;
 
* Click on + then select <code>Username + Password</code>;
 
* Give the KeySafe Key a Title (this is the name/identifier for the target machine account as you will see it when creating an IT Automation Job, or adding an IT Automation node to a Business Process or Runbook);
 
* Optionally add a description;
 
* Populate the Username field with the domain/local account username for the account being used on the target machine;
 
* Populate the Password field with the password for the above account;
 
* Select Create Key to save.
 
 
 
Once you have created your KeySafe Key, you can then use it when creating IT Automation Jobs from this package. See screenshots to the right for examples.
 
 
 
==Package Operations==
 
[[File:Ecmv2_job.png|300px|right|link=https://wiki.hornbill.com/images/8/8a/Ecmv2_job.png]]
 
 
 
The Endpoint Configuration Manager package contains the following operations, than can be used to create ITOM Jobs directly, or included in your [[Business_Process_Designer|Business Processes]] and/or IT Operations Management Rubooks.
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
===Device - Add To Collection===
 
<div class="mw-collapsible-content">
 
This operation adds a Device to a Collection. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/add-cmdevicecollectiondirectmembershiprule?view=sccm-ps Add-CMDeviceCollectionDirectMembershipRule cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>DeviceName</code> '''(MANDATORY)''' - The name of the Device;
 
* <code>CollectionName</code> '''(MANDATORY)''' - The name of the Collection.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
===Device - Approve===
 
<div class="mw-collapsible-content">
 
This operation approves a Configuration Manager Device. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/approve-cmdevice?view=sccm-ps Approve-CMDevice cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>DeviceName</code> '''(MANDATORY)''' - The name of the Device.
 
* <code>Server</code> - The FQDN for Endpoint Configuration Server
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
===Device - Block===
 
<div class="mw-collapsible-content">
 
This operation blocks a Configuration Manager Device. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/block-cmdevice?view=sccm-ps Block-CMDevice cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>DeviceName</code> '''(MANDATORY)''' - The name of the Device.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
 
 
===Device - Get Details===
 
<div class="mw-collapsible-content">
 
This operation returns information about a Configuration Manager Device. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/get-cmdevice?view=sccm-ps Get-CMDevice cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>DeviceName</code> '''(MANDATORY)''' - The name of the Device.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation;
 
* <code>adSiteName</code> - The AC Site Name where the Device resides;
 
* <code>clientState</code> - The Client State;
 
* <code>coManaged</code> - Co-Managed?;
 
* <code>deviceOS</code> - The Device OS;
 
* <code>domain</code> - The Domain the Device belongs to;
 
* <code>epDeploymentState</code> - The EP Deployment State;
 
* <code>isAssigned</code> - Is Assigned?;
 
* <code>isClient</code> - Is Client?;
 
* <code>isDecommissioned</code> - Is Decommissioned?;
 
* <code>isDirect</code> - Is Direct?;
 
* <code>name</code> - The Device Name;
 
* <code>resourceId</code> - The Resource ID;
 
* <code>resourceType</code> - The Resource Type.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
 
 
===Device - Remove===
 
<div class="mw-collapsible-content">
 
This operation removes a Configuration Manager Device. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/remove-cmdevice?view=sccm-ps Remove-CMDevice cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>DeviceName</code> '''(MANDATORY)''' - The name of the Device.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
===Device - Remove From Collection===
 
<div class="mw-collapsible-content">
 
This operation removes a Configuration Manager Device from a Collection. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/remove-cmdevicecollectiondirectmembershiprule?view=sccm-ps Remove-CMDeviceCollectionDirectMembershipRule cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>DeviceName</code> '''(MANDATORY)''' - The name of the Device;
 
* <code>CollectionName</code> '''(MANDATORY)''' - The name of the Collection to remove the Device from.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
 
 
===Device - Unblock===
 
<div class="mw-collapsible-content">
 
This operation unblocks a Configuration Manager Device. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/unblock-cmdevice?view=sccm-ps Unblock-CMDevice cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>DeviceName</code> '''(MANDATORY)''' - The name of the Device.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
 
 
===Invoke Discovery - System===
 
<div class="mw-collapsible-content">
 
This operation invokes a System Discovery in a Configuration Manager Site. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/invoke-cmsystemdiscovery?view=sccm-ps Invoke-CMSystemDiscovery cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
 
 
===Invoke Discovery - User===
 
 
 
<div class="mw-collapsible-content">
 
This operation invokes a User Discovery in a Configuration Manager Site. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/invoke-cmuserdiscovery?view=sccm-ps Invoke-CMUserDiscovery cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
 
 
===Package - New Deployment===
 
 
 
<div class="mw-collapsible-content">
 
This operation creates a package deployment to a Configuration Manager collection. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/new-cmpackagedeployment?view=sccm-ps New-CMDeployment  cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>PackageName</code> - The name of the Package;
 
* <code>ProgramName</code> - The name of the Program within the Package;
 
* <code>CollectionName</code> - The name of the Collection to deploy the Package to;
 
* <code>ScheduleEvent</code> - One of: AsSoonAsPossible / LogOff / LogOn / SendWakeUpPacket;
 
* <code>DeployPurpose</code> - One of: Available / Required;
 
* <code>StandardProgram</code> - Indicates that the program type in the deployment package is standard program;
 
* <code>SendWakeupPacket</code> - Indicates whether to send a wake up packet to computers before the deployment begins;
 
* <code>Rerun</code> - Indicates whether the deployment reruns. If this value is True, the deployment runs again for clients as specified in the RerunBehavior parameter. If this value is fFalse, the deployment does not run again;
 
* <code>RerunBehavior</code> - One of: AlwaysRerunProgram / NeverRerunDeployedProgram / RerunIfFailedPreviousAttempt / RerunIfSucceededOnpreviousAttempt;
 
* <code>SoftwareInstallation</code> - Indicates whether to install the deployed software outside of maintenance windows;
 
* <code>SystemRestart</code> - Indicates whether a system restarts outside a maintenance window;
 
* <code>PersistOnWriteFilterDevice</code> - Indicates whether to enable write filters for embedded devices;
 
* <code>FastNetworkOption</code> - One of: RunProgramFromDistributionPoint / DownloadContentFromDistributionPointAndRunLocally;
 
* <code>SlowNetworkOption</code> - One of: DoNotRunProgram / DownloadContentFromDistributionPointAndLocally / RunProgramFromDistributionPoint;
 
* <code>AllowSharedContent</code> - Indicates whether clients use shared content;
 
* <code>Comment</code> - Specify a Comment for the Deployment;
 
* <code>UseMeteredNetwork</code> - Indicates whether to allow clients to download content over a metered Internet connection after the deadline, which may incur additional expense;
 
* <code>AllowFallback</code> - Indicates whether to Allow Fallback.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation;
 
* <code>advertisementId</code> - The Advertisement ID;
 
* <code>advertisementName</code> - The Advertisement Name;
 
* <code>packageId</code> - The Package ID;
 
* <code>collectionId</code> - The Collection ID.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
 
 
===Package - Start Deployment===
 
 
 
<div class="mw-collapsible-content">
 
This operation creates a package deployment to a Configuration Manager collection. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/start-cmpackagedeployment?view=sccm-ps Start-CMDeployment  cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>PackageName</code> - The name of the Package;
 
* <code>ProgramName</code> - The name of the Program within the Package;
 
* <code>CollectionName</code> - The name of the Collection to deploy the Package to;
 
* <code>ScheduleEvent</code> - One of: AsSoonAsPossible / LogOff / LogOn / SendWakeUpPacket;
 
* <code>DeployPurpose</code> - One of: Available / Required;
 
* <code>StandardProgram</code> - Indicates that the program type in the deployment package is standard program;
 
* <code>SendWakeupPacket</code> - Indicates whether to send a wake up packet to computers before the deployment begins;
 
* <code>Rerun</code> - Indicates whether the deployment reruns. If this value is True, the deployment runs again for clients as specified in the RerunBehavior parameter. If this value is fFalse, the deployment does not run again;
 
* <code>RerunBehavior</code> - One of: AlwaysRerunProgram / NeverRerunDeployedProgram / RerunIfFailedPreviousAttempt / RerunIfSucceededOnpreviousAttempt;
 
* <code>SoftwareInstallation</code> - Indicates whether to install the deployed software outside of maintenance windows;
 
* <code>SystemRestart</code> - Indicates whether a system restarts outside a maintenance window;
 
* <code>PersistOnWriteFilterDevice</code> - Indicates whether to enable write filters for embedded devices;
 
* <code>FastNetworkOption</code> - One of: RunProgramFromDistributionPoint / DownloadContentFromDistributionPointAndRunLocally;
 
* <code>SlowNetworkOption</code> - One of: DoNotRunProgram / DownloadContentFromDistributionPointAndLocally / RunProgramFromDistributionPoint;
 
* <code>AllowSharedContent</code> - Indicates whether clients use shared content;
 
* <code>Comment</code> - Specify a Comment for the Deployment;
 
* <code>UseMeteredNetwork</code> - Indicates whether to allow clients to download content over a metered Internet connection after the deadline, which may incur additional expense.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation;
 
* <code>advertisementId</code> - The Advertisement ID;
 
* <code>advertisementName</code> - The Advertisement Name;
 
* <code>packageId</code> - The Package ID;
 
* <code>collectionId</code> - The Collection ID.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
 
 
===Script - Approve===
 
 
 
<div class="mw-collapsible-content">
 
This operation approves a Configuration Manager PowerShell script. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/approve-cmscript?view=sccm-ps Approve-CMScript cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>ScriptGUID</code> '''(MANDATORY)''' - The GUID of the Script;
 
* <code>Comment</code> - An optional Comment.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
 
 
===Script - Deny===
 
 
 
<div class="mw-collapsible-content">
 
This operation denies a Configuration Manager PowerShell script. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/deny-cmscript?view=sccm-ps Deny-CMScript cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>ScriptGUID</code> '''(MANDATORY)''' - The GUID of the Script;
 
* <code>Comment</code> - An optional Comment.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
 
 
===Script - Get Details===
 
 
 
<div class="mw-collapsible-content">
 
This operation gets information about a Configuration Managerscript. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/get-cmscript?view=sccm-ps Get-CMScript cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>ScriptName</code> '''(MANDATORY)''' - The Name of the Script.
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation;
 
* <code>author</code> - The Script Author;
 
* <code>lastUpdateTime</code> - The date/time the Script was last updated;
 
* <code>scriptGuid</code> - The Script GUID;
 
* <code>scriptType</code> - The Script Type;
 
* <code>scriptVersion</code> - The Script Version;
 
* <code>approver</code> - The Script Approver;
 
* <code>approvalState</code> - The Script Approval State.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
 
 
===Script - Invoke===
 
 
 
<div class="mw-collapsible-content">
 
This operation invokes a Configuration Manager PowerShell script. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/invoke-cmscript?view=sccm-ps Invoke-CMScript cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>ScriptGUID</code> '''(MANDATORY)''' - The GUID of the Script;
 
* <code>DeviceName</code> - The name of the Device to invoke the script on. Populate this or <code>CollectionName</code>;
 
* <code>CollectionName</code> - The name of the Collection to invoke the script on. Use this or <code>DeviceName</code>.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation;
 
* <code>operationId</code> - The ID of the script invoke operation.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
 
 
===User - Add Device Affinity===
 
 
 
<div class="mw-collapsible-content">
 
This operation adds device affinity to a Configuration Manager user. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/add-cmdeviceaffinitytouser?view=sccm-ps Add-CMDeviceAffinityToUser cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>DeviceName</code> '''(MANDATORY)''' - The name of the Device;
 
* <code>UserName</code> '''(MANDATORY)''' - The Username of the User.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation.
 
</div></div>
 
 
 
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 
 
 
===User - Remove Device Affinity===
 
 
 
<div class="mw-collapsible-content">
 
This operation removes device affinity from a Configuration Manager user. See the [https://docs.microsoft.com/en-us/powershell/module/configurationmanager/remove-cmdeviceaffinityfromuser?view=sccm-ps Remove-CMDeviceAffinityFromUser cmdlet documentation] for more information.
 
 
 
====Extra Credentials====
 
 
 
None required.
 
 
 
====Input Parameters====
 
 
 
* <code>SiteID</code> '''(MANDATORY)''' - The ID of the target Config Manager Site;
 
* <code>DeviceName</code> '''(MANDATORY)''' - The name of the Device;
 
* <code>UserName</code> '''(MANDATORY)''' - The Username of the User.
 
* <code>Server</code> - The FQDN for Configuration Manager Server
 
 
 
====Output Parameters====
 
 
 
* <code>errors</code> - Any errors returned by the operation;
 
* <code>outcome</code> - Outcome of the operation. Can be OK or FAIL;
 
* <code>warnings</code> - Any warnings returned by the operation.
 
</div></div>
 
 
 
 
 
[[Category:ITOM]]
 

Revision as of 14:50, 12 February 2024

This document can now be found at its new location in the Hornbill Document Library.

   ITOM Package Reference