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

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607