First time user, probably read stuff on here before in regards to other issues I’ve had in the past. I’m trying to write a script that will put certain info into the array. The script doesn’t seem to be an issue, but a certain part of PowerShell seems to be misbehaving. Here’s what I have:
Physical machine 1: This is on a domain and I’m running the script as an admin. It works perfectly. I get everything I need with no issue.
Physical machine 2: This is on a different domain than the first physical machine. The script runs, however certain parts of the output are missing.
Virtual machine: This is on the same domain as physical machine 2. Same errors happen.
PowerShell version on all 3 hosts is: 5.1.17134.228. All machines have Win 10 x64 RS4 and are up to date.
Please note all of the machines have AV products on them. Even if I clone the VM to have the same as physical machine 1 it still fails, even if that machine is not on the domain.
So I’m trying to get certain info out of $user into an array. I notice if I type in '$user.'on physical machine 1 it starts to show me other options (In PowerShell ISE) which is what I would expect. The script runs fine there. If I do the same thing on the other two machines it fails to load anything. I’ve run a sfc /scannow and that didn’t make a difference. I’m not sure what’s causing this and this script will eventually be something deployed to many other machines (In the domain for PM2 and VM). I don’t see anything really in the GPO that would be blocking this (If that’s even possible), so I’m really confused here. Can anybody help? Thanks in advance.