Configuration Iteam / baseline to check SCCM remote tools agent is in enable /disable state.

Question

Hi Experts,

We recently enabled SCCM remote tools agent in our environment.

Customer requirement is to check on how many machines Remote tools agent component got enabled till now .

How we can check that ? Can anyone guide me with the steps of creating CI for this ?

 

Thanks ,

Ketan Kamble

solved 0
Ketan Kamble 2 months 2021-02-25T13:06:30+05:30 2 Answers 23 views Beginner 0

Answers ( 2 )

    1
    2021-02-26T17:03:08+05:30

    Hi All ,

    Issue is fixed I simply created CB to check below registries.

    HKLM\SOFTWARE\Microsoft\SMS\Client\Client Components\Remote Control \ Enabled = 1
    HKLM\SOFTWARE\Microsoft\SMS\Client\Client Components\Remote Control \Permitted Viewers = “group set in viewer ”

    Thanks,
    Ketan Kamble

    Best answer
  1. You can probably use the first part of the BB script in Configuration Item to detect Remote tool agent component is enabled or not.

    DON’T use full script that is for enabling the remote tool

    https://docs.microsoft.com/en-us/mem/configmgr/develop/core/clients/remote-control/how-to-enable-and-disable-remote-tools
    ———
    Sub EnableDisableRemoteControlClientAgent(swbemServices, _
    swbemContext, _
    siteCode, _
    enableDisableClientAgent)

    ‘ Load site control file and get client component section.
    swbemServices.ExecMethod “SMS_SiteControlFile.Filetype=1,Sitecode=””” & siteCode & “”””, “Refresh”, , , swbemContext
    Set objSWbemInst = swbemServices.Get(“SMS_SCI_ClientComp.Filetype=1,Itemtype=’Client Component’,Sitecode='” & siteCode & “‘,ItemName=’Remote Control'”, , swbemContext)

    ‘ Display client agent settings before change.
    Wscript.Echo ” ”
    Wscript.Echo “Properties – Before Change”
    Wscript.Echo “—————————”
    Wscript.Echo objSWbemInst.ClientComponentName
    Wscript.Echo objSWbemInst.Flags & ” (0 = Disabled, 1 = Enabled)”

    ‘ Set the client agent by setting the Flags value to 0 or 1 using the enableDisableClientAgent variable.
    objSWbemInst.Flags = enableDisableClientAgent

    ‘ Save the new client agent settings.
    objSWbemInst.Put_ , swbemContext
    swbemServices.ExecMethod “SMS_SiteControlFile.Filetype=1,Sitecode=””” & siteCode & “”””, “Commit”, , , swbemContext

    ‘ Refresh the in-memory copy of the site control file and get the client component section.
    swbemServices.ExecMethod “SMS_SiteControlFile.Filetype=1,Sitecode=””” & siteCode & “”””, “Refresh”, , , swbemContext
    Set objSWbemInst = swbemServices.Get(“SMS_SCI_ClientComp.Filetype=1,Itemtype=’Client Component’,Sitecode='” & siteCode & “‘,ItemName=’Remote Control'”, , swbemContext)

    ‘ Display the client agent settings after the change.
    Wscript.Echo ” ”
    Wscript.Echo “Properties – After Change”
    Wscript.Echo “—————————”
    Wscript.Echo objSWbemInst.ClientComponentName
    Wscript.Echo objSWbemInst.Flags & ” (0 = Disabled, 1 = Enabled)”

    End Sub

Leave an answer

Sorry, you do not have a permission to answer to this question .