Reputation: 1
I need to execute a script on an older Windows Server 2003 SE SP2 remotely from a different server using PSEXEC. PSEXEC works on all other servers except this older one. I get the following error: The service cannot be started, either because it is disabled or because it has n o enabled devices associated with it. Even D:\PSTools>psexec \ALA-SIEBI1P.corp.ad.wrs.com cmd throws the error.
Any help would greatly be appreciated.
Thank you.
Upvotes: 0
Views: 5980
Reputation: 176
Delete the PSEXEC service and run again.
Get-Service *psexec*
will show you the installed service.
Remove-Service PSEXESVC
will delete the service
afterwards...
psexec -s -i powershell
should execute as expected 🤓
Upvotes: 0
Reputation: 1470
Without seeing more info, I would start by deleting the PSExec service on the remote host in question. PSExec actually creates a service on the remote host, and sometimes that service gets broken. Here's how to delete it, where %1 is replaced with the remote hostname:
sc \\%1 delete psexesvc
Upvotes: 0