# Fixing Errors

Fix for no Defender access Windows 11, download and run as admin:

* **securityhealthservice.exe** (old download link no longer working...)

Fix for .NET 4.5

<https://www.gnostice.com/docs/docstudio_net/guide/_faq_buildinganddeployment_vs2022_and_netframework45.html>

Fix for **py crypto**

```bash
git clone https://github.com/wbond/oscrypto.git
cd oscrypto
pip3 install .
```

Fix for DPAPI & Kiwi (meterpreter) errors

```
kiwi_cmd 'base64 /in:off /out:off
```

PowerView FindOne error

```powershell
Exception calling "FindOne" with "0" argument(s): "An operations error occurred.
"
At C:\users\public\downloads\PowerView.ps1:6330 char:50
+ ... $PSBoundParameters['FindOne']) { $Results = $CompSearcher.FindOne() }
+                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DirectoryServicesCOMException
```

Resolved by passing credentials for the specific domain to PowerView:

```powershell
$SecPassword = ConvertTo-SecureString 'Pass123' -AsPlainText -Force
$Cred = New-Object System.Management.Automation.PSCredential('zsm.local\Marcus', $SecPassword)
Get-DomainSID -Domain zsm.local -Credential $Cred
S-1-5-21-2734290894-461713716-141835440
```
