From 43e566d0e04791d879aef9851b3ebfc9548e937a Mon Sep 17 00:00:00 2001 From: Marc Blatter Date: Mon, 27 Oct 2025 11:02:52 +0000 Subject: [PATCH] =?UTF-8?q?L=C3=B6schen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Es muss eine andere Lösung gefunden werden --- MapBusyBox.ps1 | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 MapBusyBox.ps1 diff --git a/MapBusyBox.ps1 b/MapBusyBox.ps1 deleted file mode 100644 index 54d4ce4..0000000 --- a/MapBusyBox.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -# Benutzername und Passwort -$User = "5ad15aa50bd186b488778908c92f099972aefa6831482bcca3560f26c6025383" -$Pass = "RJs6B-JAeRX-wQtiM-Xi4c6-cYBD4" - -# Passwort in SecureString umwandeln -$SecurePass = ConvertTo-SecureString $Pass -AsPlainText -Force -$Cred = New-Object System.Management.Automation.PSCredential($User, $SecurePass) - -# Laufwerk X: entfernen, falls vorhanden -if (Get-PSDrive -Name X -ErrorAction SilentlyContinue) { - Remove-PSDrive -Name X -Force -} - -# Netzlaufwerk mappen -$UNCPath = "\\cloud.busybox.ch\remote.php\dav\files\$User" -New-PSDrive -Name X -PSProvider FileSystem -Root $UNCPath -Credential $Cred -Persist - -# Explorer-Laufwerksbezeichnung setzen -$RegPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\##cloud.busybox.ch#remote.php#dav#files#$User" -if (-not (Test-Path $RegPath)) { New-Item -Path $RegPath -Force | Out-Null } -New-ItemProperty -Path $RegPath -Name "_LabelFromReg" -Value "BusyBox" -Force | Out-Null \ No newline at end of file