question

microsoftuser231476-0374 avatar image
0 Votes"
microsoftuser231476-0374 asked ChandanaSKallesh-3042 published

i accidentally deleted windows security how do i reinstall it?

so my computer is messed up so SOMEHOW the windows security whole app got deleted litearlly i still see it as a app but when i open it nothing opens and i tried other things like running it from the run app and stuff like that it also sometimes says you will need a new app to open this windws defender link. if anbody could pls help me with this problem with my computer like i cant open the microsoft store but thats for another forum

windows-10-security
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

the windows security whole app got deleted litearlly i still see it as a app but when i open it nothing opens

What you mean by "windows security app"? What is the .exe name? What specifically did you delete? A file? a folder? Maybe you could post a screen snapshot of what you are looking at.

Did you check the recycle bin?

0 Votes 0 ·

ok so what it is is i see the windows security app or the windows defender firewall app it doesnt open i think that is because the store exe is deleted when i say windws security i mean windows defender it just doesnt open

0 Votes 0 ·
MotoX80 avatar image MotoX80 microsoftuser231476-0374 ·

I am surprised that Windows would let you delete anything related to the Defender.

i think that is because the store exe is deleted

Please be specific about what you deleted. What files? What folders?

Again, did you check the recycle bin to see if the files were there?

Open an admin command prompt and run "sfc /scannow" and see if Windows detects any deleted files.

0 Votes 0 ·
Show more comments

ok so news i tryed using powershell to reinstall the microsoft store and all of its apps BUT you need windows firewall on to do that SO i need to get the firewall thing fixed and then i will be able to get the microsoft store back so does anybody know how to like reinstall or reset the windows security app using powershell if anybody does that would be well appreciated

0 Votes 0 ·
SamsonPeng-MSFT avatar image
0 Votes"
SamsonPeng-MSFT answered ChandanaSKallesh-3042 published

Hello there,

You can try actions as follows:
Plan A
1. Enter “powershell” in windows search bar,right click it and “run as administer”;
2. Enter these commands
DISM.exe /Online /Cleanup-image /Scanhealth
DISM.exe /Online /Cleanup-image /Checkhealth
DISM.exe /Online /Cleanup-image /Restorehealth
97777-1.png

Plan B
1. Open Settings> Windows Update> Check for updates;
97763-2.png
2. Run Windows update to update your system,
See if there is a patch for Windows Defender to update,
Updating your system may solve this problem.

Plan C
1. If you have installed a third-party security software, your windows defender will enter disabled mode by default.
2. In that case, uninstall the third-party security software.

Referring to your Microsoft Store issue
1. If the Store app doesn't open, hangs, or not working correctly, then re-registering the Store will usually fix this issue.
2. Terminate the Microsoft Store app to make sure it's closed and not running.
3. Enter “powershell” in windows search bar,right click it and “run as administer”;
4. Enter this command

Get-AppXPackage WindowsStore -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}

97667-3.png
5. When finished, close the elevated PowerShell,
Restart the computer to apply.
Try opening the Microsoft Store app again.

OR the problem may caused by current user’s profile broken, in that case you may try to create another account to see if it is ok.

Best Regards,
Samson Peng








1.png (99.9 KiB)
2.png (102.9 KiB)
3.png (77.8 KiB)
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

hello samson peng i tryed your fixes but none of them worked i ran into a problem with one of the fixes. so.... when trying the update your system thing it says this a error accured while trying to install this update and then some other things i will leave the photo here

97866-image.png


0 Votes 0 ·
image.png (42.6 KiB)
SamsonPeng-MSFT avatar image SamsonPeng-MSFT microsoftuser231476-0374 ·

Hello there,

This error code means the Firewall service is disabled.

You can still try to update your systerm using Update Assistant or manual way.
https://www.microsoft.com/en-us/software-download/windows10

The Update Assistant can help you check compatibility and update to the latest version of Windows 10. To get started, click Update now.

You can also prepare a blank USB flash drive with at least 8GB of space, create a bootable installation media and start setup from the ISO file.
Note: Backup your systerm and profile at first

Isee that your disk c only has 5gbs of storage left, try the methods to clean up your C drive.


0 Votes 0 ·

i inserted my 50 GB drive and the microsoft assistant doesnt see it it still says not enough space my cpmputer reckognizes the drive but the windows update assistant thing doesnt

0 Votes 0 ·
Show more comments
ChandanaSKallesh-3042 avatar image ChandanaSKallesh-3042 microsoftuser231476-0374 ·

@microsoft user 231476
To stop and then restart these services by using a batch file, follow these steps:

Click Start, type Notepad in the Search box and then click Notepad in the programs list.

Select the following text, right click the selected text, and then click Copy. Right-click anywhere in the Notepad window, and then click Paste.


