I am new to PowerShell. I'm looking for a script that I can run to check the physical memory in remote workstations. I'd like to be able to run said script and have it return the amount of physical memory for all the computers in active directory. The scripts that I have tried to run are returning an "Access Denied" error in the PowerShell Editor. I do have the Active Diretory module installed.
I've tried several scripts here in Spicworks, but I've yet to get one working properly. Perhaps someone with knowledge of PowerShell could guide me in checking if I have PowerShell configured properly and maybe direct me to the appropriate code.