Notification

Icon
Error

Psexec service delete

Posted: Saturday, January 25, 2020 12:15:01 AM(UTC)
steveb

steveb

Member Original PosterPosts: 31
0
Like
We have had issues at times with not being able to open a remote psexec session because of the service already existing on workstations and refusing to start.

This powershell command prompts for credentials and stops the service if running and deletes it so you can open a new session.

powershell.exe invoke-command -credential user -computername {smartname} {stop-service -name psexesvc; sc.exe delete psexesvc}

Active Discussions

Lansweeper Set Up the scan for Domain Controllers (not AD !!)
by  GeorgB   Go to last post Go to first unread
Last post: Today at 9:46:13 AM(UTC)
Lansweeper Scan User Exclusion / Define User OU for active scanning
by  Almada  
Go to last post Go to first unread
Last post: 9/17/2021 6:43:34 PM(UTC)
Lansweeper sqlServerId is changing
by  Ciro Bizelli   Go to last post Go to first unread
Last post: 9/17/2021 3:40:34 PM(UTC)
Lansweeper Slow Loading Lansweeper
by  Maikel Vanroelen  
Go to last post Go to first unread
Last post: 9/17/2021 9:25:31 AM(UTC)
Lansweeper Sync information
by  Jay-IT   Go to last post Go to first unread
Last post: 9/16/2021 9:20:11 PM(UTC)
Lansweeper "Unknown" exclusion does not exclude Unknown assets
by  Almada  
Go to last post Go to first unread
Last post: 9/16/2021 7:18:43 PM(UTC)
Lansweeper multiple scanning servers with granular permission
by  FrankSc   Go to last post Go to first unread
Last post: 9/16/2021 6:29:54 PM(UTC)
Lansweeper Separate helpdesk websites?
by  JCochran  
Go to last post Go to first unread
Last post: 9/15/2021 2:51:03 PM(UTC)