Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

command not working in powershell 7

$
0
0

hi,

the command no longer working in powershell 7, but I don't know what is wrong here.

[string]$name = "asdf"
Get-ADGroup -Filter {SAMAccountName -eq $name}
Get-ADGroup: Variable: 'name' found in expression: $name is not defined.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>