Roberto Alves

Scripts and Server Based Computing

Sometimes we are diving into so many tools, products, technologies, etc that we forgot simple and old tools that can save the day or at least save a good time. I will give as example the Sysinternals psexec, that is very useful to run remote commands.
Let’s imagine that you need force a policy update in [...]

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

I found at VisualBasicScript.com Forum a very useful script wrote by a user called “ginolard”, that can be used at login scripts or if you need, you can use the basic structure of this script into others scripts with different proposes.
Basically, this script read a XML file and execute mapnetwork commands considering the information gathered. [...]

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

.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”)

This script can be included in others scripts to verify if a user belongs to a specific group.
Set oShell = CreateObject(”Wscript.Shell”)
Set oNet = CreateObject(”Wscript.Network”)
set oFSO = CreateObject(”Scripting.FileSystemObject”)

« Previous Entries  Next Page »