diff --git a/Modules/CIPPCore/Public/Set-PSAAssetDetail.ps1 b/Modules/CIPPCore/Public/Set-PSAAssetDetail.ps1 index e8489f8e2eac..fe6eaeb6d314 100644 --- a/Modules/CIPPCore/Public/Set-PSAAssetDetail.ps1 +++ b/Modules/CIPPCore/Public/Set-PSAAssetDetail.ps1 @@ -1,3 +1,4 @@ +Import-Module ..\..\PS-NCentral\NCentralRest\PS-NCentral.psm1 <# This command as of now, will connect to the configured PSA (Autotask for now) and retrieve all active assets. After retrieving the list of assets it will query the configured N-Central RMM and retrieve all matching devices, @@ -9,7 +10,6 @@ function Set-PSAAssetDetail { $APIName = 'Set PSA Asset Detail' ) - Import-Module PS-NCentral $MappingTable = Get-CIPPTable -TableName CippMapping $Table = Get-CIPPTable -TableName Extensionsconfig