Roberto Alves

Scripts and Server Based Computing

Enable again toolbars in Excel 2003

Sometimes you can be very surprised with the amount of irresponsible people doing some code as vbs scripts, programs or even simple excel macros that can negatively affect production environments.
Last week I got a very simple problem, that can be frustrating for a user. Some external partner of my company created a Excel spreadsheet with [...]

This vbs script consist into two verifications to restrict access of users from internet in Citrix XenApp (Presentation Server/Metaframe) servers or Terminal Services, to be included in the session initialization. The idea of this script allow access from users from Internet just if they are in a specific Active Directory group.
In the first verification, the [...]

ICA or RDP are not the best protocols to copy files between DataCentres and remote workstations. But, some times is very difficult to implement a different solution to provide access to users local files from Citrix XenApp or Terminal Services, and even if the idea was rejected in the design of your environment, one day [...]

Some times, you need publish a specific website on your Citrix XenApp farm, but you need avoid to users see toolbars or addressbars, and you don’t want put Internet Explorer on kiosk mode. Then the alternative solution can be publish a .VBS that opens the Internet Explorer as you wish.
First step: Create a .vbs and [...]

One picture say more than a thousand words. Because this in some cases I like to include a lot of images on my project documentations. Generally, these pictures are PrintScreens of consoles and their configurations and diagrams that explain some funcionality.
Benefits when you use pictures instead pure text on project documentations:

You are sure that all [...]

.VBS Copying files to many locations

This is a very simple script that copies a folder from a specific path to all servers listed on servers.txt file.
There is a file called progress.htm that runs an activeX control that shows a progress bar, that increases when the copy is done on each server.
On Error Resume Next
source_server = “machine_name”
source = “\c$\Install\CPS45HF”
Dim server()
Set objFSO [...]

Very useful on File Servers migrations, this script was created and used on login script of 1000+ users after migration from Novell file server to a new Windows file server. The script reduces the calls on service desk after migration, reading what mapped drivers each user has and creating a new mapped driver.
Basically, you need [...]

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 [...]

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. [...]

This simple .VBS script can verify in seconds what members belongs to local Administrators group and Power Users groups of all servers.
You only need inform the names of each server in a text file called servers.txt.
On Error Resume Next
Set objFSO = CreateObject(”Scripting.FileSystemObject”)

« Previous Entries  Next Page »