nexec <server> cmd /c "powershell -inputformat NONE -command set-executionpolicy Unrestricted"
the problem is the command don't give the hand
i test your command but it's not ok
i test with the command get-executionpolicy
opsagas3% nexec inplnas08 cmd /c "echo .|powershell -inputformat NONE -command get-executi
can you a another idea
w/ the inputformat NONE you should not need the echo . |. also - i don't understand what your problem is here - you are running a powershell command to get the execution policy and it returns 'Restricted'. i don't see a problem there.