diff --git a/GLPI-vs-AD.ps1 b/GLPI-vs-AD.ps1 new file mode 100644 index 0000000..1eac3cc --- /dev/null +++ b/GLPI-vs-AD.ps1 @@ -0,0 +1,22 @@ +<# +.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 + +} \ No newline at end of file