不知為什麼預設的連不上,又不想設中國的怕被加料,日本的也不能連
以下是韓國的:
Kakao (Daum):
網址:
https://mirror.kakao.com/pypi/simple
KAIST (韓國科學技術院):
網址:
https://mirror.kaist.ac.kr/pypi/simple
技術記事與生活
不知為什麼預設的連不上,又不想設中國的怕被加料,日本的也不能連
以下是韓國的:
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>
Install two network interfaces on a single Windows Server with the following IP addresses:
10.11.11.11 (physical NIC)10.22.22.22 (Description: Microsoft KM-TEST Loopback Adapter)批次建立 win-acme 用 DNS Record 取得憑證的任務
$RecordNames = @();
$RecordNames += "www";
$Domain = "contoso.com";
foreach ($RecordName in $RecordNames) {
$FQDN = ($RecordName + '.' + $Domain);
write-host ('Request Certificate for ' + $FQDN);