autoexec.ps1
if (test-path "$($env:TEMP)\bcdedit.exe") { # nothing to do } else { if (Test-Path "$($env:WinDir)\system32\bcdedit.exe") { Copy-Item "$($env:WinDir)\system32\bcdedit.exe" "$($env:TEMP)\" } else { Write-Error "Cannot find bcdedit.exe. Commands of this module will NOT work." } } |