Get-CimInstance -ClassName Win32_Group -filter '"name=administrators"'

hi all,

this get-Ciminstance takes longer time to pull the data both from powershell.exe and ISE

am running this cmdlet from local machine from which i required the data .

operating system : windows 8.1 pro ;64-bit

required help on this

Is your computer joined to a domain? Win32_Group and similar classes enumerate both local and domain accounts / groups, so they can take a while.

If you specify that you are looking for a local group it goes much faster, like this:

Get-CimInstance -Query "select * from win32_group where Domain='$env:COMPUTERNAME' and Name='Administrators'"