# Windows Command Summary
Personal details are replaced with `<placeholders>`. Run PowerShell **as administrator**. Mask usernames and IP addresses before sharing results.
## Run box (`Win + R`)
```
powershell
shell:desktop
%UserProfile%
eventvwr.msc
```
## PowerShell (read-only)
**1. Desktop location**
```
[Environment]::GetFolderPath('Desktop')
```
**2. Listed remote-access programs currently running**
```
Get-Process | Where-Object {$_.ProcessName -match 'anydesk|teamviewer|rustdesk|remoting|vnc|parsec|splashtop|ultraviewer|supremo|screenconnect|ezhelp'} | Select-Object ProcessName, Path
```
**3. Remote Desktop setting** (`1` = off, `0` = on)
```
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' | Select-Object fDenyTSConnections
```
**4. Local user accounts**
```
Get-LocalUser | Select-Object Name, Enabled, LastLogon
```
**5. Remote Desktop logons, last 30 days**
```
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4624; StartTime=(Get-Date).AddDays(-30)} | Where-Object {$_.Properties[8].Value -eq 10} | Select-Object TimeCreated, @{n='User';e={$_.Properties[5].Value}}, @{n='IP';e={$_.Properties[18].Value}}
```
**6. Account creation, group additions, log clearing**
```
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4720,4732,1102; StartTime=(Get-Date).AddDays(-30)}
```
**7. Newly installed services**
```
Get-WinEvent -FilterHashtable @{LogName='System'; Id=7045; StartTime=(Get-Date).AddDays(-30)} | Format-List TimeCreated, Message
```
**8. Defender detections and scan exclusions**
```
Get-MpThreatDetection
(Get-MpPreference).ExclusionPath
```
**9. File signature and hash**
```
Get-AuthenticodeSignature "<FilePath>" | Format-List Path, Status, SignerCertificate
Get-FileHash "<FilePath>"
```
**10. Driver registration and file search**
```
Get-CimInstance Win32_SystemDriver -Filter "Name='<DriverName>'" | Format-List Name, State, StartMode, PathName
Get-ChildItem $env:USERPROFILE -Filter "<FileName>" -Recurse -Force -ErrorAction SilentlyContinue | Select-Object FullName, LastWriteTime
Test-Path "$env:USERPROFILE\Desktop\<FolderName>"
```
## Administrator Command Prompt
**Export the file change journal** (`E:` = USB drive; creates a CSV file)
```
fsutil usn readjournal C: csv > E:\usn.csv
```
**File auditing** (⚠️ changes system settings)
```
auditpol /set /subcategory:"{0CCE921D-69AE-11D9-BED3-505054503030}" /success:enable
auditpol /set /subcategory:"{0CCE921D-69AE-11D9-BED3-505054503030}" /success:disable
```
Auditing also requires an auditing entry on the target folder. Disable it only if it was not enabled before you changed it.
**Note:** An empty result means nothing was found **within that check**. It does not prove the device is completely safe.