Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell 按以“结束”结尾的计算机进行筛选;L";_Powershell_Powershell 2.0 - Fatal编程技术网

Powershell 按以“结束”结尾的计算机进行筛选;L";

Powershell 按以“结束”结尾的计算机进行筛选;L";,powershell,powershell-2.0,Powershell,Powershell 2.0,我正在使用下面的代码返回包含L的计算机,但是有没有办法只过滤以“L”结尾的计算机?我不想返回任何值,其中“L”位于值的末尾以外的任何位置。短暂性脑缺血发作 $cmplist=get-adcomputer -Filter "cn -like '*L*'" -searchbase $ou.distinguishedname -Properties memberof -比如“*L”应该给你以L结尾的一切

我正在使用下面的代码返回包含L的计算机,但是有没有办法只过滤以“L”结尾的计算机?我不想返回任何值,其中“L”位于值的末尾以外的任何位置。短暂性脑缺血发作

 $cmplist=get-adcomputer -Filter "cn -like '*L*'"  -searchbase $ou.distinguishedname -Properties memberof

-比如“*L”应该给你以L结尾的一切