README.md aktualisiert

This commit is contained in:
2026-04-23 13:00:05 +02:00
parent 1046d43df2
commit 64293a44e0
+3 -10
View File
@@ -1,7 +1,7 @@
# PowerShell Skripte # PowerShell Skripte
Die Skripte in diesem Verzeichnis **erfordern PowerShell 7** (auch bekannt als PowerShell Core). Die Skripte in diesem Verzeichnis **erfordern PowerShell 7**.
Das klassische Windows PowerShell 5.1 (das blaue Fenster) wird **nicht unterstützt**. Das klassische Windows PowerShell 5.1 wird zum teil **nicht unterstützt**.
--- ---
@@ -14,7 +14,7 @@ Das klassische Windows PowerShell 5.1 (das blaue Fenster) wird **nicht unterstü
### Option 2: Winget (Terminal / Kommandozeile) ### Option 2: Winget (Terminal / Kommandozeile)
```powershell ```powershell
winget install --id Microsoft.PowerShell --source winget winget install Microsoft.PowerShell
``` ```
### Option 3: Manueller Download ### Option 3: Manueller Download
@@ -43,13 +43,6 @@ cd "C:\Pfad\zum\Skript-Ordner"
.\MeinSkript.ps1 .\MeinSkript.ps1
``` ```
### Tipp: Direkt per Rechtsklick (optional einrichten)
Mit dem folgenden Befehl (einmalig in PS7 als Administrator ausführen) lässt sich
ein „Mit PowerShell 7 ausführen"-Eintrag im Kontextmenü hinzufügen:
```powershell
pwsh -Command "& { $key = 'HKCR\Microsoft.PowerShellScript.1\Shell\Open with PowerShell 7'; reg add $key /ve /d 'Mit PowerShell 7 ausführen' /f; reg add \"$key\Command\" /ve /d 'pwsh.exe -File \"%1\"' /f }"
```
--- ---
## Prüfen ob PowerShell 7 aktiv ist ## Prüfen ob PowerShell 7 aktiv ist