Author: BshrumSubject: Couldn't install PSEXESVC service on Windows 10
Posted: 02 March 2016 at 6:51pm
We have an application in MS Access that prints invoices in languages other than English. It is currently running on a Windows 7 machine. Our primary system is an IBM iSeries, which controls when the invoices are printed. An IBM service runs on the Win7 machine that receives the command and runs it.
PsExec works great on the Windows 7 system. On our new Windows 10 (unfortunately, Home Edition) system the same command does not work.
PsExec -i 1 -u userName -p password "C:\Program Files (x86)\Microsoft Office\Office12
\MSACCESS.EXE" C:\Invoices\INVOICE1.ACCDB
When I run the above command I receive the following:
The handle is invalid.
Connecting to local system...
Couldn't install PSEXESVC service:
Connecting to local system...
If it is run from a normal command prompt on the local machine I get:
Couldn't install PSEXESVC service:
Access is denied.
If I run the command prompt as an administrator, it works fine.
I've been going over this and other forums and have tried the net use \\machine\Admin$ user:myUser myPassword suggestion, but I get system error 5, access denied (which also happens if I run it locally in a normal command prompt.
I've tried caching the credentials from the remote machine with:
cmdkey.exe /add:MACHINE_NAME_HERE /user:MACHINE_NAME_HERE\Administrator /pass:PASSWORD_HERE
psexec.exe \\MACHINE_NAME_HERE -i notepad
cmdkey.exe /delete:MACHINE_NAME_HERE
The first command returns "CMDKEY: Credential added successfully". The PsExec command fails with the same error as above.
The second cmdkey returns "CMDKEY: Element not found"
I've turned UAC off but no luck. I've added the -h option, but that doesn't work, either. It feels like PsExec needs to run with elevated privileges but I don't know how to do that.
We're not on a domain (small company).
Any help would be greatly appreciated.
Barry