[THIN] Re: OT? WSH Logon Scripts
- From: Marco Cortigiani <tuscan@xxxxxxxxxxxxx>
- To: thin@xxxxxxxxxxxxx
- Date: Sat, 10 May 2003 10:09:09 -0400
I guess that this starting to become a philosophical debate.
I used wsh, and vbscript a lot for my adminstrative scripts. I used to
write scripts in REXX when we were still using OS/2 and that NT batch
scripting language, even with the integration of KIX, didn't compare. I
just find the batch scripting really crypting, poor documented, and I
see kix as an extension of this technology. But again this is based on
personal inclination. I think that WSH scripting is much more powerful.
Just the fact that it is an object oriented language provide you so many
possibilites with the many windows API. With a WSH you could edit
registry, create network connection, write e-mail, perform asset
management inventory, update databases and so on forth. I guess that we
are really comparing apples to oranges here. Probably the problem is
that wsh has a stepper lerning curve that the NT Shell/Kix32, and that
it requires skills that are more developer mind set.
And I guess that each language has is strenghts, and that either wsh,
and kix should be considerate tools to get the job done. I used NT shell
scripting extensivelly. I even bought one of the few decent book on the
subject. The title is Windows NT shell scripting. But again I found it
very limited in very hard to use. I remember that to write a routine
that read a file and update the same file I had to read the all book
front to back. The same routine written in Vbscript would had been a
piece of cake.
Like the romans used to say "de gustibus non est dispudandu" which
basically means you can really argue about personal tastes.
Now dear computer wiz around the world I have to finish my comment and
leave. The weather here is halfway decent and I have to take my kids to
a soccer game.
Enjoy the week-end gang
Ciao
Marco Cortigiani
The Italian Citrix/Scripting Guru
Rob Beekmans wrote:
>Same here, and I like kixtart.
>
>-----Oorspronkelijk bericht-----
>Van: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] Namens
>Mack, Rick
>Verzonden: zaterdag 10 mei 2003 1:56
>Aan: 'thin@xxxxxxxxxxxxx'
>Onderwerp: [THIN] Re: OT? WSH Logon Scripts
>
>
>Hi Joseph,
>
>Sorry, Can't resist. I do this all with kix. And it doesn't need a huge
>script ;-)
>
>Regards,
>
>Rick
>
>Ulrich Mack
>rmack@xxxxxxxxxxxxxx
>Volante Systems
>18 Heussler Terrace, Milton 4064
>Queensland Australia
>tel +61 7 32467704
>
>
>
>-----Original Message-----
>From: Joseph Finley [mailto:jfinley@xxxxxxxxxxxxx]=20
>Sent: Saturday, 10 May 2003 6:26 AM
>To: thin@xxxxxxxxxxxxx
>Subject: [THIN] Re: OT? WSH Logon Scripts
>
>
>
>I tried to use KIX in the past but just didn't like it. =3D20
>
>I wrote a huge VBS logon script to tame our users because most of them =
>=3D
>can't manage their desktops or remember printers but it does the =
>following =3D
>which I couldn't do in Kix.......
>
>
>Queries databases for printers, sets default printer based on user and
>printer preference. (in this case Sybase) Maps drives Set's up Proxy =
>server
>based on Group Membership Creates Desktop shortcuts Writes all user =
>settings
>back to the database (in this case Sybase) Office registry settings =
>(default
>folder) Registry changes (Maps Outlook Express files to a drive share) =
>Even
>plays a .wav file is wanted....
>
>Most of this of course can be done easily now in Policies on 2000, but I =
>=3D
>did this 3+ years ago...
>
>
>
>
>-----Original Message-----
>From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On =
>=3D
>Behalf Of White, Michael S
>Sent: Friday, May 09, 2003 10:43 AM
>To: 'thin@xxxxxxxxxxxxx'
>Subject: [THIN] Re: OT? WSH Logon Scripts
>
>
>
>First why is Kix better? =3D20
>
>
>
>Here is some sample code you can use. =3D20
>
>Mapping a drive
>
>
>Set WSHNetwork =3D3D WScript.CreateObject("WScript.Network")
>
>WSHNetwork.RemoveNetworkDrive "G:", 0, -1 WSHNetwork.MapNetworkDrive
>"G:","\\ServerName\Share"
>
>
>
>Getting group membership
>
>
>strDomain =3D3D "Enter Domain Name Here"
>
>Set WSHNetwork =3D3D WScript.CreateObject("WScript.Network")
>
>strUser =3D3D WSHNetwork.UserName
>
>adsPath =3D3D "WinNT://" & strDomain & "/" & strUser
>
>set adsObj =3D3D GetObject(adsPath)
>
>For Each Prop In adsobj.groups
>
>Msgbox Prop.Name
>
>Next
>
>
>-----Original Message-----
>From: Braebaum, Neil [mailto:Neil.Braebaum@xxxxxxxxxxxxxxxxx]=3D20
>Sent: Friday, May 09, 2003 9:20 AM
>To: 'thin@xxxxxxxxxxxxx'
>Subject: [THIN] Re: OT? WSH Logon Scripts
>
>
>Just out of interest, why is it you wish to get away from Kixtart - =3D =
>you've
>mentioned the WAN thing, is it the Kixtart caching functionality that's
>causing issues, or have you genuinely found performance differences in =
>=3D WAN
>environments between the two scripting technologies?
>
>I honestly think, for much of login script activity, that Kixtart can't =
>=3D be
>beat. And anyways, nearly always the best choice is the tool you're most
>familiar with.
>
>Personally I use Kixtart, WSH / ADSI / vbscript, and normal command =3D =
>files
>for various things - but I honestly think that for login processing =3D =
>stuff,
>Kixtart is the optimal choice - especially if you know it already.
>
>I would have thought you'll have plenty of opportuinity to use and learn =
>=3D
>WSH / ADSI / WMI stuff, from lots of other admin tasks you'll no doubt =
>find.
>
>Neil
>
>
>
>>-----Original Message-----
>>From: Derek J. Lambert [mailto:dlambert@xxxxxxxxxx]
>>Sent: Friday, May 09, 2003 8:44 AM
>>To: thin@xxxxxxxxxxxxx
>>
>>This may be a little OT, but I was wondering if anyone had some WSH
>>logon scripts they could send my way. I am currently using =
>>
>>
>kixstart,=3D20=20
>
>
>>but would like to migrate our scripts to VBScript & WSH to improve=3D20 =
>>
>>
>
>
>
>>execution time across our WAN. If you have something that's=3D20 not =
>>
>>
>too=20
>
>
>>too=3D20 complex (I'm interested in mapping/deleting shares, checking=20
>>group=3D20 membership,
>>etc.) that you could share it would be greatly appreciated!
>>
>>
>
>***********************************************************************
>This e-mail and its attachments are confidential and are intended =
>for=3D20 the
>above named recipient only. If this has come to you in error,=3D20 =
>please
>notify the sender immediately and delete this email from your =3D =
>system. You
>must take no action based on this, nor must you copy or disclose it =3D =
>or any
>part of its contents to any person or organisation.
>
>Statements and opinions contained in this email may not necessarily=3D20
>represent those of Littlewoods. Please note that email =
>communications=3D20 may
>be monitored.=3D20
>
>The registered office of Littlewoods Limited and its subsidiaries is =
>=3D 100
>Old Hall Street, Liverpool, L70 1AB.=3D20 Registered number of =
>Littlewoods
>Limited is 262152=3D20
> ***********************************************************************
>********************************************************
>This Week's Sponsor - Emergent Online
>EOL's Universal Printer new Features include:
>Network Printing, Pagestreaming, 2400 DPI.
>No Client Software Required!
>http://www.go-eol.com/
>**********************************************************
>
>For Archives, to Unsubscribe, Subscribe or=3D20
>set Digest or Vacation mode use the below link:
>http://thethin.net/citrixlist.cfm
>********************************************************
>This Week's Sponsor - Emergent Online
>EOL's Universal Printer new Features include:
>Network Printing, Pagestreaming, 2400 DPI.
>No Client Software Required!
>http://www.go-eol.com/
>**********************************************************
>
>For Archives, to Unsubscribe, Subscribe or=3D20
>set Digest or Vacation mode use the below link:
>http://thethin.net/citrixlist.cfm
>
>********************************************************
>This Week's Sponsor - Emergent Online
>EOL's Universal Printer new Features include:
>Network Printing, Pagestreaming, 2400 DPI.
>No Client Software Required!
>http://www.go-eol.com/
>**********************************************************
>
>For Archives, to Unsubscribe, Subscribe or=20
>set Digest or Vacation mode use the below link:
>http://thethin.net/citrixlist.cfm
>-------------------------------------------------------------------------=
>---
>----------------------------------------
>The information contained in this e-mail is confidential and may be =
>subject
>to legal professional privilege. It is intended solely for the =
>addressee.
>If you receive this e-mail by mistake please promptly inform us by reply
>e-mail and then delete the e-mail and destroy any printed copy. You =
>must
>not disclose or use in any way the information in the e-mail. There is =
>no
>warranty that this email or any attachment or message is error or virus
>free. It may be a private communication, and if so, does not represent =
>the
>views of Volante group Limited.
>
>
>********************************************************
>This Week's Sponsor - Emergent Online
>EOL's Universal Printer new Features include:
>Network Printing, Pagestreaming, 2400 DPI.
>No Client Software Required!
>http://www.go-eol.com/
>**********************************************************
>
>For Archives, to Unsubscribe, Subscribe or=20
>set Digest or Vacation mode use the below link:
>http://thethin.net/citrixlist.cfm
>
>********************************************************
>This Week's Sponsor - Emergent Online
>EOL's Universal Printer new Features include:
>Network Printing, Pagestreaming, 2400 DPI.
>No Client Software Required!
>http://www.go-eol.com/
>**********************************************************
>
>For Archives, to Unsubscribe, Subscribe or
>set Digest or Vacation mode use the below link:
>http://thethin.net/citrixlist.cfm
>
>
>
--
********************************************************
This Week's Sponsor - Emergent Online
EOL's Universal Printer new Features include:
Network Printing, Pagestreaming, 2400 DPI.
No Client Software Required!
http://www.go-eol.com/
**********************************************************
For Archives, to Unsubscribe, Subscribe or
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm
- References:
- [THIN] Re: OT? WSH Logon Scripts
- From: Rob Beekmans
Other related posts:
- » [THIN] OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- » [THIN] Re: OT? WSH Logon Scripts
- [THIN] Re: OT? WSH Logon Scripts
- From: Rob Beekmans