Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


WMI

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,498
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> WMI
  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 >>
 WMI - 11/22/2001 1:59:06 AM   
  Admin of Hell

 

Posts: 2
Score: 0
Joined: 11/22/2001
From:
Status: offline
Hi!
I have a problem: How can i change the sid of a group?
Here my little Code:

Set GroupSID = GetObject("WinMgmts://IBFFTGDS1510").InstancesOf("Win32_Group")
For Each SID In GroupSID
Name = SID.Name
ID = SID.Sid
If Name = "test" then
Set path = SID.Put_(wbemChangeFlagUpdateOnly)
MsgBox "Finish!"
End If
Next

Following error Code appears in the Set Path..... Line:

Provider is not capable of the attempted operation

Please help me, what is wrong?
 
 
Post #: 1
 
 Re: WMI - 12/5/2001 8:28:20 PM   
  willr

 

Posts: 2
Score: 0
Joined: 12/5/2001
From: USA
Status: offline
Have you looked in one of Microsoft's resource kits for a utility to change a SID? SidWalker? Is this group on the local computer? If it is in a domain I would use ADSI to make changes.
Try this link on the MSDN site:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/accctrl_5lyq.asp


Will Robinson
MCSE, MCDBA Win2k

Edited by - willr on 12/06/2001 02:32:11

(in reply to Admin of Hell)
 
 
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 >> WMI Page: [1]
Jump to:





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