Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant set nbms types #19

Open
chppppp opened this issue Sep 11, 2019 · 5 comments
Open

cant set nbms types #19

chppppp opened this issue Sep 11, 2019 · 5 comments

Comments

@chppppp
Copy link

chppppp commented Sep 11, 2019

PS C:\Windows\System32\spool\drivers\color> Invoke-Inveigh -ConsoleOutput Y -NBNS Y -mDNS Y -HTTPS Y -Proxy Y -NBNSTypes
 '00,20,03,1B,1C' -MachineAccounts Y
Invoke-Inveigh : Cannot validate argument on parameter 'NBNSTypes'. The argument "00,20,03,1B,1C" does not belong to
the set "00,03,20,1B,1C,1D,1E" specified by the ValidateSet attribute. Supply an argument that is in the set and then
try the command again.
At line:1 char:78
+ Invoke-Inveigh -ConsoleOutput Y -NBNS Y -mDNS Y -HTTPS Y -Proxy Y -NBNSTypes '00 ...
+                                                                              ~~~
    + CategoryInfo          : InvalidData: (:) [Invoke-Inveigh], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Invoke-Inveigh
@chppppp
Copy link
Author

chppppp commented Sep 11, 2019

without the quotes:

PS C:\Windows\System32\spool\drivers\color> Invoke-Inveigh -ConsoleOutput Y -NBNS Y -mDNS Y -HTTPS Y -Proxy Y -NBNSTypes
 00,20,03,1B,1C -MachineAccounts Y
Invoke-Inveigh : Cannot validate argument on parameter 'NBNSTypes'. The argument "0" does not belong to the set
"00,03,20,1B,1C,1D,1E" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the
command again.
At line:1 char:78
+ Invoke-Inveigh -ConsoleOutput Y -NBNS Y -mDNS Y -HTTPS Y -Proxy Y -NBNSTypes 00, ...
+                                                                              ~~~
    + CategoryInfo          : InvalidData: (:) [Invoke-Inveigh], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Invoke-Inveigh

@chppppp
Copy link
Author

chppppp commented Sep 11, 2019

this works, notice the quotes around the 00.

Invoke-Inveigh -ConsoleOutput Y -NBNS Y -mDNS Y -HTTPS Y -Proxy Y -NBNSTypes '00',20,03,1B,1C -MachineAccounts Y

@Kevin-Robertson
Copy link
Owner

Is that on Windows 10? I just tested this and it works as documented with Windows 7 but errors out on Windows 10. For me though, both 00 and 03 needed quotes.

@chppppp
Copy link
Author

chppppp commented Sep 11, 2019

Yes! sorry! Win10 and yes, I did have to quote '03' as well.

@chppppp
Copy link
Author

chppppp commented Sep 11, 2019

looks like anything starting with 0 is being treated as an int

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants