Modules
Sign in
Get Help

Compliance Manager GRC - Scripting Local Computer Data Collection for ConnectWise Automate

 

BEFORE YOU BEGIN

 

The instructions below have been kindly provided to Rapidfire Tools support by another of Rapidfire Tools customers that has managed to successfully automate the Local Computer Data Collection for Compliance Manager GRC.

 

Rapidfire Tools DOES NOT support 3rd Party RMM Tools. This document is to be used as a reference for Connectwise Automate Users that are familiar with ConnectWise Automate scripting.

Note: The resolution in the screen captures pasted into this article are a bit unclear therefore a pdf with better resolution screen captures has been attached. 

ConnectWise Automate - Scripting Local Computer Scan for Compliance Manager GRC

 

  1. Create an additional field where you could store the Upload ID for each of your clients in ConnectWise Automate. The example below uses a field called Connector ID but you could call it "Upload ID" so that it matches the name in GRC.


    mceclip1.png

  2. Once you've created an additional field you should see that field available for each of your clients (see example below). That field should be populated with the Upload ID associated with that client in the GRC site in Rapidfire Tools Portal.
     
    mceclip2.png

    Note: To obtain the Upload ID for a site in the portal log into the RFT portal, go into the site you created for the client, and navigate to Compliance Manager GRC > Data Collection > Data Collectors (see below).

    mceclip3.png

  3. Create a new script in ConnectWise Automate using the following settings or copy paste the script below into Connectwise Automate:

    mceclip4.png

    Param(

        [string]$ConnectorID

    )

     

    # Remove Compliance Manager directories

    Remove-Item -Path "C:\LocalScanOutput" -force -Recurse

    Remove-Item -Path "C:\LocalDataCollector" -force -Recurse

    Remove-Item -Path "C:\Connector" -force -Recurse

     

    # Make Compliance Manager Directories

    mkdir "C:\LocalScanOutput"

    mkdir "C:\LocalDataCollector"

    mkdir "C:\Connector"

     

    # Download latest collector and Connector

    Invoke-WebRequest -Uri "https://s3.amazonaws.com/networkdetective/download/NetworkDetectiveDataCollector.exe" -OutFile "C:\LocalDataCollector\NetworkDetectiveDataCollector.zip"

    Invoke-WebRequest -Uri "https://s3.amazonaws.com/networkdetective/download/NetworkDetectiveConnector.zip" -OutFile "C:\Connector\NetworkDetectiveConnector.zip"

     

    # Extract files

    Expand-Archive -Path "C:\LocalDataCollector\NetworkDetectiveDataCollector.zip" -Destinationpath "C:\LocalDataCollector\nddc"

    Expand-Archive -Path "C:\Connector\NetworkDetectiveConnector.zip" -Destinationpath "C:\Connector"

     

    # Run Lcoal Data Collector

     

    Start-Process -wait -filepath "C:\LocalDataCollector\nddc\nacmdline.exe" -ArgumentList "-pushtool","-outdir","C:\LocalScanOutput" -PassThru

     

    Start-Process -wait -filepath "C:\Connector\ndconnector.exe" -ArgumentList "-id","$ConnectorID","-d","C:\LocalScanOutput" -PassThru

     

    # Remove Compliance Manager directories

    Remove-Item -Path "C:\LocalScanOutput" -force -Recurse

    Remove-Item -Path "C:\LocalDataCollector" -force -Recurse

    Remove-Item -Path "C:\Connector" -force -Recurse

     



 

Attachments

Have more questions?

Contact us

Was this article helpful?
0 out of 0 found this helpful

Provide feedback for the Documentation team!

Browse this section