Page 1 of 1 1
Topic Options
#92915 - 2003-09-19 12:00 AM ADSI help
ktodi Offline
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. Offline
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
#92917 - 2003-09-19 01:35 AM Re: ADSI help
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
HEHEE
...a VBer trying to KiX. [Big Grin]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#92918 - 2003-09-19 05:37 PM Re: ADSI help
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Yeah, I was wondering why the code looked so funny. [Smile]
_________________________
There are two types of vessels, submarines and targets.

Top
#92919 - 2003-09-19 06:01 PM Re: ADSI help
ktodi Offline
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
#92920 - 2003-09-19 06:04 PM Re: ADSI help
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Did you try Chris' code exactly as typed? I doubt it!
_________________________
There are two types of vessels, submarines and targets.

Top
#92921 - 2003-09-19 06:04 PM Re: ADSI help
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Did you not look at Chris' rewrite?
& has a different meaning in KiX than in VBS.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#92922 - 2003-09-19 06:06 PM Re: ADSI help
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Dang! Jens must have HS DSL... me got only 28.8 dial-up today. [Frown]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#92923 - 2003-09-19 06:07 PM Re: ADSI help
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
100-half to switch, dual fiber-Gig from switch to Internet2 [Big Grin]
_________________________
There are two types of vessels, submarines and targets.

Top
#92924 - 2003-09-19 06:24 PM Re: ADSI help
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You make me sick! [Mad]

28.8k to my RAS, 512k over WAN, 3m to internet. [Frown]

Why not 100-full to your switch?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#92925 - 2003-09-19 06:29 PM Re: ADSI help
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Central IT department policy. They manage the switches. [Frown]

I requested a test whether the switches can be set to 100 full for all workstations, however, they're kind-of unwilling to do this. They also don't want me to set up a 803.11a (54MBits)wireless base station for some equipment tests where we want to replace the cross-over cables with a wireless connection to make the system slightly more transportable.
_________________________
There are two types of vessels, submarines and targets.

Top
#92926 - 2003-09-19 07:21 PM Re: ADSI help
ktodi Offline
Getting the hang of it

Registered: 2002-03-29
Posts: 60
Thanks for your help changig the & to + fixed everything.
Top
#92927 - 2003-09-20 12:40 AM Re: ADSI help
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
no it didn't.
I still have hole in my tooth. [Razz]
_________________________
!

download KiXnet

Top
Page 1 of 1 1


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

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.07 seconds in which 0.03 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