剛安裝好 Windows 7 後,將光碟放入光碟機,雖然光碟機有運作聲響,但在「電腦」中卻看不到任何檔案,甚至連光碟資訊都讀不出來。這通常是因為註冊表中「CD 燒錄」功能的暫存資料夾路徑被錯誤修改為根目錄「\」所導致。
只需以系統管理員身分執行 PowerShell,並貼上下列腳本即可自動偵測並修正錯誤的暫存路徑。
PowerShell,在搜尋結果上右鍵選擇「以系統管理員身分執行」。$reg = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\CD Burning\StagingInfo\"
$un = [System.Environment]::UserName
$hx = "\"
Get-ChildItem -Path $reg -Name | ForEach-Object {
$newreg = $reg + $_
$c = Get-ItemProperty -Path $newreg -Name StagingPath -ErrorAction SilentlyContinue
if ($c.StagingPath -eq $hx) {
$newPath = "C:\Users\$un\AppData\Local\Microsoft\Windows\Burn\Burn1"
Remove-ItemProperty -Path $newreg -Name StagingPath -ErrorAction SilentlyContinue
New-ItemProperty -Path $newreg -Name StagingPath -PropertyType String -Value $newPath
Write-Host "Done. You can open your Disk"
}
}

腳本執行完成後,即可正常讀取光碟內容。此方法適用於 Windows 7 及更新版本。
Windows 的 CD 燒錄功能會在註冊表 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CD Burning\StagingInfo 下為每個光碟機建立一組鍵值,其中 StagingPath 指向暫存檔案資料夾。若此路徑被誤設為「\」,系統便無法正確建立暫存區,導致光碟機無法掛載檔案系統。上述腳本會遍歷所有子鍵,找出路徑錯誤的項目並重設為預設使用者暫存目錄。