compareobject Questions

2

Solved

I have two lists about 1k people each list. What I want to do is find who is leftover between the two. $BunchoEmail = Import-Csv C:\temp\Directory.csv | Select-Object primaryEmail -ExpandProperty p...
Effectuate asked 22/7, 2021 at 19:29

1

Solved

I am hashing all the files in one location, an origin folder, and writing the hashes to a variable and then doing the same to all the files in another location, a destination folder: $origin = Get...
Stansbury asked 12/11, 2019 at 20:5

3

Solved

I wrote a powershell script to compare the content of two folders: $Dir1 ="d:\TEMP\Dir1" $Dir2 ="d:\TEMP\Dir2" function Test-Diff($Dir1, $Dir2) { $fileList1 = Get-ChildItem $Dir1 -Recurse | Wher...
Mclin asked 26/3, 2014 at 14:20

2

Solved

Quick Question Is there a better (i.e. more efficient / more concise) way to do this? compare-object $a $b | ?{$_.SideIndicator -eq '<='} Detail Compare-Object gives paramenters -excludeDif...
Fertilization asked 5/2, 2015 at 10:53

1

Solved

I'm able to diff contents ("cells") of two CSVs and get output of the highest value using the following function: Compare-Object $oldfile $latestfile -Property "UsedSize" -PassThru | select-Object...
Shoemake asked 17/4, 2017 at 13:8

2

Solved

Here is the script that I wrote: function Compare { $file1 = Read-Host "Please enter the path of the first file you would like to compare" $file2 = Read-Host "Please enter the path of the secon...
Kohlrabi asked 6/3, 2014 at 16:17
1

© 2022 - 2024 — McMap. All rights reserved.