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
Cannot validate argument on parameter 'Session'. #188
Comments
Also, you can ditch the -ModulePath parameter... Kansa will reference modules.conf automatically. |
I still have the same error, even with the Get-Credential option added, and rerunning 'Enable-PSRemoting -SkipNetworkProfileCheck -Force'. I don't have to specify the computer name as long as I am running it for the local machine, right? I looked at the log, and it had my local machine's computer name, so I'm assuming it works like that. @dmoore44 |
Alright, a few other things...
|
Winrm is running and configured, I am a local administrator on the two machines I am trying to get data off of. I am looking at the trusted hosts, and my IP address is listed but not my machine name, does that make a difference? And I'm pretty sure winrm quickconfig adds the appropriate firewall rules, please correct me if I'm wrong. @dmoore44 |
Try setting your Trusted Hosts with this command: In my test environment, I have Trusted Hosts set as above and I can Kansa my local machine using In terms of troubleshooting... can you successfully connect to the machine with New-PSSession? |
Didn't work, I tried setting the winrm with my computer name and by *. Here are my errors, researching the second error as well. @dmoore44
|
Investigate your WS-man service config... Run |
The policy was false, great fix! Works great now, thanks!! |
I had similar issues when running on my own machine, but whenever i gave it a targetlist or target of another machine, all was fine. So for testing purposes (on self) the above fix helps, but for other machines this is a moot error. Also today I noticed it doing this when I gave it one target as opposed to a list. But I have been tweaking the code like crazy just to even run it at all. So it may have been my fault. |
I ran
But it errors out saying:
Here are the contents of the error log.
The text was updated successfully, but these errors were encountered: