Forum Discussion
Naveenkumarsan
Jun 10, 2021Copper Contributor
csv file comparison
Hi All, I am comparing two csv files based on USERNAME column of both files, kindly see my script below, Compare-Object $SourceFile $TargetFile -Property "USERNAME" -PassThru | Where-Object {$_....
yuzoyox
Jun 10, 2021Iron Contributor
I saw in old forum something related to increase the memory,
https://social.technet.microsoft.com/Forums/en-US/ff516976-78a4-49b0-97e8-f443702eaf50/powershell-script-failure-systemoutofmemory-exception?forum=scogeneral
execute the command:
Get-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB
by default it is 2147483647
check the link bellow, it have a solution to increase it.
https://stackoverflow.com/questions/28503765/powershell-gives-get-content-exception-of-type-system-outofmemoryexception-w?rq=1