#92915 - 2003-09-19 12:00 AM
ADSI help
|
ktodi
Getting the hang of it
Registered: 2002-03-29
Posts: 60
|
I am trying to add the following script into my kixtart script. When it runs i get the error unknow command adscomputer. Can anyone help me with the syntax?
$Set adsComputer = GetObject("WinNT://" & @Domain & "/" & @WKSTA & "/LanmanServer,FileService") $adsComputer.Description = "User: @Fullname" $adsComputer.SetInfo
|
|
Top
|
|
|
|
#92916 - 2003-09-19 12:10 AM
Re: ADSI help
|
Chris S.
MM club member
   
Registered: 2002-03-18
Posts: 2368
Loc: Earth
|
Maybe this would work better...
code:
$adsComputer = GetObject("WinNT://" + @Domain + "/" + @WKSTA + "/LanmanServer,FileService") $adsComputer.Description = "User: @Fullname" $adsComputer.SetInfo
|
|
Top
|
|
|
|
#92919 - 2003-09-19 06:01 PM
Re: ADSI help
|
ktodi
Getting the hang of it
Registered: 2002-03-29
Posts: 60
|
Ok so I took the Set command away but left the & symbols. Now when I run it is just displays Name: Users fullname to the screen.
|
|
Top
|
|
|
|
#92926 - 2003-09-19 07:21 PM
Re: ADSI help
|
ktodi
Getting the hang of it
Registered: 2002-03-29
Posts: 60
|
Thanks for your help changig the & to + fixed everything.
|
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|