close

more join.ps1

Set-ExecutionPolicy -Scope LocalMachine -ExecutionPolicy unRestricted
$domain = "neilad"

$password = "jjj" | ConvertTo-SecureString -asPlainText -Force

$username = "$domain\jjj"

$credential = New-Object System.Management.Automation.PSCredential($username,$password)

Add-Computer -DomainName $domain -Credential $credential

#Restart-Computer -force
Stop-Computer -force

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 hlolo 的頭像
    hlolo

    hlo日記

    hlolo 發表在 痞客邦 留言(0) 人氣()