Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB Script

Status
Not open for further replies.

DirectOne

IS-IT--Management
Dec 26, 2002
62
US
I have read marcdmac's FAQ Implementing powerful and flexible login scripts! faq329-5798 and found it very helpful.

2 questions:

1. the renaming the My Computer part of the code isn't working correctly. It does not change the My computer to the computer name?

2. What code do you need to create an Exchange profile for the user logging in, if one hasn't already been created for that user?

We are helping a school and teachers want to log into any of 200 computers and check their email. OWA is not an acceptable option for them.

Thanks for your help.

Andy
 
Andy, Glad you have found the FAQ of use. How are you implementing the script? Does it rename the My Computer icon if executed locally?

Creating an Outlook profile via script is so ugly I would NOT advise it. Instead you should deploy Outlook using the ORK (Office Resource Kit) which offers a Custom Installation Wizard that will let you make an MST to provide all the info needed for the new profile if it does not exist. What is best is you can apply all the Office hotfixes from a central location!

I have an FAQ on deploying Office (works the same for just Outlook too).faq96-4996

I hope you find this post helpful.

Regards,

Mark
 
Mark,
I tried your code locally and thru the Global Policy as outlined in your post and neither change the name?

I thought as much on the Outlook. There are some 3rd party products that will do it for a price. I will review your other post as well on the ORK.

thx

Andy
 
Mark,

Can you set scripts by AD container vs group?

thx

Andy
 
Yes but it will only affect the users or computers from that OU down.

I hope you find this post helpful.

Regards,

Mark
 
Thanks.

Still having the issue with the computer name though.
Anything else I should try?

thx

Andy
 
Here is another solution for you.

In order for the following code to work, it has to have WSHShell and strComputer already defined. Note the user needs to press F5 on the desktop (or wait for second login for this to take affect).

Code:
'This add on will rename the My Computer icon with the computer name
MCPath = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
WSHShell.RegWrite MCPath & "\", strComputer, "REG_SZ"

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top