Windows Operations
Windows operations documentation for engineers who live in Linux but work in hybrid environments. PowerShell as a tool, not a lifestyle.
Quick Navigation
| Certificates | Coming Soon |
|---|---|
PowerShell Fundamentals |
|
Active Directory Queries |
|
WSL Setup & Configuration |
Philosophy
PowerShell is a tool. Use it when Windows is the problem domain. Return to your terminal when done.
This documentation exists because:
-
Corporate environments are hybrid (AD, Windows endpoints, Linux servers)
-
WSL bridges both worlds - you need to move certificates, fix SSL, manage SSH
-
Cisco Umbrella and corporate proxies break things - you need to fix them
-
Some tasks are genuinely easier in PowerShell (AD queries, cert stores, GPO)
Core Use Cases
Certificate Operations
Export certificates from Windows trust store for Linux consumption:
# Find corporate CA certs
Get-ChildItem Cert:\LocalMachine\Root | Where-Object { $_.Subject -match "Umbrella|Corporate" }
# Export to PEM for WSL
$cert = Get-ChildItem Cert:\LocalMachine\Root | Where-Object { $_.Subject -match "Umbrella" }
[System.IO.File]::WriteAllText("C:\temp\corp-ca.crt", `
"-----BEGIN CERTIFICATE-----`n" + `
[Convert]::ToBase64String($cert.RawData, 'InsertLineBreaks') + `
"`n-----END CERTIFICATE-----")
Then in WSL:
sudo cp /mnt/c/temp/corp-ca.crt /etc/ca-certificates/trust-source/anchors/
sudo update-ca-trust