start /B /W
wmic.exe /interactive:off ComputerSystem Where
"Name='%computername%'" Call UnJoinDomainOrWorkgroup FUnjoinOptions=0
start /B /W
wmic.exe /interactive:off ComputerSystem Where
"Name='%computername%'" Call JoinDomainOrWorkgroup
name="WORKGROUP"
shutdown.exe
/r /t 0 /f
또는 PowerShell을 사용할 경우
Powershell.exe
Remove-Computer -Force -Restart
로 하면 되지만, AD 서버를 Access해야 함.
댓글 없음:
댓글 쓰기