簡單說就是遠端桌面連線目標的 rdpclip.exe 出現問題
解決方式:
將遠端電腦的 rdpclip.exe process kill 掉重開就好了
taskkill /f /im rdpclip.exe
rdpclip.exe
結案
技術記事與生活
簡單說就是遠端桌面連線目標的 rdpclip.exe 出現問題
解決方式:
將遠端電腦的 rdpclip.exe process kill 掉重開就好了
taskkill /f /im rdpclip.exe
rdpclip.exe
結案
使用者「不小心」在 OneDrive 桌面應用程式同步的情況下刪除了含有大量檔案的資料夾
並因為 OneDrive 桌面應用程式同步的關係將 OneDrive 雲端伺服器中的檔案也刪除
此時透過 OneDrive 網頁的資源回收桶進行復原將產生錯誤,因為復原檔案有限制數量
此時必須動用 PowerShell 指令搭配 Microsoft Entra App 來處理
先安裝好 PowerShell Module: PnP.PowerShell (需要 PowerShell 7 版本)
Install-Module -Name "PnP.PowerShell" -Scope AllUsers -Force (我都裝 AllUsers)
接著到 Microsoft Entra admin center 註冊一個 App
給予 API Permession 的時候「不是」選 Microsoft Graph,而是選 SharePoint
不知為什麼預設的連不上,又不想設中國的怕被加料,日本的也不能連
以下是韓國的:
Kakao (Daum):
網址:https://mirror.kakao.com/pypi/simple
KAIST (韓國科學技術院):
網址:https://mirror.kaist.ac.kr/pypi/simple
Outlook Mail Deduplicator v1.0.26.04.09.09.06發布前最後一次修改,Claude 把一個 worker 意外覆蓋掉了,導致按下 [開始掃描] 沒作用
$keyword = 'Off'
$vms = Get-VM | Where-Object { $_.Name -like "*$keyword*" }
if (-not $vms) {
Write-Host "找不到 VM 名稱包含 '$keyword' 的虛擬機。" -ForegroundColor Yellow
return
}
$vmResults = @()
$grandTotalBytes = 0
foreach ($vm in $vms) {
$hdds = Get-VMHardDiskDrive -VMName $vm.Name -ErrorAction SilentlyContinue
if (-not $hdds) {
$vmResults += [pscustomobject]@{
VMName = $vm.Name
VhdCount = 0
TotalSizeGB = 0.0
Detail = "<無掛載虛擬硬碟>"
}
continue
}
無掛載虛擬硬碟>
在 Windows 下讓 del 指令有個 alias name: rm
方法:
# AutoOpenFileTypes: qdsGPO: Computer Configuration → Administrative Templates → Microsoft Edge → List of file types that should be automatically opened on downloadNew-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Edge\AutoOpenFileTypes" -Force | Out-NullNew-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Edge\AutoOpenFileTypes" -Name "1" -Value "qds" -PropertyType String -Force | Out-Null# AutoOpenAllowedForURLs: 只允許 intranet.contoso.comGPO: Computer Configuration → Administrative Templates → Microsoft Edge → URLs where AutoOpenFileTypes can applyNew-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Edge\AutoOpenAllowedForURLs" -Force | Out-NullNew-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Edge\AutoOpenAllowedForURLs" -Name "1" -Value "intranet.contoso.com" -PropertyType String -Force | Out-Null
Change this from 2 to 0
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device]
"DevicePasswordLessBuildVersion"=dword:00000000
Create a .reg file with the following:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device]
"DevicePasswordLessBuildVersion"=dword:00000000
Next:
Command: netplwiz
➨ Check: Users must enter a user name and password to use this computer
<?xml version="1.0" encoding="UTF-8"?><ruleset version="1.0+"><rule><id location="https://plmap.contoso.com.tw/"/><action permission="run"/></rule><rule><id location="https://plmifs.contoso.com.tw:8080/"/><action permission="run"/></rule><rule><id/><action permission="default"/></rule></ruleset>