Visual Studio Code – Using a variable in Get-ADUser -Filter – PowerShell version 7
When using Visual Studio Code and PSverion 7.2.6 I am no longer able to use a variable in Get-ADUser Filter. Command: Get-ADUser -server $DC -Filter 'sAMAccountName -eq $Input' -Properties $sProperties | Select $sProperties getting this error: Get-ADUser: Variable: 'Input' found…