1
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?
This is due to the differences between Windows 10 and Windows 7, Windows 10 elevates a process by implicit request from a user, Windows 7 didn't require that – Ramhound – 2016-07-15T11:37:59.030