ش | ی | د | س | چ | پ | ج |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
@ECHO off
ECHO Run this with admin privileges
:: Change following variable to desired user or group
set UserOrGrp=Everyone
for %%d in (L) do (
if EXIST %%d:\ (
ECHO Taking ownership of drive %%d:\
takeown /R /F %%d:\ /D Y /SKIPSL
ECHO Granting full control to %UserOrGrp%
icacls %%d:\* /Q /C /T /grant %UserOrGrp%:F
)
)
PAUSE
Visual Studio freezing (crashing) while loading solution
[my Experience]
The solution is to Disable Windows Security Antivirus (Windows Defender)
1. Open PowerShell as Administrator;
2. Copy the commands below and run in PowerShell:
Set-MpPreference -DisableRealtimeMonitoring $true -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' -Name 'DisableAntiSpyware' -Value 1 -PropertyType DWord -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' -Name 'DisableAntiVirus' -Value 1 -PropertyType DWord -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' -Name 'ServiceKeepAlive' -Value 0 -PropertyType DWord -Force
3. Paste into the Powershell terminal and press the {Enter} key
After running the above commands, restart the computer but do not run the troubleshoot to avoid reactivation.