[SOLVED] Windows Script Host for BackgroundTaskHost.vbs missing Pathping.exe file

Status
Not open for further replies.

spikeysonic

Prominent
Jul 23, 2018
189
0
580
I have an error box saying

Windows Script Host

Script:
C:\Users\'My Username'\backgroundTaskHost\BackgroundTaskHost.vbs
Line: 3
Char: 1
Error: The system cannot find the file specified
Code : 80070002
Source (Nul)


I found the background task host file

when I opened the Background Task Host .VBS file the test was

Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep(11223)
WshShell.Run """C:\Users\chris\backgroundTaskHost\PATHPING.exe"""

This to me indicates there should be a pathpink.exe file


Anyone know about Pathping.exe?

why is it not there? What removed it?

I this virus activity?

How do I fix and replace it?


I have Windows 10
 
Solution
If that still didn't help...

what are specs of the PC? Do you have one or 2 drives?

if its only new, windows shouldn't be this broken after 1 week. If you have 2 drives, I would put anything you want to keep onto 2nd one and clean install win 10 on the other one.

follow this guide: https://forums.tomshardware.com/faq/how-to-do-a-clean-installation-of-windows-10.3170366/

remove 2nd hdd power while you install win 10 as it has a terrible habit of putting its boot partition on other drives.

if you only have 1 drive.,, um, got any USB? really depends on if there is anything on PC you cannot lose.

I have to go soon as its almost 4am here.
.....
when I opened the Background Task Host .VBS file the test was

Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep(11223)
WshShell.Run """C:\Users\chris\backgroundTaskHost\PATHPING.exe"""


This to me indicates there should be a pathpink.exe file


Anyone know about Pathping.exe?

why is it not there? What removed it?

I this virus activity?

How do I fix and replace it?


I have Windows 10
Once you've scanned for virus/malware activity you can simply remove the indicated lines from "Background Task Host.VBS". Pathping is not a system file nor is it needed in normal operation.
 

spikeysonic

Prominent
Jul 23, 2018
189
0
580
Once you've scanned for virus/malware activity you can simply remove the indicated lines from "Background Task Host.VBS". Pathping is not a system file nor is it needed in normal operation.


Ok if it is not a windows file why is the line

WshShell.Run """C:\Users\chris\backgroundTaskHost\PATHPING.exe""" in the Background task host.vbs file

is there supposed to be s backgroundtaskhost.vbs file?
 

Colif

Win 11 Master
Moderator
Are we sure its not part of windows?

https://en.wikipedia.org/wiki/PathPing

PATHPING.EXE was first developed on 11/08/2006 in the Windows Vista Operating System for Windows Vista. The latest file update released for Windows 10 was on 07/29/2015 [file version 10.0.15063.0 (WinBuild.160101.0800)]. PATHPING.EXE is found in Windows 10, Windows 8.1, and Windows 8.

Pathping is a TCP/IP based utility (command-line tool) that provides useful information about network latency and network loss at intermediate hops between a source address and a destination address.
http://techgenix.com/using-pathping/

So it should exist...

Try running this
right click start button
choose powershell (admin)
type SFC /scannow and press enter
once its completed, copy/paste this command into same window:
Repair-WindowsImage -Online -RestoreHealth and press enter
SFC fixes system files, second command cleans image files, re run SFC if it failed to fix all files and restart PC
 

spikeysonic

Prominent
Jul 23, 2018
189
0
580
Colif
once its completed, copy/paste this command into same window:
Repair-WindowsImage -Online -RestoreHealth and press enter
SFC fixes system files, second command cleans image files, re run SFC if it failed to fix all files and restart PC


Forgot to try this bit when I did I got

'Repair-WindowsImage' is not recognized as an internal or external command,
operable program or batch file.


Can you check the syntax on the command... Im guessing its a minor typo.

I tried some variations

C:\windows\system32>Repair-WindowsImage -Online -RestoreHealth
'Repair-WindowsImage' is not recognized as an internal or external command,
operable program or batch file.

C:\windows\system32>repair-windowsimage -online -restorehealth
'repair-windowsimage' is not recognized as an internal or external command,
operable program or batch file.

C:\windows\system32>repair -windowsimage -online -restore health
'repair' is not recognized as an internal or external command,
operable program or batch file.


what am I doing wrong please?
 

spikeysonic

Prominent
Jul 23, 2018
189
0
580
updating
Are we sure its not part of windows?

https://en.wikipedia.org/wiki/PathPing

PATHPING.EXE was first developed on 11/08/2006 in the Windows Vista Operating System for Windows Vista. The latest file update released for Windows 10 was on 07/29/2015 [file version 10.0.15063.0 (WinBuild.160101.0800)]. PATHPING.EXE is found in Windows 10, Windows 8.1, and Windows 8.


http://techgenix.com/using-pathping/

So it should exist...

Try running this
right click start button
choose powershell (admin)
type SFC /scannow and press enter
once its completed, copy/paste this command into same window:
Repair-WindowsImage -Online -RestoreHealth and press enter
SFC fixes system files, second command cleans image files, re run SFC if it failed to fix all files and restart PC


