Improve company productivity with a Business Account.Sign Up

x
?
Solved

VBS to do profile specific first run configs

Posted on 2011-03-04
4
Medium Priority
?
512 Views
Last Modified: 2012-05-11
I am looking to create a VB script to configure a few profile specific items within Windows XP, IE8 and Outlook. We have a shared computer that gets logged into by different users. The first time they log in, we set up their printer, go through the IE8 config popup and make sure that their Outlook mailbox is setup. I have already created the VBS needed to add a network printer and make it the default.

Option Explicit
Dim objNetwork, strUNCPrinter
Set objNetwork = CreateObject("WScript.Network") 
objNetwork.AddWindowsPrinterConnection "\\printserver\printer"
strUNCPrinter = "\\printserver\printer"
Set objNetwork = CreateObject("WScript.Network") 
objNetwork.AddWindowsPrinterConnection strUNCPrinter
objNetwork.SetDefaultPrinter strUNCPrinter
WScript.Quit

Open in new window


I need to add a way to disable the configuration popup that you see the first time you open IE8.

I also would like to have the software disable the pops that come when you first open Outlook 2007. The email profile gets created automatically but when it finishes, it asks about RSS feeds and the search feature along with another popup in the beginning. I would like to disable these popups also so that the user does not have to call us about the popups.

I would also like to have it change the power options to never for both being plugged in and on batteries. When I close the lid of my portable computer, i want it to "do nothing."

And last, I would like the Visual Effects to be set to "Adjust for best performance."

I wanted to put this all in a VBS that runs at startup. Can someone create this?
0
Comment
Question by:mkllpit
  • 2
  • 2
4 Comments
 
LVL 16

Expert Comment

by:ThinkPaper
ID: 35183435
Is this machine on a network that you can manage? A lot of these settings can be easily configured via group policy (disable first run pop ups and extra settings such as RSS feed, set power options, etc.).
If not, then you can look up the associated registry keys/settings and push those changes via vbs.
0
 

Author Comment

by:mkllpit
ID: 35184537
Unfortunatly, I do not have access to group policy based on my position. I was hoping that I can run this on startup. or at least most of it.
0
 
LVL 16

Accepted Solution

by:
ThinkPaper earned 2000 total points
ID: 35263868
Then registries would be the best way, assuming the machine account has access to modify the registry.

For the "first run" popups for IE, then you should be able to do the registry settings:

http://www.winhelponline.com/blog/disable-ie8-tour-welcome-screen-runonce-all-users/

As for Outlook, check this link for registry settings:
http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Q_24107924.html

And try this for the best performance:
http://www.vistax64.com/vista-performance-maintenance/79983-want-change-vissual-effects-adjust-best-performance.html

Here's the registry key for it: (i think it should work for windows 7)
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\VisualFXSetting registry subkey.
0 = Let Windows choose what's best for my computer.
1 = Adjust for best appearance
2 = Adjust for best performance.


You can create an entire .REG file with the changes in it. Then just create a batch file that includes to command to run the REG file. If you need further assistance, let us know.
0
 

Author Comment

by:mkllpit
ID: 35279824
Thank you. All of that information was very useful.

I got the Printer, IE8 config & visual effects down.

The Outlook link you shared shows how to automatically add user name and initials when Word or Excel is first run. I will use this info but I actually needed a way to auto-create the mail profile. I have found RichProfile to do the job that I need. It will create the exchange mail profile in cache mode.

I also realized that by creating a new profile and setting up all of these profile settings will also work. After I setup the profile with the above configurations, I logged off and back on as admin, copied my profile folder to the "Default Users" folder which sets up most of the configurations that I need. Now I just run RichProfile and I am good.

When I need to remove profiles because of too many profiles building up, I use Delprof.exe mixed with a batch script to automatically delete profiles older then 15 days.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Through the video, you can check the migration process of Outlook PST file to PDF. Kernel for Outlook to PDF tool can convert Outlook emails with all attributes like Subject, To, From, Cc, Bcc and other folders such as Inbox, Outbox, Sent Items, Jun…

589 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question