having trouble getting ex 1 working :
Lab answer says: Get-CimClass win32_networkadapterconfiguration | select -expand methods | where Name -match "dhcp"
which errors on "methods"
which errors on "method"
select : Property "methods" (or "method") cannot be found.
It should be
Get-CimClass Win32_networkadapterconfiguration | select -ExpandProperty CimClassMethods | where Name -match "dhcp"
and you'll see the two major groups are
You could simplify the code to
You must be logged in to reply to this topic.