All the process was success but cant run any cmd/powershell command
Opened this issue · 1 comments
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>
In addition when I try to run the next command
New-ManagementRoleAssignment -Role "Mailbox Import Export" -User Administrator@test.wh
Its look its work by the output
PS> New-ManagementRoleAssignment -Role "Mailbox Import Export" -User Administrator@test.wh
[+] 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 Administrator@test.wh
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