attempt 1

This commit is contained in:
Erik Eckert 2024-12-23 09:05:49 -07:00
parent 4feef70f6a
commit 8aca2b8607

22
GLPI-vs-AD.ps1 Normal file
View File

@ -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
}