Roberto Alves

Scripts and Server Based Computing

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

.VBS for change mapped drivers

This script is very useful with File Servers migration, when can be used at logon script identifying the mapped drivers of each workstation and changing theirs for new drivers.
You can just change variables Path_antigo by name of the old File Server and Path_novo by name of new file server.
On Error Resume Next
iDebug=1

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

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

Here we have a simple VBS that can be used at published aplicattions on Citrix XenApp (Presentation Server), or running local applications with their necessary mapped network drivers.
This script map network drivers and open an application.
Letra = “S:”
‘Precisa ser letra maiuscula
Caminho = servidorshare
Aplicativo = Letra & “teste.exe”

This script verify each 30 seconds if two process are running to a user that opened a application with the script. In case of one process was terminated, then the other process will be terminated.
On Error Resume Next
Set objNet = CreateObject(\”WScript.NetWork\”)
Set WshShell = WScript.CreateObject(\”WScript.Shell\”)

« Previous Page  Next Entries »