Page 1 of 1 1
Topic Options
#124041 - 2004-07-28 11:04 AM Kix32 in VBSkript
Anonymous
Unregistered


Hello to all,

This is not relly a kix specific question, anyway maybe someone knows something.

I´ve got an VBS loginscript in which I call kix32 only to return the users SID. Therfor I use the kix32 macro Code:
 @SID 

Is there a way to receive the SID only by using VBS?

regards

Top
#124042 - 2004-07-28 12:45 PM Re: Kix32 in VBSkript
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
Just done a search on this and got this back:

The WSHNetwork object might help.
Example:
Code:
 
Dim WSHNetwork
Set WSHNetwork = WScript.CreateObject("WScript.Network")

WScript.Echo(WSHNetwork.UserDomain & "\" & _
WSHNetwork.UserName)

_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#124043 - 2004-07-28 12:59 PM Re: Kix32 in VBSkript
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
actually thats not what you want is it. You want the SID. Can i ask why?


might want to check out this link

Stuff about getting SIDS in VBSCRIPT


Edited by AzzerShaw (2004-07-28 01:01 PM)
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#124044 - 2004-07-29 04:28 AM Re: Kix32 in VBSkript
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I'd rather send the VBScript through the VBS2KIX() UDF and go my merry way ;-)
_________________________
There are two types of vessels, submarines and targets.

Top
#124045 - 2004-07-29 04:50 AM Re: Kix32 in VBSkript
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
derfragende,
If you want help to code VBS, go find a VBS forum. If you want to convert your VBS to KiX you found the right place.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.06 seconds in which 0.032 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org