SyntaxFix
Write A Post
Hire A Developer
Questions
Maybe not the best solution, but it worked for me.
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.VisualBasic") $VBObject=[Microsoft.VisualBasic.Devices.ComputerInfo]::new() $SystemMemory=$VBObject.TotalPhysicalMemory