我想为一个被调用的变量赋一个空值$dec,但它给了我错误.这是我的代码:
$dec
import-module activedirectory $domain = "domain.example.com" $dec = null Get-ADComputer -Filter {Description -eq $dec}
powershell scripting null
null ×1
powershell ×1
scripting ×1