Did all the above, have upgraded the windows but

Repair-WindowsImage -Online -RestoreHealth

still dont work and I cut and pasted it'
C:\windows\system32>Repair-WindowsImage -Online -RestoreHealth
'Repair-WindowsImage' is not recognized as an internal or external command,
operable program or batch file.

C:\windows\system32>Repair -WindowsImage -Online -RestoreHealth
'Repair' is not recognized as an internal or external command,
operable program or batch file.

C:\windows\system32>Repair-WindowsImage-Online-RestoreHealth
'Repair-WindowsImage-Online-RestoreHealth' is not recognized as an internal or external command,
operable program or batch file.'


the other suggestions worked. just cannot get the repair command working
 

Colif

Win 11 Master
Moderator
Try a Repair install - https://www.tenforums.com/tutorials/16397-repair-install-windows-10-place-upgrade.html = all it does is rolls windows back to basically where you are. It removes all cumulative updates but that is literally 1 file now.

When you installed win 10 did you let it make partitions or did you make them for it? I just wonder if you don't have a recovery partition as its where windows has its troubleshooting tools including DISM.

It is odd that the commands don't work in both CMD & powershell. I just copy pasted this into powershell (admin) on my PC and its busy running it now - Repair-WindowsImage -Online -RestoreHealth - so its not my end (was just making sure)
 

Colif

Win 11 Master
Moderator
If that still didn't help...

what are specs of the PC? Do you have one or 2 drives?

if its only new, windows shouldn't be this broken after 1 week. If you have 2 drives, I would put anything you want to keep onto 2nd one and clean install win 10 on the other one.

follow this guide: https://forums.tomshardware.com/faq/how-to-do-a-clean-installation-of-windows-10.3170366/

remove 2nd hdd power while you install win 10 as it has a terrible habit of putting its boot partition on other drives.

if you only have 1 drive.,, um, got any USB? really depends on if there is anything on PC you cannot lose.

I have to go soon as its almost 4am here.
 
Solution

spikeysonic

Prominent
Jul 23, 2018
189
0
580
Try a Repair install - https://www.tenforums.com/tutorials/16397-repair-install-windows-10-place-upgrade.html = all it does is rolls windows back to basically where you are. It removes all cumulative updates but that is literally 1 file now.

When you installed win 10 did you let it make partitions or did you make them for it? I just wonder if you don't have a recovery partition as its where windows has its troubleshooting tools including DISM.

It is odd that the commands don't work in both CMD & powershell. I just copy pasted this into powershell (admin) on my PC and its busy running it now - Repair-WindowsImage -Online -RestoreHealth - so its not my end (was just making sure)
I did not install windows its a new computer straight from the custom build company a week ago
 

Colif

Win 11 Master
Moderator
I did not install windows its a new computer straight from the custom build company a week ago
right click start
choose disk management
expand the new window so it shows all drives/columns
take a screenshot and upload to an image sharing website and show link here

What are specs of PC?
Does it have a model name?
Who made it?

don't rush into a clean install.
did this work?
you can try this version in Command Prompt (Admin)

DISM /Online /Cleanup-Image /RestoreHealth

It is improbable for DISM to not be known as its what is used to install windows.
 
Last edited:

spikeysonic

Prominent
Jul 23, 2018
189
0
580
If that still didn't help...

what are specs of the PC? Do you have one or 2 drives?

if its only new, windows shouldn't be this broken after 1 week. If you have 2 drives, I would put anything you want to keep onto 2nd one and clean install win 10 on the other one.

follow this guide: https://forums.tomshardware.com/faq/how-to-do-a-clean-installation-of-windows-10.3170366/

remove 2nd hdd power while you install win 10 as it has a terrible habit of putting its boot partition on other drives.

if you only have 1 drive.,, um, got any USB? really depends on if there is anything on PC you cannot lose.


