From d018a81c0a726208ca2a7fd0fbfec4ebae97e0e0 Mon Sep 17 00:00:00 2001 From: LizenzFass78851 <82592556+LizenzFass78851@users.noreply.github.com> Date: Sun, 8 Sep 2024 06:36:54 +0200 Subject: [PATCH] Update CreateWhitelist.ps1 --- DIY USB Whitelisting/CreateWhitelist.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/DIY USB Whitelisting/CreateWhitelist.ps1 b/DIY USB Whitelisting/CreateWhitelist.ps1 index 21a7581..580c4ee 100644 --- a/DIY USB Whitelisting/CreateWhitelist.ps1 +++ b/DIY USB Whitelisting/CreateWhitelist.ps1 @@ -1,14 +1,20 @@ # PowerShell-Skript zur Erstellung einer Zulassungsliste der derzeit angeschlossenen USB-Geräte +# PowerShell script to create an allowlist of currently connected USB devices # Funktion zur Erstellung der Zulassungsliste +# Function for creating the approval list function CreateWhitelist { # Erstellen einer Liste der derzeit angeschlossenen USB-Geräte + # Create a list of currently connected USB devices $usbDevices = Get-PnpDevice -Class USB | Where-Object { $_.Status -eq "OK" } # Speichern der Geräte-IDs in einer Datei + # Saving the device IDs to a file $usbDevices | ForEach-Object { $_.InstanceId } | Out-File ".\USBWhitelist.txt" Write-Host "Zulassungsliste erstellt und gespeichert." + Write-Host "Approval list created and saved." } # Erstellung der Zulassungsliste +# Creation of the approval list CreateWhitelist