AD域加域退域脚本 powershell -Command "$domain='%ad%'; $user='%usr%'; $pass=ConvertTo-SecureString '%pw%' -AsPlainText -Force; $cred=New-Object System.Management.Automation.PSCredential($user,$… 2026-1-13 15:02 | 36 | 0 | 笔记类 适用于win7/win10/win11加入AD域,退出AD域,主要通过Powershell调用JoinDomainOrWorkgroup实现