Syntax Question
i struggling syntax.
need run of on 1 line yet not work. i've looked @ get-help ..... , google searches i've yet working.
$prefix read-host hold value ws* machines begin ws.
$computers = get-adcomputer -filter {enabled -eq 'true' -and samaccountname -like $prefix}
-searchbase "ou=all_workstations,dc=ourcompany,dc=org").name
$computers
mqh7
??
get-adcomputer -filter {enabled -eq 'true' -and samaccountname -like $prefix} -searchbase "ou=all_workstations,dc=ourcompany,dc=org").name
... this?
grüße - best regards
ps:> (79,108,97,102|%{[char]$_})-join''
Windows Server > Windows PowerShell
Comments
Post a Comment