remove computer from domain





3
Date Submitted Thu. Mar. 2nd, 2006 11:23 AM
Revision 1 of 1
Syntax Master dannyboy
Tags DOMAIN | REMOVE | VBSCRIPT
Comments 0 comments
function to remove a computer from a domai

Function RemoveDomain(OldPCName)
  oWshShell.Run "netdom.exe MEMBER \\" & OldPCName & " /joinworkgroup workgroup", 1, TRUE
End Function
 

Comments

There are currently no comments for this snippet.

Voting