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
2answers
744 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
378 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
339 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
1k 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
4k 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
95 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
728 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
21k 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? ...