question

BoopathiSubramaniam-6294 avatar image
0 Votes"
BoopathiSubramaniam-6294 asked Jason-MSFT commented

Delete SCCM Content Library

Hi,

Distribution Role is removed. But SCCMContentLib still exits. Below command is prompting below message even command prompt is opened as administrator.

ContentLibraryCleanup.exe /dp server.fqdn.com /delete


Gathering information...
Loading information from distribution point...
System.Management.ManagementException: Unable to access remote WMI. Please ensur
e that the WMI providers for the site and on the distribution point are both run
ning, and that you have RBAC access to them. You must be running this tool as a
user with administrative rights on the target distribution point. ---> System.Ma
nagement.ManagementException: Unable to access remote WMI. Please ensure that th
e WMI providers for the site and on the distribution point are both running, and
that you have RBAC access to them. You must be running this tool as a user with
administrative rights on the target distribution point. ---> System.Management.
ManagementException: Registry string retrieval was not successful.
at Microsoft.ConfigurationManager.ContentLibraryCleanup.Utils.GetRegistryStri
ngValue(ManagementClass regClass, String subkey, String valueName)
--- End of inner exception stack trace ---
at Microsoft.ConfigurationManager.ContentLibraryCleanup.Utils.GetRegistryStri
ngValue(ManagementClass regClass, String subkey, String valueName)
at Microsoft.ConfigurationManager.ContentLibraryCleanup.CLContentLibrary..cto
r(String remoteDPFqdn, String primarySiteServerFqdn, String primarySiteCode)
--- End of inner exception stack trace ---
at Microsoft.ConfigurationManager.ContentLibraryCleanup.CLContentLibrary..cto
r(String remoteDPFqdn, String primarySiteServerFqdn, String primarySiteCode)
at Microsoft.ConfigurationManager.ContentLibraryCleanup.Program.Main(String[]
args)

mem-cm-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Amandayou-MSFT avatar image
0 Votes"
Amandayou-MSFT answered Amandayou-MSFT commented

Hi @BoopathiSubramaniam-6294,

The user account that runs the tool must have permissions the same as the Full Administrator security role in Configuration Manager. Please check if the account has the permission.

Use the content library cleanup command-line tool to remove content that's no longer associated with an object on a distribution point. This type of content is called orphaned content. This tool replaces older versions of similar tools released for past Configuration Manager products.

Here is the article about Content library cleanup tool, please refer to it:
https://docs.microsoft.com/en-us/mem/configmgr/core/plan-design/hierarchy/content-library-cleanup-tool#command-line-parameters



If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Note: Non-Microsoft link, just for the reference.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Just checking in to see if there is any update. May we know the current status of the question? If there is any other assistance we can provide, please feel free to let us know, we will do our best to help you.

Thanks and regards,
Amanda

0 Votes 0 ·
Jason-MSFT avatar image
0 Votes"
Jason-MSFT answered BoopathiSubramaniam-6294 commented

Distribution Role is removed.

Removed from where?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello Jason,

Under \Administration\Overview\Site Configuration\Servers and Site System Roles
I
Right Click Distribution Point Role on the "Distribution Point" and Remove Role

0 Votes 0 ·
Jason-MSFT avatar image
0 Votes"
Jason-MSFT answered Jason-MSFT commented

And is the system also the primary site server?

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello Jason,

Site System also deleted from the primary for the Role created for distribution point.

0 Votes 0 ·
Jason-MSFT avatar image Jason-MSFT BoopathiSubramaniam-6294 ·

That's not my question. I asked if the system is the primary site server?

0 Votes 0 ·