SDK and PowerShell
17 TopicsAdminService add/delete rules in collection
Hi I'm trying to add and delete devices from a collection via AdminService on Configuration manager 2203 from PowerShell. When I try the below command I receive an error Invoke-RestMethod -Method Post -Uri "https://<ServerName>/AdminService/wmi/SMS_Collection('<CollectionID>')/AdminService.AddMembershipRule" -Credential $Credentials -Body "{'collectionRule':{'RuleName':'<DeviceName>'}}" -ContentType "application/json" Error: Invoke-RestMethod : {"error":{"code":"500","message":"An error with description \"Could not get CCollectionRule* from instance\" occurred when performing MethodExecution operation on WMI class: SMS_Collection."}} At line:1 char:1 Error log AdminService.log Management exception caught: Could not get CCollectionRule* from instance System.Management.ManagementException: Not found at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) at System.Management.ManagementObject.InvokeMethod(String methodName, ManagementBaseObject inParameters, InvokeMethodOptions options) at Microsoft.ConfigurationManager.AdminService.ManagementObjectAbstraction.InvokeMethod(String methodName, IManagementBaseObject inParams, InvokeMethodOptions invokeOptions, WindowsIdentity windowsIdentity) I get the same error if I try to delete a device from a collection. Anybody able to help ?? Regards Martin1.8KViews0likes1CommentUpdate 2203 for Microsoft Endpoint Configuration Manager current branch is now available
Update 2203 for Microsoft Endpoint Configuration Manager current branch is now available. One of the exciting new features is the content distribution status visualizer. With it you can now monitor content distribution path and status in a graphical format.30KViews7likes11CommentsOrganize packages and update groups in Configuration Manager TP 2202
Update 2202 for the Technical Preview Branch of Microsoft Endpoint Configuration Manager has been released. In this release, Admins will be able to organize packages and update groups in a much better way using folders.13KViews3likes3CommentsUpdate 2111 for Microsoft Endpoint Configuration Manager current branch is now available
Update 2111 for Microsoft Endpoint Configuration Manager current branch is now available. We are excited to announce that two popular pre-release features, orchestration groups and application groups are now full features in this release.32KViews3likes8CommentsApplication approval improvements in ConfigMgr 1810
We have added several new improvements to application approvals in Configuration Manager current branch 1810. Machine-based pre-approved requests (SDK only) Re-approve a previously denied application request (SDK only) Email notifications for application approval requests including CMG support to enable approving the application outside of the internal network23KViews3likes10CommentsImprovements to the Windows Servicing Dashboard in Configuration Manager Technical Preview 2111
Update 2111 for the Technical Preview Branch of Microsoft Endpoint Configuration Manager has been released. We now display a Windows 11 Latest Feature Updates chart in the Windows Servicing dashboard.11KViews1like0CommentsUse Windows Update native experience with Configuration Manager Technical Preview 2105.2
Update 2105.2 for the Technical Preview Branch of Microsoft Endpoint Configuration Manager has been released. When installing software updates from Configuration Manager, you can now choose to use the native Windows Update interface and restart experience.30KViews4likes4CommentsDownload baselines from Community hub in Configuration Manager Technical Preview 2103
Update 2103 for the Technical Preview Branch of Microsoft Endpoint Configuration Manager has been released. Community hub now supports contributing and downloading configuration baselines including the child configuration items. This integration allows administrators to easily share and reuse configuration baselines and configuration items11KViews0likes2CommentsAdd reports as favorites in Configuration Manager Technical Preview 2102
Update 2102 for the Technical Preview Branch of Microsoft Endpoint Configuration Manager has been released. Instead of continually searching for reports you commonly use, you can now make a report a favorite. This action allows you to quickly access it from the new Favorites node.10KViews2likes1Comment