ADScripts/GLPI-vs-AD.ps1

22 lines
402 B
PowerShell
Raw Permalink Normal View History

2024-12-23 09:05:49 -07:00
<#
.SYNOPSIS Script to compare GLPI Inventory to AD Computers.
#>
$InputFile = "C:\Users\eeckert\Downloads\glpi (2).csv"
$ADComputers = Get-ADComputer -Filter *
$InventoryData = Import-Csv $InputFile
$MachinesInAD = @()
$MachinesNotInAD = @()
$MachinesInGLPI = @()
$MachinesNotInGLPI = @()
foreach ($ADComputer in $ADComputers)
{
$MachineMatch = $ADComputer.Name -in $InventoryData.Name
}