Questions tagged [vbscript]

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.

217 questions
5
votes
4 answers

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 without hand-crafting HTTP/FTP requests or using…
grigoryvp
  • 3,795
3
votes
1 answer

Batch File to Copy Files

I have a list of 150 computers on my Windows Active Directory network that I am trying to copy a files to. I wonder if someone might have a script that would, copy the files or shortcut to the computers by looking for the PC names in a text file.
2
votes
0 answers

Is it possible to launch a hyperlink within the email body from a specific sender?

Goal: My goal is to have OUTLOOK filter an incoming message based on keywords (which can be done with rules) but, I need to run a script that will automatically open the link within the email. Configuration: Our back-end system has a button that…
2
votes
1 answer

Download large files via VBscript

Has anyone been successful with downloading large files via VBScript? My script is below and it is erroring out downloading a file over a 1GB. Small files it works with no problem. Do I need to try a different method? The error message it gives…
1
vote
1 answer

A positional parameter cannot be found that accepts argument 'WScript.CreateObject'

Trying to execute: Set objWshShell = CreateObject("WScript.Shell") Getting error: [![PS C:\Windows\system32> Set objWshShell = WScript.CreateObject("WScript.Shell") Set-Variable : A positional parameter cannot be found that accepts argument…
1
vote
1 answer

Event Viewer VB scripts

I am sure it has been asked million times, but I can't seem to find an appropriate answer for my simple need. I am looking for a VB script that would pull event viewer logs into one location, either emailed to me or place on let's say my…
George
  • 500
1
vote
3 answers

PC won't run VB script, error VBScript runtime error ID 800A046

I have a few workstations that can't run a network script for mapping network drives etc. I know the script works as it's working for everyone else. But on 1 or 2 machines (out of 1000) the script won't run at all. I get an error "VBScript runtime…
stead1984
  • 577
  • 9
  • 16
  • 32
1
vote
2 answers

How to Create a Network Share using vbscript

I want to create a network share using vbScript. Is there a way of doing this other than executing a "net share" command? e.g. Set shell = CreateObject("WScript.Shell") shell.Run "net share sc1=" & sShare , 1, false
seanyboy
  • 308
  • 4
  • 17
1
vote
2 answers

to get the list of hostname, IP address, subnet mask

want to write a Vb Script to get the full information on all the host name, and ip address and sub net mask of computer that has been added to the domain control.
jason
  • 43
0
votes
1 answer

Inventory VBScript doesn't load processor or RAM attributes

I've been working on a VBscript inspired by these posts: http://deployhappiness.com/series/creating-an-inventory-with-active-directory/ and I've found a decent amount of success in my test machines with the Manufacturer, Model Series, MTM, and…
0
votes
1 answer

VBScript permission denied moving a folder

Help please. this is driving me nuts. Running a CMD prompt (As Administrator) on a Win2K3 AD server I have a source folder on a local disk (C:\test) I have a dest folder on a network share (\\device\share) When I do a ojbFS.MoveFolder "C:\Test",…
0
votes
1 answer

VBS script to check the service and its status

I have to check the service in windows machines and if the service does not exists or is in stopped state then the machine should prompt a message and automatically restart after a certain period of time. I have tried the below one but its not…
Karthik
  • 11
0
votes
1 answer

Fault with my VB script

Im adding a logon script to a GPO to install a program for me. Can anyone see a problem with this script? When the PC boots it comes up saying that it can find the resource? Const EVENT_SUCCESS = 0 On Error Resume Next strPlugin =…
user50966