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
1
vote
1 answer
.VBS scripts have stopped running... No idea why!
We have two .vbs scripts that are run by our Task Scheduler that have suddenly stopped working for no reason we can fathom. We haven't significantly altered our system configuration in the last 24 hours, and the scripts have run without a hitch for…

Django Reinhardt
- 2,286
- 3
- 38
- 58
1
vote
0 answers
How can I get Airflow on Linux run a VBS script that is automatically downloading SAP data?
I have an Airflow installed on CentOS and I am able to run scripts/commando's on my Windows 10 machine.
However, I have a VBS script that starts Excel and SAP Logon and then automatically logins, fills in some fields and download a file. When I run…

Billy
- 11
- 2
1
vote
2 answers
Change/Force CMD properties like Window size & Screen Buffer size via GPO, or other ways
Is it possible to control CMD properties like Window size & Screen Buffer size via GPO? (or a VBS script that can be pushed using GPO :)
I have Windows 7 / Windows Server 2008.
Many thanks for your advice.
Toast

ToastMan
- 544
- 4
- 18
- 29
1
vote
1 answer
Any PowerShell Script to Backup and restore Ms-sql database using dB username and password?
I am looking for a PowerShell script which can take backup and restore MS-SQL databases using SQL authentication.

san1ty
- 11
- 1
0
votes
0 answers
Granting permission to domain user for folder not working
I'm converting my code to use icacls and currently following this tutorial: https://ss64.com/nt/icacls.html.
On this part,
Grant the user jdoe rights to create, edit and delete files in the
folder C:\demo\example\, but prevent deletion of the…

rminaj
- 121
- 1
- 4
0
votes
1 answer
Script to enable bitlocker in All Drive
I am trying to enable bitlocker in all domain joined user machines in my office.
I have used a Widows task scheduler script to enable bitlocker in all machines.
But the below code is enabling bitlocker in C drive alone.
I need to enable this in all…

user284141
- 1
- 2
- 4
0
votes
1 answer
Automatic profile configuration in Outlook 2016 / Outlook 365
I'm in the process of reconfiguring Outlook 2016 clients with an Exchange 365 backend. The majority of my users need access to one or more shared mailboxes to receive and to send e-mail. Using the default option to give these users full mailbox…

mokum
- 23
- 1
- 5
0
votes
1 answer
VBS Script passing argument?
Hello everyone I have this script in VBS:
On Error Resume Next
If WScript.Arguments.Count < 2 Then
WScript.Echo "This script requires arguments."
WScript.Quit
End If
Dim sURL, sAuth, sRequestType
sUrl =…

Guizado
- 13
- 3
0
votes
3 answers
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 mappings?...in order to avoid them deleting and re-creating…

Saif Khan
- 1,945
- 2
- 20
- 25
0
votes
2 answers
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 hta file, but i have trouble finding a good guide…

Frode Eskil
- 41
- 8
0
votes
0 answers
Export Windows Registry for Services
I have a process that I want to automate, I have tried doing some digging but I can't find a way to do it, as I am not a heavy scripter. Here it goes:
I want to have a script of some sort, that will search the registry and export registry keys for…

yellowjacket21
- 53
- 5
0
votes
1 answer
Shutdown domain PC's in bulk ASYNCHRONOUSLY
I am using psshutdown to turn off list of computers, but it seems ages to shutdown a list of 50+ PC's. It's shutting down them one by one, not all of them at the same time.
Is there any program or script to shutdown all PC's asynchronously, not one…

Matt Markevičius
- 91
- 1
- 6
0
votes
2 answers
vbs to detect usb drive and run some commands
I have two scripts. Both are within the same folder on the hard disk. The "vbs" call "bat" to detect usb to run some commands.
I want to incorporate the function of selecting the usb to vbs. Thanks
usb.vbs
Option Explicit
On Error Resume…
user290171
0
votes
0 answers
Retrieve VM information from VCloud
In a development shop, we have a large number of VMs with complete installations of our applications, with client, server and database VMs in a single vApp. The people who create the VMs do not keep a registry of information about the vApps, and so…

Mark Bertenshaw
- 101
- 1
0
votes
2 answers
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 not mapped successfully and their print jobs fail. …

Doug Chase
- 753
- 3
- 12
- 22