VBScript is a general-purpose scripting language developed by Microsoft that is modeled on Visual Basic. It is commonly used for Windows system administration. Some applications may use it as an internal scripting language allowing application automation.

learn more… | top users | synonyms (1)

0
votes
3answers
1k views

script to change drive mapping

I plan on retiring an old file server. I noticed some of my users have mapped about 10-15 "Mapped Network Drive" to this server. Is there a script I can use to change the server name in the ...
0
votes
2answers
1k views

cmd files to hta

I have a lot of cmd files i use daily for example to add users to local groups, installing printers, run as admin tasks etc. I like to take the scripts i use most frequently and add them to a tabbed ...
1
vote
3answers
34k views

Script to list current user's mapped network drives

I have a Windows XP/ Server 2003 environment here users have mapped different network drives themselves using arbitrary drive letters. Some of these users do not know how to tell the true UNC path of ...
0
votes
2answers
836 views

Check for the presence of a printer connection (unreliable printer mappings)

I have a lab area with about 75 XP boxes in it. At logon, we map two served printers with the AddWindowsPrinterConnection method in a VBS. 5-10% of the time, the users find that the printers have ...
2
votes
1answer
2k views

Registry read permissions (scripting) on Windows Server 2003

Executing the following VBScript on our Windows Server 2003 Set p_shell = CreateObject("WScript.Shell") p_shell.RegRead("HKEY_USERS\S-1-5-19\") yields the following error C:\Documents and ...
1
vote
5answers
3k views

WS2008 subst in Logon script does not “stick”

I have a terminal server environment exclusively with Windows Server 2008. My problem is that I need to "map" a drive letter to each users Temp folder. This is due to a legacy app that requries a ...
1
vote
1answer
349 views

Connect certain file to automatically launch through a VBS/ WScript

On Windows Vista, I would like to open all files of a certain extension with a little VBS file (which will then pass on the parameter to a Chrome Application Shortcut app, which is actually what I ...
0
votes
2answers
764 views

VBScript that wait for DHCP answers before execution

I am writing some script that automatically executes during startup of computer (XP), the script is actually mapping a network drive to windows. The problem I have is that the DHCP in the network is ...
1
vote
1answer
459 views

Building .htm email signatures with PHP or script and Active Directory

We use HTML signatures which are based off a template which gets changed from time to time. At the moment i have to open all the html files stored on the server into dreamweaver or similar, make the ...
0
votes
1answer
1k views

Calling an ASP function from an external ASP file

For some reason, I can include an ASP file with the following code: <!--# include virtual="/includes/func.asp" --> But, I have some functions in that file, and I can't call them into my main ...
2
votes
2answers
3k views

How can I get the name of a windows .bat script from within the script itself?

I have a .bat file. I want to programmatically get the name of the .bat file. How can I do this? This is my end goal "..\lib\nant\nant.exe" -buildfile:nant.build {{pass in name of this file here}} ...
5
votes
5answers
447 views

Please help me add to this script to get server hardware info

(If this should be on stackoverflow just tell me...but it seemed more fitting here) I found the script below online from this site: http://forums.webhostautomation.com/showthread.php?t=8667 Can ...
1
vote
8answers
2k views

how to visit every computer on the network and modify the hosts file in windows xp

We need to append a line to the hosts file for every user on our network. I have admin privileges, but don't know the first thing about windows scripting. Can someone point me in the right direction ...
0
votes
1answer
1k views

Networkmapping script (VBS) Vista doesn't work, XP does

I've got a weird problem, (like always :p ) Okay: Situation: Windows 2003 domain with XP clients. With a GPO I'm running a VBS script on login to map a few drives. This works great on XP, but not on ...
2
votes
2answers
5k views

logon.vbs script is not mapping network drives

I am new to creating a vbs script to map network drives in windows. For some reason, the script runs, but does not map any network drives when a user logs on to the domain. Here is the script I am ...
0
votes
1answer
96 views

Transfer files without destination access

HI All, I have a issue where I want to create a script (VB or Batch file) that when a user runs the script it will copy files from Folder1 to Folder2. Here's the rub. I don't want the users to have ...
0
votes
3answers
2k views

read an unknown directories name + copy to it

I would appreciate some help please. I am trying to copy two files "test1.txt" and "test2.txt" into an unknown directory, e.g. into the directory "%USERNAME%\Documents\test\04pql7hw.example" The ...
1
vote
1answer
785 views

query 2003 dhcp leases

Can I query my windows 2003 dhcp server from my windows xp in order to get the ip address if i have the mac address or otherwise.
0
votes
2answers
4k views

script to disable windows firewall under Vista

Set objFirewall = CreateObject("HNetCfg.FwMgr") Set objPolicy = objFirewall.LocalPolicy.CurrentProfile objPolicy.FirewallEnabled = FALSE This script does not work in Vista/2008 and Windows 7 ...
0
votes
2answers
10k views

Install Error: Could not access VBScript run time for custom action

I'm trying to install a package on a Windows 2008 server. The package is refusing to install. I have run the install with the following command line switched to get a log file: /lxv InstallLog.txt ...
1
vote
5answers
3k views

Alternative to WScript.Sleep

I'm using WhatsUpGold to monitor the uptime of services and one of them is a MySql server. Since there's no explicit support for MySql, I'm forced to write a VBS script to do it. Unfortunately, ...
5
votes
4answers
24k views

Download file from vbscript?

I need a script that can be run on freshly installed windows xp+ and download specified files from internet, like http://www.python.org/ftp/python/2.6.2/python-2.6.2.msi Is it any easy way to do it ...
1
vote
3answers
2k views

Install software on a remote machine?

I posted this question to SO, but I'm really not sure whether it should go SO or ServerFault, so I'm posting it here too. Here's the question: Hey SO Gus, This might seem like a dump question, but ...
5
votes
9answers
3k views

What scripting language do you use for your logon scripts in your Windows enviroment?

I wonder what scripting languages is most used as logon scripts these days. Is people still hacking away in batch-file files or vbscripts, or do you use PowerShell or something completely different? ...