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
3
votes
2 answers
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}}
pause

rmontgomery429
- 749
- 1
- 8
- 8
3
votes
3 answers
Cisco VPN client - how to automate vpn process
I use Cisco vpn client to connect some customer
Vpnclient.exe required answer about the question “Do you wish to continue” (yes / no )
Is it possible to run the vpnclient.exe without question ? (silent mode )
( I not want interactive mode )
My…

nils
- 53
- 1
- 3
- 7
3
votes
2 answers
Get User Rights Assignment values in Local Computer Setting using VBScript and WMI
I'd like to get all the values of User Rights Assignment in Local Computer Setting using VBScript and WMI. Is there a way I can do this with VBScript and WMI?
Thanks.

Hendri
- 31
- 1
- 2
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.

Alex Alexander
- 31
- 1
3
votes
2 answers
Is it possible to get CCM Updates Schedule using Powershel or VBScript?
I want to be able to check the CCM Updates Schedule as seen in Configuration Manager Updates tab. I've been looking around on google and I've not been able to find a consistent answer to this.
I tried to create a COM object using…

frogman
- 31
- 2
3
votes
1 answer
Overwrite files without prompt with File.CopyHere in logon script (vbs)
I'm trying to create a logon script (vbs) to install some fonts. If the fonts are installed I get a prompt saying "There's already a file with the same name in this location".
How can I force the files to be replaced without the prompt?
My script…

Jonas Stensved
- 223
- 2
- 6
- 17
3
votes
3 answers
Direction for Scripting
I'm administering a network and they use a few scripts here. Mostly batch scripts or vbscript. It's a Windows environment, mostly Server 2008 with a few 2003 servers.
My question is Should I learn both VBscript and Powershell or just Powershell?
I'd…

Rowell
- 703
- 8
- 18
3
votes
2 answers
Can I change Internet Explorer security settings using a script?
Is it possible to change Internet Explorer security settings using a .bat or .vbs file?
Basically, I need to change IE7 and IE8 security settings for the local intranet. The settings I want to change are:
Display video and animation on a webpage…

nami
- 131
- 1
- 1
- 2
3
votes
3 answers
Sync OUs within Active Directory
I'm setting up two OUs in Active Directory to support a software package we're getting ready to roll out. One OU is for production, the other for training/sandbox. It is required that these be independent OUs in the same domain rather than…

Joel Coel
- 12,932
- 14
- 62
- 100
3
votes
2 answers
VBScript wont run for domain user on Windows Server 2008 R2
I've got a script that runs just fine under the administrator user. But when a domain user executes the script, we get this error message.
CScript Error: Loading your settings failed. (Access is denied. )
This error only happens on a Windows 2008…

NeerPatel
- 329
- 2
- 6
- 18
3
votes
5 answers
Get user profile size in vbscript
I am trying to get the size of a user's local profile using VBScript. I know the directory of the profile (typically "C:\Users\blah").
The following code does not work for most profiles (Permission Denied error 800A0046):
Dim folder
Dim fso
Set fso…

Cameron
- 203
- 2
- 3
- 9
3
votes
1 answer
Logon VBS script will not start programs
I am trying to have Group Policy run a Logon script for a User OU. The script runs, but the part where it creates a Shell Object to run, it does not load during logon. If I double-click the script, it works as expected - the issue is during the…

Canadian Luke
- 885
- 15
- 44
3
votes
4 answers
Windows Server 2008 R2 VBScript script engine missing
On Win2008R2 x64 I get
Input Error: There is no script engine for file extension ".vbs".
when starting a .vbs file.

user28271
- 151
- 1
- 1
- 6
2
votes
1 answer
logon script applied but not running
Using this answer, I was able to confirm that a logon script is applied to my user account, but it doesn't run. I can run gpupdate /force but my PC got accounts connected to a different domain and I don't know what would happen if I did that. My…

rminaj
- 121
- 1
- 4
2
votes
2 answers
How to check if a specific list of user accounts are disabled in AD, using powershell v2.0 or CMD / VBS
1) I have a txt list with sAMAaccountNames
2) I need to query each account name and verify whether it is disabled
3) if the account is disabled, delete it from AD
I'll just delete them manually if there isn't another way, but first I need to check…

DSKyo
- 153
- 3
- 6
- 15