Photo Gallery
Member List
Search
Calendars
FAQ
Ticket List
Log Out
Forums
Register
Login
My Profile
Inbox
Address Book
My Subscription
My Forums
add computer to workgroup from domain
Logged in as: Guest
arrSession:exec spGetSession 2,2,2773
Active Users: There are
0
members and
0
guests.
Users viewing this topic: none
Printable Version
All Forums
>>
[Scripting]
>>
WSH & Client Side VBScript
>> add computer to workgroup from domain
Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page:
[1]
Login
Message
<< Older Topic
Newer Topic >>
add computer to workgroup from domain -
4/21/2005 2:12:38 PM
antun
Posts: 9
Score: 0
Joined: 4/20/2005
From:
Status:
offline
Hey,
if a computer is a member of a domain, how would i remove it, and add it to a workgroup?
thanks
Post #: 1
Re: add computer to workgroup from domain -
4/21/2005 5:42:15 PM
token
Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status:
offline
You can simply use the UnjoinDomainOrWorkgroup method of the WMI Win32_ComputerSystem class. Note that this method is only supported in XP or higher.
eg:
set wmi = getobject(........)
...
item.UnjoinDomainOrWorkgroup
(in reply to
antun
)
Post #: 2
If you found our site useful please link to us
<a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>
.
All Forums
>>
[Scripting]
>>
WSH & Client Side VBScript
>> add computer to workgroup from domain
Page:
[1]
Jump to:
Select a Forum
All Forums
----------------------
[Welcome]
- - Forum Rules
- - Test Posting Messages
- - New Member Area/Introduction
[Scripting]
- - WSH & Client Side VBScript
- - WSH & Client Side VBScript Tutorial
- - Post a VBScript
- - Windows PowerShell
- - ASP
- - ASP.NET
- - Windows Script Components
[General Forum]
- - Other Programming/Scripting Languages
- - Suggestions & Feedback
- - Off-Topic Lounge
New Messages
No New Messages
Hot Topic w/ New Messages
Hot Topic w/o New Messages
Locked w/ New Messages
Locked w/o New Messages
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
Forum Software ©
ASPPlayground.NET
Advanced Edition
2.5.5 ANSI