powershell on linux to windows
:: Start :: Technology :: Computer & Internet
Page 1 of 1
powershell on linux to windows
https://mangolassi.it/topic/21244/remote-powershell-from-fedora-to-windows
https://mangolassi.it/topic/21244/remote-powershell-from-fedora-to-windows
Normally you would type the following in Windows and you all good.
Enter-PSSession -ComputerName dns-or-ip -Credential username
But that doesn't work with Fedora. You'll end up getting a MI_RESULT_ACCESS_DENIED error message.
Enter-PSSession : MI_RESULT_ACCESS_DENIED
The solution is to use -Authentication Negotiate
Enter-PSSession -ComputerName dns-or-ip -Authentication Negotiate -Credential username
But wait, you thought that was it, now you'll see a Unspecified GSS failure error message.
Enter-PSSession: Connecting to remote server failed with the following error message : acquiring creds with username only failed Unspecified GSS failure. Minor code may provide more information SPNEGO cannot find mechanisms to negotiate For more information, see the about_Remote_Troubleshooting Help topic.
The solution is to install gssntlmssp package.
sudo dnf install gssntlmssp
6c1e3d44-be83-425d-9dbf-6ba18a178d33-image.png
After all of that, now can remote powershell into your Windows hosts.
Enter-PSSession -ComputerName dns-or-ip -Authentication Negotiate -Credential username
to install "gss-ntlmssp"
sudo apt-get update -y
sudo apt-get install -y gss-ntlmssp
Enter-PSSession -ComputerName dns-or-ip -Authentication Negotiate -Credential username
https://mangolassi.it/topic/21244/remote-powershell-from-fedora-to-windows
Normally you would type the following in Windows and you all good.
Enter-PSSession -ComputerName dns-or-ip -Credential username
But that doesn't work with Fedora. You'll end up getting a MI_RESULT_ACCESS_DENIED error message.
Enter-PSSession : MI_RESULT_ACCESS_DENIED
The solution is to use -Authentication Negotiate
Enter-PSSession -ComputerName dns-or-ip -Authentication Negotiate -Credential username
But wait, you thought that was it, now you'll see a Unspecified GSS failure error message.
Enter-PSSession: Connecting to remote server
The solution is to install gssntlmssp package.
sudo dnf install gssntlmssp
6c1e3d44-be83-425d-9dbf-6ba18a178d33-image.png
After all of that, now can remote powershell into your Windows hosts.
Enter-PSSession -ComputerName dns-or-ip -Authentication Negotiate -Credential username
to install "gss-ntlmssp"
sudo apt-get update -y
sudo apt-get install -y gss-ntlmssp
Enter-PSSession -ComputerName dns-or-ip -Authentication Negotiate -Credential username
sunt- Number of posts : 145
Registration date : 2008-11-14
Similar topics
» The simplest ways to create a bootable Windows Server 2012 or Windows 8 USB Key - See more at: http://blogs.technet.com/b/bobh/archive/2012/09/04/the-simplest-was-to-create-a-bootable-windows-server-2012-or-windows-8-usb-key.aspx#sthash.fOLytuGh.dpuf
» my powershell script
» powershell notes
» VNC to LINUX
» How to install a .run file in Linux
» my powershell script
» powershell notes
» VNC to LINUX
» How to install a .run file in Linux
:: Start :: Technology :: Computer & Internet
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|