Some AD attibutes can only be set via scripting or program interface, like
the employee id, etc.
The solution will have to encompass some sort of AD script interface, most
likely in this case for network users, using WSH with a run-once registry
setting, or just a simple user/computer validation.
The script can be located on one of the servers in the domain, and set to
run with a privilege that allows writing to AD.
By using this method, the users will only be prompted once to enter the
inventory id, and you can even make sure it follows a formula. IE: if all
inventory id's are x characters, all numeric, etc.
For exaple:
<job>
<script language="vbscript">
on error resume next
set wshNetwork = WScript.CreateObject( "WScript.Network" )
Set wshShell = WScript.CreateObject("WScript.Shell" )
do while wshNetwork.username = ""
WScript.Sleep 250
loop
user = wshNetwork.username
domain = wshNetwork.userdomain
' use ADSI get list of groups the user belongs to
adspath = "WinNT://" & domain & "/" & user
set adsobj = getobject( adspath )
...
Prompt and validate ID
ie:
assetNumber = prompt("Enter the 10 digit Inventory Tracking Number")
validate
...
Write info to AD
ie: adsobj.put "assetNumber", assestNumber
...
</script>
</job>
Brendan Stephens
Intranet Developer
-----Original Message-----
From: T Bowman
To: [EMAIL PROTECTED]
Sent: 26/04/2002 11:59 AM
Subject: RE: [ActiveDir] Tracking Assets
He thought of that, however, he's getting no enforcement support
from above. :(
I suggested a group policy instead of login scripts - once he figures
out
how to utilize the object attribute.
T.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dirk Marshall
Sent: Friday, April 26, 2002 10:24 AM
To: [EMAIL PROTECTED]
Subject: Re: [ActiveDir] Tracking Assets
Another way to do this would be to to simply put the asset ID as part of
the
computer name. Just a thought
Cheers
Dirk
----- Original Message -----
From: "T Bowman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 25, 2002 3:56 PM
Subject: [ActiveDir] Tracking Assets
> The following is from a friend of mine. I don't have an answer for
him
and
> no access to a server to "tinker".
>
> ------original message----------------
>
> I need to be able to capture asset ID's (property tag) for each
computer
we
> put in the active directory. There is a schema attribute called
> "assetNumber". How do I use/populate that attribute? Where would I
see
an
> assetNumber entry for a computer in the AD?
>
> What I really want to do is create a logon or startup script that will
> prompt the user to enter their asset number. We have the asset number
on
an
> asset tag on the computer, but we don't have it linked anywhere to the
> nodename.
>
> Thanks for any ideas!!
>
> T.
> -----------------------
> Tony Bowman, MCSE, MCSA, CCNA
> Harvest, AL
> [EMAIL PROTECTED]
>
> List info : http://www.activedir.org/mail_list.htm
> List FAQ : http://www.activedir.org/list_faq.htm
> List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
>
List info : http://www.activedir.org/mail_list.htm
List FAQ : http://www.activedir.org/list_faq.htm
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
List info : http://www.activedir.org/mail_list.htm
List FAQ : http://www.activedir.org/list_faq.htm
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
List info : http://www.activedir.org/mail_list.htm
List FAQ : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/