Roberto Alves

Scripting and server based computing

.VBS to compare applications version on all servers

This is a very, very and very simple inventory tool. But can be very useful on sbc environments. This script checks the list of applications on Add/Remove Programs of each server, and writes a result in a table inside a html file.  Then, you can compare if all servers has same software installed or same updates!

To have a reliable Citrix or Terminal Services environment, you need ensure that all servers on each silo are equal, to all users get same applications, updates, etc.

Continue reading

.VBS to search non-auto created printers on profiles

I made little modifications on this script created by Jakob Heidelberg to search for printers manually created on user profiles. This is very usefull when you wanna ensure that eveybody has only auto created printers, from Citrix or ThinPrint.

This script load ntuser.dat on each profile, check some registry keys, write a log and unload ntuser.dat. Some users can have problems to load their profiles if you use this script on the same time that they try logon.

Continue reading

.VBS to automatic configuration of proxy servers at Internet Explorer

Script to be used on notebooks, when a user uses a notebook inside of your company with a proxy server and at another networks without proxy servers, like home. The script execute a ping to a server (that can be the proxy server), if the ping command is successfully then Internet Explorer will be open configured to use a proxy server. If ping command fails, then Internet Explorer will be open without a proxy server.
Create a shortcut with the Internet Explorer icon with the follow address:
%windir%system32wscript.exe “c:program filesinternet explorerabrir_ie.vbs”
Continue reading

How to create services on Windows 2003

A lot of people unknown some tools of Resource kit for Windows 2003, that can be essential in a environment implementation. Twice of this tools are instsrv.exe and srvany.exe that bring the possibility to you create new services for Windows 2003, using a executable file or a vbs script.
To create a new service on Windows 2003 follow the steps:

1.) Copy to server the files instsrv.exe e srvany.exe, that be found on the Windows 2003 Resource Kit.

Continue reading