sc config MpsSvc start= auto
sc config KeyIso start= auto
sc config BFE start= auto
sc config FwcAgent start= auto
net stop MpsSvc
net start MpsSvc
net stop KeyIso
net start KeyIso
net start Wlansvc
net start dot3svc
net start EapHostnet
net stop BFE
net start BFE
net start PolicyAgent
net start MpsSvc
net start IKEEXT
net start DcaSvcnet
net stop FwcAgent
net start FwcAgent
In Notepad, Click File, click Save As, and then type Repair.bat in the File name box

Click the Save as type box, and then click All Files (.).

In the left pane, click Desktop, and then click Save.
In the left pane, click Desktop, and then click Save.

On the File menu, click Exit.

On your desktop, right-click the Repair.bat file that you saved in step 5, and then click Run as administrator.

Important If you are prompted for confirmation to stop a service, press Y on the keyboard, and then press Enter

0 Votes 0 ·
ChandanaSKallesh-3042 avatar image ChandanaSKallesh-3042 microsoftuser231476-0374 ·

@microsoft user 231476
To stop and then restart these services by using a batch file, follow these steps:

Click Start, type Notepad in the Search box and then click Notepad in the programs list.

Select the following text, right click the selected text, and then click Copy. Right-click anywhere in the Notepad window, and then click Paste.


sc config MpsSvc start= auto
sc config KeyIso start= auto
sc config BFE start= auto
sc config FwcAgent start= auto
net stop MpsSvc
net start MpsSvc
net stop KeyIso
net start KeyIso
net start Wlansvc
net start dot3svc
net start EapHostnet
net stop BFE
net start BFE
net start PolicyAgent
net start MpsSvc
net start IKEEXT
net start DcaSvcnet
net stop FwcAgent
net start FwcAgent
In Notepad, Click File, click Save As, and then type Repair.bat in the File name box

Click the Save as type box, and then click All Files (.).

In the left pane, click Desktop, and then click Save.
In the left pane, click Desktop, and then click Save.

On the File menu, click Exit.

On your desktop, right-click the Repair.bat file that you saved in step 5, and then click Run as administrator.

Important If you are prompted for confirmation to stop a service, press Y on the keyboard, and then press Enter

0 Votes 0 ·
Reza-Ameri avatar image
0 Votes"
Reza-Ameri answered Reza-Ameri commented
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

thank you for your help luckily and very thankfully the windows system scanner detected no malware or anything corrupted on my computer and i went through the other support pages so it said you need about 20 free gbs of space for a 64 bit computer to update i have a couple of drivers one has like 170 gbs but my main windows driver like disk c only has 5gbs of storage left so is there some way to transfer free storage from one drive to another and i checked everything on my main drive is necesarry most of it is temparary files so i need to add more storage mrom my disk A to my disk C is there a way to do that? and is there some way to install the update on another drive

0 Votes 0 ·
MotoX80 avatar image MotoX80 microsoftuser231476-0374 ·

Run cleanmgr.exe and clean up your C drive.

https://zamarax.com/2020/08/26/how-to-run-disk-cleanup-cleanmgr-exe-on-windows-server-2016-2012-r2-2008-r2/


Install TreeSizeFree and analyze which folders are using up the most space. You may have applications that have gigs and gigs of log files that you don't need.

https://www.jam-software.com/treesize_free

0 Votes 0 ·
Reza-Ameri avatar image Reza-Ameri microsoftuser231476-0374 ·

You may move some of your files and folders and also use the Disk Cleanup.

0 Votes 0 ·

so is everything in my c drive needed like i go into this pc and then click c drive is everything in there necesarry? or can i delete it or move it to a usb drive?

0 Votes 0 ·
Show more comments
ChandanaSKallesh-3042 avatar image
0 Votes"
ChandanaSKallesh-3042 answered ChandanaSKallesh-3042 published

@microsoftuser231476-0374

Kindly Perform Below steps and let us know if you still getting the error

To stop and then restart these services by using a batch file, follow these steps:

Click Start, type Notepad in the Search box and then click Notepad in the programs list.

Select the following text, right click the selected text, and then click Copy. Right-click anywhere in the Notepad window, and then click Paste.


sc config MpsSvc start= auto
sc config KeyIso start= auto
sc config BFE start= auto
sc config FwcAgent start= auto
net stop MpsSvc
net start MpsSvc
net stop KeyIso
net start KeyIso
net start Wlansvc
net start dot3svc
net start EapHostnet
net stop BFE
net start BFE
net start PolicyAgent
net start MpsSvc
net start IKEEXT
net start DcaSvcnet
net stop FwcAgent
net start FwcAgent
In Notepad, Click File, click Save As, and then type Repair.bat in the File name box

Click the Save as type box, and then click All Files (.).

In the left pane, click Desktop, and then click Save.
In the left pane, click Desktop, and then click Save.

On the File menu, click Exit.

On your desktop, right-click the Repair.bat file that you saved in step 5, and then click Run as administrator.

Important If you are prompted for confirmation to stop a service, press Y on the keyboard, and then press Enter

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.