VitalProject / Windows-RemoteShadow

Remote Shadow Using Windows built in software
9 stars 8 forks source link

Can't get the source to work #5

Closed alx359 closed 6 months ago

alx359 commented 6 months ago

The tool works fine as an exe out of the box. However, have been trying to tweak the Windows-RemoteShadow.ps1 file a little bit. Unfortunately, from that source alone I'm unable to make it work. It seems there are some extra dependencies underneath I'm not aware of:

Running Windows-RemoteShadow.ps1 directly, or trying to compile to exe from PS like: Invoke-PS2EXE -InputFile Windows-RemoteShadow.ps1 -OutputFile Windows-RemoteShadow.exe -NoConsole

Gives this error after trying to connect to a my-pc RDP host:

`Connecting to remote my-pc server failed with the following error message : The WinRM client cannot process the request. If the authentication scheme is different from Kerberos, or if the client computer is not joined to a domain, then HTTPS transport must be used or the destination machine must be added to the TrustedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. You can get more information about that by running the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.

What am I missing?

Thanks!

alx359 commented 6 months ago

Nevermind, have stripped the script of everything I don't need and now it works.