PowerShellEmpire / PowerTools

PowerTools is a collection of PowerShell projects with a focus on offensive operations.
Other
2.05k stars 811 forks source link

Powerview Get-NetUsers does not exist #4

Closed carnal0wnage closed 9 years ago

carnal0wnage commented 9 years ago

PS C:\Users\xxxxxxDesktop\PowerTools\PowerView> Get-NetUsers Get-NetUsers : The term 'Get-NetUsers' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

HarmJ0y commented 9 years ago

The Get-NetUsers cmdlet was rolled into Get-NetUser with flexible filters. If you want just user names, you can do "Get-NetUser | %{$_.samaccountname}" (if you want other fields you can extract those as needed). If you want just one user, do "Get-NetUser NAME". NAME also accepts wildcards if you want to search for a set of users.

carnal0wnage commented 9 years ago

thanks. was just pointing it out b/c it was in the documentation

HarmJ0y commented 9 years ago

derp, thanks for catching that. should be corrected now.