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

All the process was success but cant run any cmd/powershell command #15

Open
antonbek89 opened this issue Nov 17, 2021 · 1 comment
Open

Comments

@antonbek89
Copy link

Someone here solve the issue ?

PS> whoami
[+] Created powershell session on abc.test.wh
127.0.0.1 - - [17/Nov/2021 12:01:10] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Nov/2021 12:01:11] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Nov/2021 12:01:11] "POST /wsman HTTP/1.1" 200 -
[-] Load balanced to wrong server: abc2.test.wh
[-] Load balanced to wrong server: abc2.test.wh
127.0.0.1 - - [17/Nov/2021 12:01:12] "POST /wsman HTTP/1.1" 200 -
[-] Load balanced to wrong server: abc2.test.wh
127.0.0.1 - - [17/Nov/2021 12:01:13] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Nov/2021 12:01:13] "POST /wsman HTTP/1.1" 200 -
[+] PS> whoami
OUTPUT:

ERROR:
The term 'whoami.exe' 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.
[-] Load balanced to wrong server: abc2.test.wh
127.0.0.1 - - [17/Nov/2021 12:01:14] "POST /wsman HTTP/1.1" 200 -
PS>

@antonbek89
Copy link
Author

In addition when I try to run the next command

New-ManagementRoleAssignment -Role "Mailbox Import Export" -User [email protected]

Its look its work by the output

PS> New-ManagementRoleAssignment -Role "Mailbox Import Export" -User [email protected]
[+] Created powershell session on test.wh
127.0.0.1 - - [17/Nov/2021 12:03:58] "POST /wsman HTTP/1.1" 200 -
[-] Load balanced to wrong server: test.wh
127.0.0.1 - - [17/Nov/2021 12:03:59] "POST /wsman HTTP/1.1" 200 -
[-] Load balanced to wrong server: test.wh
127.0.0.1 - - [17/Nov/2021 12:04:00] "POST /wsman HTTP/1.1" 200 -
127.0.0.1 - - [17/Nov/2021 12:04:00] "POST /wsman HTTP/1.1" 200 -
[-] Load balanced to wrong server: test.wh
127.0.0.1 - - [17/Nov/2021 12:04:01] "POST /wsman HTTP/1.1" 200 -
[-] Load balanced to wrong server: test.wh
127.0.0.1 - - [17/Nov/2021 12:04:02] "POST /wsman HTTP/1.1" 200 -
[+] PS> New-ManagementRoleAssignment -Role "Mailbox Import Export" -User [email protected]
OUTPUT:
Mailbox Import Export-Administrator-28
ERROR:

[-] Load balanced to wrong server: test.wh
[-] Load balanced to wrong server: test.wh
127.0.0.1 - - [17/Nov/2021 12:04:02] "POST /wsman HTTP/1.1" 200 -
PS>

So I'm not really sure what I missed here

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

1 participant