attempt 1
This commit is contained in:
parent
4feef70f6a
commit
8aca2b8607
22
GLPI-vs-AD.ps1
Normal file
22
GLPI-vs-AD.ps1
Normal 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
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user