The following command generally works fine on Windows 7 and Windows 10:
psexec \\machine -u username -p password -h -c -f script.bat
However, on Windows 10 when 'machine' is the localhost, I receive the error below:
Could not start PSEXESVC on localhost:
Access is denied.
The error message goes away if I run the command at an elevated prompt. Is there anyway to avoid this? What specifically is causing the issue on the local machine on Windows 10?