Here’s what I have going on. For some reason when I run these commands locally they work fine, but if I run them on remote machines nothing happens. I’ve tried using “get-wmiobject” too. Same thing. Any thoughts on why this could be? Thanks!
That’s because when You connect remotely, you do not have a profile. Therefore, you would not have mapped drives, or mapped printers. Not really any way around that - CIM isn’t a full desktop login.