Page 1 of 1 1
Topic Options
#46435 - 2003-10-08 07:02 PM Determine Domain Joined to?
wvanaa Offline
Fresh Scripter

Registered: 2001-04-27
Posts: 18
Loc: Oshkosh, WI, US
Anyone have a piece of code that will determine the domain the computer is joined to? Or a function that will return if the computer is joined to a domain or not, and what is the domain or workgroup.
Top
#46436 - 2003-10-08 07:03 PM Re: Determine Domain Joined to?
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Have a look at -
ComputerInGroup() - returns if the PC is a member of a specified group

Kent

[ 08. October 2003, 19:07: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#46437 - 2003-10-08 07:06 PM Re: Determine Domain Joined to?
wvanaa Offline
Fresh Scripter

Registered: 2001-04-27
Posts: 18
Loc: Oshkosh, WI, US
Thanks! Thought of the @LDOMAIN. This gives the domani logged into. Forgot about @DOMAIN. This gives a piece of the answer, but doesn't tell if joined to a domain or in a workgroup...
Top
#46438 - 2003-10-08 07:08 PM Re: Determine Domain Joined to?
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Note my edits above - Hit the submit too quick. [Wink]

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#46439 - 2003-10-08 07:10 PM Re: Determine Domain Joined to?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
There's also @LServer.
_________________________
There are two types of vessels, submarines and targets.

Top
#46440 - 2003-10-08 07:19 PM Re: Determine Domain Joined to?
wvanaa Offline
Fresh Scripter

Registered: 2001-04-27
Posts: 18
Loc: Oshkosh, WI, US
@LSERVER won't work either.

Here is what I am planning on doing:

We have created a transform of MS Office 2003 so we can burn a CD-ROM to send out to remote users. So we don't break licensing rules, we are planning on putting an encrypted KIX and encrypted ZIP combination together so only machines that are joined to any of our 14 domains can run the script and have the script de-crypt the ZIP (which holds the MFT file), therefore minimizing the chance of anyone upgrading their home machine.

Top
#46441 - 2003-10-08 08:25 PM Re: Determine Domain Joined to?
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I guess I don't see why @LSERVER, @LDOMAIN, @DOMAIN would not work. Are you writing a license code from a file that you need to insure that has not been used before? If you are using Select CDs, then this should be moot. However, you mentioned using Transforms and in that Wizard, there should be a place for a license code.

Thinking about how this should run:
(1) Check the version of Word/Excel/Outlook/PowerPoint
(2) If the Version is 2003 (for example - (11.xxxx.yyyy), Return (or exit)
(2) If it less than version 11, do the upgrade.

If you are logging in on a dial-up connection (@RAS), there could be a lot of traffic taken up with verification of credentials.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

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 (Allen) and 361 anonymous users online.
Newest Members
SERoyalty, mytar, Gabriel, Alex_Evos, Dansen
17869 Registered Users

Generated in 0.029 seconds in which 0.011 seconds were spent on a total of 13 queries. Zlib compression enabled.

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