#46435 - 2003-10-08 07:02 PM
Determine Domain Joined to?
|
wvanaa
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
|
|
|
|
#46437 - 2003-10-08 07:06 PM
Re: Determine Domain Joined to?
|
wvanaa
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
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Note my edits above - Hit the submit too quick.
Kent
|
Top
|
|
|
|
#46440 - 2003-10-08 07:19 PM
Re: Determine Domain Joined to?
|
wvanaa
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
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
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 361 anonymous users online.
|
|
|