[THIN] Re: OT? WSH Logon Scripts

  • From: "Joseph Finley" <jfinley@xxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Fri, 9 May 2003 16:26:29 -0400

I tried to use KIX in the past but just didn't like it. =20

I wrote a huge VBS logon script to tame our users because most of them =
can't
manage their desktops or remember printers but it does the following =
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 =
did
this 3+ years ago...




-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On =
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? =20



Here is some sample code you can use. =20

Mapping a drive


Set WSHNetwork =3D WScript.CreateObject("WScript.Network")

WSHNetwork.RemoveNetworkDrive "G:", 0, -1 WSHNetwork.MapNetworkDrive
"G:","\\ServerName\Share"



Getting group membership


strDomain =3D "Enter Domain Name Here"

Set WSHNetwork =3D WScript.CreateObject("WScript.Network")

strUser =3D WSHNetwork.UserName

adsPath =3D "WinNT://" & strDomain & "/" & strUser

set adsObj =3D GetObject(adsPath)

For Each Prop In adsobj.groups

Msgbox Prop.Name

Next


-----Original Message-----
From: Braebaum, Neil [mailto:Neil.Braebaum@xxxxxxxxxxxxxxxxx]=20
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 - =
you've
mentioned the WAN thing, is it the Kixtart caching functionality that's
causing issues, or have you genuinely found performance differences in =
WAN
environments between the two scripting technologies?

I honestly think, for much of login script activity, that Kixtart can't =
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 =
files
for various things - but I honestly think that for login processing =
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 =
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,=20
>but would like to migrate our scripts to VBScript & WSH to improve=20
>execution time across our WAN. If you have something that's=20
>not too too=20
>complex (I'm interested in mapping/deleting shares, checking group=20
>membership,
>etc.) that you could share it would be greatly appreciated!

***********************************************************************
This e-mail and its attachments are confidential and are intended for=20
the above named recipient only. If this has come to you in error,=20
please notify the sender immediately and delete this email from your =
system.
You must take no action based on this, nor must you copy or disclose it =
or
any part of its contents to any person or organisation.

Statements and opinions contained in this email may not necessarily=20
represent those of Littlewoods. Please note that email communications=20
may be monitored.=20

The registered office of Littlewoods Limited and its  subsidiaries is =
100
Old Hall Street, Liverpool, L70 1AB.=20
Registered number of Littlewoods Limited is 262152=20
 ***********************************************************************
********************************************************
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=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

Other related posts: