i had this issue for days now. Done and researched everything pertaining to executing a powershell script on your local machine using winrm.
My goal is to execute these ps1 scripts from my local to a target remote machine. winrm is already configured and working with its basic commands, but i cannot find anything to run a powershell script (*.ps1) using winrm.
something like
winrm {execute ps1 file} -r:http://<IPaddress>:5985 -auth:basic -u:'username' -p:'password' -encoding:utf-8
Any help and suggestions are much appreciated.
Thank you guys!