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.
Questions tagged [vbscript]
217 questions
2
votes
1 answer
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 Settings\Administrator\Desktop>cscript test.vbs
Microsoft…

Heinzi
- 2,217
- 5
- 32
- 52
2
votes
2 answers
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 using. It is pretty simple and straight…

aduljr
- 500
- 2
- 5
- 16
2
votes
1 answer
Invoke Windows password dialog when using NET USE
I'll try to get to the point.
Using Run from the start menu to an un-authenticated machine: \\hostname\share gives me the Windows prompt for password, good.
Running %systemroot%\explorer.exe "\\hostname\share" against the same un-authenticated…

DanBig
- 11,423
- 1
- 29
- 53
2
votes
2 answers
Script needed to log the name of attached USB drive to text file
We rotate 2 TrueCrypt-encrypted USB hard drives ("BACKUP 1" and "BACKUP 2") off-site each week, for our data backup system.
For both drives, the physical drive has no drive letter assigned to it (not necessary); however, both mounted, virtual drives…

Austin ''Danger'' Powers
- 1,180
- 6
- 21
- 51
2
votes
3 answers
Can multiple computers simultaneously append to a file on a windows file share?
I'm trying to log certain information from my network of Windows machines; I've set them to periodically collect this info, then I want it in a single CSV file on a network drive. I'm using a VBS to collect this data, using OpenTextFile in append…

askvictor
- 854
- 3
- 15
- 29
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…

user2345320
- 21
- 2
2
votes
1 answer
How does the "Last Result" column of Scheduled Tasks in Windows Server 2003 get set from a process or script?
The Last Result column of the Scheduled Tasks Window on Windows Server 2003, displays the result of the execution of the .exe, .vbs, .ps1, .bat, .cmd, etc... that has been run at the scheduled time.
There is also an archived history of this value…

leeand00
- 4,869
- 15
- 69
- 110
2
votes
1 answer
Shortcut on client to run bat file on a server
Is it possible to place a shortcut on a client which will run a bat (or vbscript) file on a server? (as opposed to the script running on the client)
It seems pretty basic, but I'm at a loss how this would be done.

David
- 439
- 1
- 5
- 17
2
votes
2 answers
Scripting help - need to get phone number of AD accounts and then add them to contacts in trusted domain
I have domain accounts that I have created as contacts in another trusted domain so that they can see them in their Exchange GAL.
I need a way to extract the phone number field from UserA (user account) in DomainA and import it into UserA (contact)…

TheCleaner
- 32,627
- 26
- 132
- 191
2
votes
2 answers
Upgrade to IIS7 from IIS6 to improve application performance
I have an ASP Classic application that runs currently in IIS6, but often due to the original programmer not following "best practices" this application throws an Out of Memory error after several hours.
Originally, I had asked this question on…

RogueSpear00
- 162
- 1
- 1
- 9
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…

ChriSxStyles
- 383
- 1
- 3
- 11
2
votes
1 answer
Converting WMI from vbscript to powershell
I'm trying to follow the guides for accessing IIS 6 using WMI but I'm having trouble working out how to translate the Get method of SWbemServices as Get-WmiObject doesn't seem to use the same path syntax (Describing the Location of a WMI…

Chris Chilvers
- 161
- 6
2
votes
1 answer
Running an application as a different user (.bat / .vbs)
I need to restart an application using a service running on the SYSTEM account. The problem is that the application is then also started under the SYSTEM account. For various reasons beyond my control the restart system is a bit complicated but as a…

Skrealin
- 123
- 1
- 3
2
votes
2 answers
How to run a 32-bit app from VBScript on both 32-bit & 64-bit Windows?
What is the best way to invoke a 32-bit command with Shell.Run in VBScript such that it will succeed on both Windows 32-bit and 64-bit operating systems?
On 64-bit, the app terminates because it's not a 64-bit process. Whilst I could use…

jessicah
- 131
- 1
- 3
2
votes
2 answers
Windows 7 logon scripts -- set default printer
I have been tasked with troubleshooting a logon script at a client site that among other things sets the default printer. The logon script is vbscript with the printer being set using
Set WshNetwork =…

gillonba
- 343
- 1
- 4
- 16