Case Model:FOcUK Tech Labs - Pre Noise Dampened Case - Corsair Graphite 780T Big-Tower, White
Case From:
Processor (CPU)AMD Ryzen Threadripper 3960X 24 Core CPU (3.8GHz - 4.5GHz, 142MB CACHE)
MotherboardASUS® ROG ZENITH II EXTREME (DDR4, WIFI, CrossFireX/SLI) - RGB Ready!
Memory (RAM)64GB Corsair VENGEANCE DDR4 3200MHz (4 x 16GB)
Graphics Card11GB NVIDIA GEFORCE RTX 2080 Ti - HDMI, 3x DP GeForce - RTX VR Ready!
1st Storage Drive4TB SEAGATE IRONWOLF PRO 3.5", 7200 RPM 128MB CACHE
1st M.2 SSD Drive1TB SEAGATE FIRECUDA 520 GEN 4 PCIe NVMe (up to 5000MB/R, 4400MB/W)
2nd M.2 SSD Drive1TB SEAGATE FIRECUDA 520 GEN 4 PCIe NVMe (up to 5000MB/R, 4400MB/W)
DVD/BLU-RAY Drive24x DUAL LAYER DVD WRITER ±R/±RW/RAM
Power SupplyCORSAIR 1000W RMx SERIES™ MODULAR 80 PLUS® GOLD, ULTRA QUIET
Power Cable1 x 1 Metre European Power Cable (Kettle Lead)
Processor CoolingCoolerMaster MasterLiquid ML360 RGB TR4 High Performance Liquid Cooler
Thermal PasteSTANDARD THERMAL PASTE FOR SUFFICIENT COOLING
Change to: ARCTIC MX-4 EXTREME THERMAL CONDUCTIVITY COMPOUND
Sound CardONBOARD 6 CHANNEL (5.1) HIGH DEF AUDIO (AS STANDARD)
Wireless/Wired Networking10/100/1000 GIGABIT LAN PORT (Wi-Fi NOT INCLUDED)
USB/Thunderbolt OptionsMIN. 2 x USB 3.0 & 2 x USB 2.0 PORTS @ BACK PANEL + MIN. 2 FRONT PORTS
Operating SystemWindows 10 Professional 64 Bit - inc. Single Licence [MUP-00003]
Operating System LanguageUnited Kingdom - English Language
Windows Recovery MediaWindows 10 Multi-Language Recovery Image - Unlimited Downloads from Online Account
Office SoftwareFREE 30 Day Trial of Microsoft® Office® 365 (Operating System Required)
Anti-VirusBullGuard™ Internet Security - 3 User, 1 Year
BrowserMicrosoft® Edge (Windows 10 Only)
Monitor Cables1 x 2m DisplayPort Cable - DP (M) to DP (M)
Gaming Mouse PadPCS Gaming Mouse Mat - XXL


No partictioning.

The software is on the OS ssd. I also have a 2nd SSd more for files in use , downloads, etc and a longer term storage drive the 4tb one


its possible something happened with buckloads of software installed since them.

Did have some wierd stuff occur. Like a note about a buffer over run or something notice at one point.


Asz said all the suggestions work above accept the one pointed out that did not

Had it made at PC Specialist with a 'supposedly ' sound dampened version of a corsair graphite 780t case from Overclockers
(the cooler is kinda noise dunno about the rest of the system. Ots a custom job so no set model
 

Colif

Win 11 Master
Moderator
The normal answer for DISM not being recognised is spacing , but you have copy pasted commands in that work for me.. so it can't be that simple. I can't seem to find anyone else with similar.

Recovery partition is a special partition on system hard drive and is used to restore the system to factory settings in the event of system issues. To protect recovery partition from being changed or deleted, recovery partition usually has no drive letter, and only a Help option is provided in Disk Management.

There are two types of recovery partitions.

One is created by installing Windows on GPT disk, which holds the Windows Recovery Environment (WinRE). Typically Windows recovery partition only takes up several hundred MB disk space, as it only contains the bare operating system.

The rest one is created by computer manufactures like Dell, HP, Lenovo before delivery, which allows to restore computer to factory default settings, including OS, drivers and some build-in applications. Suppliers' recovery partition takes more space than Windows recovery partition, and is usually marked as OEM Partition.

In a nutshell, recovery partition is viewed as your LAST resort when you have system problems as it will wipe out all your data and programs in system partition. Besides, although some software allows you to add drive letter to manage recovery partition, you should not attempt to store or alter files in it, for this can cause the system recovery process to fail.


https://www.partitionwizard.com/partitionmagic/delete-recovery-partition.html

I am not sure if its the lack of recovery partition that is the cause. Its possible DISM is run from the recovery partition, as it would use it to replace the install.

Many of the steps I showed above should have fixed DISM. It wasn't even the problem that brought you here but without access to DISM, its difficult to replace a missing file. Deployment Image Servicing and Management (DISM) is a command-line tool that is used to mount and service Windows images before deployment. You can use DISM image management commands to mount and get information about Windows image (. wim) files or virtual hard disks (VHD)

I would love to see a screenshot of disk management. Is there a recovery or EFI partition on any of the drives? Win 10 likes to share itself around, so if the other drives were installed when they put win 10 on the M.2, it could have put itself on those as well.
 
D

Deleted member 14196

Guest
There should be no VBS files running. You are infected boot to USB format all your drives and reinstall windows
 

Colif

Win 11 Master
Moderator
on further research, regardless of how drives are formatted in win 10, it should have created a recovery partition on install.

tl;dr: A separate WinRE partition is created only by Windows 8 Setup in UEFI/GPT mode and by Windows 10 Setup in both BIOS/MBR and UEFI/GPT modes. -
https://superuser.com/questions/915...tition-for-on-a-fresh-installation-of-windows

But it can be overruled and you can install win 10 on 1 partition like you say you have. in that case the windows recovery environment is put on C drive as it can't be anywhere else. UNless more hdd are there at install time.
 
Status
Not open for further replies.