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
How can I either through vbscript or GPO push a Windows 7 Logon Screen to all my users
I know how to change the login screen, it's easy. But I would like to figure out a way to do it through GPO or login script. I have tried running the script as the computer start-up script as well as the users login script(GPO) But the users do not…

Shane Roppel
- 13
- 2
1
vote
2 answers
How Can I Open and Print a Word Document Using a VBScript Called From the Web?
The university I work for allows students to register their bikes for indoor storage during the winter. This is done through a website. At the end of the process, a DYMO label printer connected to the network is supposed to print out a label that…

rjc
- 11
- 3
1
vote
3 answers
How do I turn off Windows 7 Firewall via script or through automation?
This is in regards to working on machines before joining the machine to a domain and although I would love to rely on GPO, that isn't an option at this time.
In the environment I'm working in, the firewall policy is to use a 3rd party Firewall app…

CIA
- 1,604
- 2
- 13
- 32
1
vote
1 answer
windows xp - how to add a ipp printer by batch/vbs
I need to deploy printers using IPP in the logon script (batch/vbs).
I found the following script to do this:
rundll32 printui.dll,PrintUIEntry /if /q /b "r011-printer01 " /f %windir%\inf\ntprint.inf /r "http://10.0.0.1:631/printers/r011-printer01"…

Zulakis
- 4,153
- 14
- 48
- 76
1
vote
2 answers
Need to modify VB script so it deletes all existing network printers first
We have a fantastic VB script that adds multiple network printers, then goes on to select one of them to be the default.
Dim multiPrinter, UNCpath1, UNCpath2, UNCpath3
UNCpath1 = "\\server\printer1"
UNCpath2 = "\\server\printer2"
UNCpath3 =…

Austin ''Danger'' Powers
- 1,180
- 6
- 21
- 51
1
vote
1 answer
Delete a folder in the currently logged in user's profile
I am trying to create a login script, or bat file to delete the folder located in the following directory. I would like the whole folder deleted with all of its contents "Juniper Networks".
This is on a terminal server -…

Dan Cole
- 11
- 1
- 3
1
vote
1 answer
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.

AdrienF
- 125
- 3
- 10
1
vote
1 answer
Windows 7: Update a file in the system32 folder via GPO
I'd need to update a Windows file in the system32-folder
I've made a script to do this task. When I run it locally on a system (from a prompt with elevated privileges) it works fine.
I've created a GPO where this script is set under computer…

Walter81
- 123
- 1
- 7
1
vote
1 answer
Script to Uninstall MS Updates by Date
I'm in a situation where I need to uninstall all windows updates before a certain date to troubleshoot a strange bug. I found several vb/ps scripts to do this
remove single update
However I'm trying to get at something along the lines of where…

bumble_bee_tuna
- 443
- 11
- 26
1
vote
2 answers
Server 2008 R2 Task Scheduler permissionf for a vbs script
I have a vbs script to make backups of MySQL database files using the MySQLDump command. This is working perfectly and creates a new folder for each day's backups (e.g. 20130110).
However, the script is also meant to tidy up by deleting folder older…

JezB
- 233
- 2
- 6
- 11
1
vote
1 answer
.vbs script wont run at login using AD
I am trying to execute a printer script (.vbs) on logon for my company's users.
I am currently running a batch (.bat) file on startup through Active Directory > Profile > Logon Script which works as expected.
However, as as soon as I replace the…

Angad
- 11
- 1
1
vote
2 answers
Windows Group Policy - Can I alter with VBscript?
First of all I'm not an expert in either Windows or Group Policy scripting but one of my tasks is to configure XP machines which are destined to be NOT network. Consequently I've used VBScript to change Registry settings but now I have some settings…

D-Dᴙum
- 153
- 1
- 1
- 10
1
vote
2 answers
Change AD-Password from client by console / VBScript
I have an AD-environment, but a few machines are used as workgroup-machines (and I can't change this).
My target is to have a script which changes the AD-Password on the server from a client machine. Most answers in the web are for clients attached…

endo
- 125
- 1
- 5
1
vote
1 answer
VBScript for Uninstall not finding anything
I started using a standard uninstall script, and it wasn't working, so I decided to see if it was even finding any progams at all, and it seems it isn't. It works on Windows 7 but not on the other the Windows 2003 server I need to use it on. I'm…

David
- 439
- 1
- 5
- 17
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
- 4
- 19
- 40