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
0 answers
Data Execution Prevention - Optout for the exe in “C:\Program Files\SSS\sss.exe” using Command Prompt
Can any one help me in adding "C:\Program Files\SSS\sss.exe" in DEP Exception list using Command Prompt?

Sudheer Muthusamy
- 61
- 1
- 6
1
vote
0 answers
SCCM2012 Detection of same version package, if yes stop deploy, if no go on deployment
We have massive error on SCCM 2012 client when deploying flash 19x, since its last version has auto update ability, many of our clients has already update it before SCCM 2012 deployment. I realize there is a option to detect it while deploy.…

Colaman
- 19
- 1
1
vote
5 answers
WS2008 subst in Logon script does not "stick"
I have a terminal server environment exclusively with Windows Server 2008.
My problem is that I need to "map" a drive letter to each users Temp folder. This is due to a legacy app that requries a separate Temp folder for each user but which does not…

flytzen
- 185
- 1
- 5
- 13
1
vote
1 answer
Connect certain file to automatically launch through a VBS/ WScript
On Windows Vista, I would like to open all files of a certain extension with a little VBS file (which will then pass on the parameter to a Chrome Application Shortcut app, which is actually what I want). Using a BAT or CMD file with batch commands…

Philipp Lenssen
- 155
- 1
- 8
1
vote
1 answer
How to add allowed relay IPs for Windows SMTP using command line or script
I have a long list of IP addresses I need to add as allowed relays to the built-in SMTP service on Windows Server 2008 R2 (IIS 7.5, but SMTP uses the old IIS 6.0 manager)
I know how to add allowed relays manually, but there is quite a long list so…

Andy Madge
- 1,607
- 2
- 14
- 14
1
vote
3 answers
How do I schedule a batch file to run on startup or shutdown?
I have 2 batch files that send emails intended to notify of a server shutdown or startup. The batch files call an exe with a single argument, the message to be sent. The exe comes from a vb.net program using system.net.mail.
The batch files work…

Alan
- 1,003
- 2
- 20
- 36
1
vote
2 answers
change ip address for 10 computers based on a txt file in powershell or vbscript
I have a txt file that looks like this
PC1 192.168.0.2
PC2 192.168.0.3
PC3 192.168.0.4
I would like to change computers ip addresses based on that list, so it will fill up the computer name and the ip address and process them all without…

dani
- 113
- 1
- 1
- 5
1
vote
2 answers
Building .htm email signatures with PHP or script and Active Directory
We use HTML signatures which are based off a template which gets changed from time to time.
At the moment i have to open all the html files stored on the server into dreamweaver or similar, make the change to a users .htm file then to a find and…

Ben Gillam
- 407
- 4
- 11
1
vote
1 answer
Write log for curl on windows
I currently have a script that runs a curl function to fetch logs from another server, i am trying to debug some issues with this script and would like to enable logging for this curl function.
I have read that this can be achieved using the --trace…

user1452414
- 11
- 2
1
vote
1 answer
VBS script not executing for particular user
I have a GPO in place that runs login / logoff scripts successfully for most users to update user descriptions to their computer names. This works for all users except for one, the error the user receives is
Line:14
Char:1
Error: Access is…
user262447
1
vote
1 answer
Set TMG Report Server via a script
I'm using VBScript to configure TMG on a server load. There appears to be no way to set the Report Server via scripting. I've looked at the FPCRoot object and FPCReports object with no clear way to set this property.
Manual Steps / TechNet…

JSuar
- 121
- 6
1
vote
8 answers
how to visit every computer on the network and modify the hosts file in windows xp
We need to append a line to the hosts file for every user on our network. I have admin privileges, but don't know the first thing about windows scripting. Can someone point me in the right direction on this? I don't have the list of all the machine…

user20192
- 113
- 1
- 3
1
vote
3 answers
App-V 5; change file after package install
I work as a student for a company that sells a proprietary software solution.
My task is testing their appliation in APP-V.
The client should have the availability to modify a parameter, and this should be changed in the VFS after the package is…

Niels
- 11
- 3
1
vote
1 answer
Querying SCCM Server to get ADD/Remove Programs list of a specific computer
First of all, i'm sorry for my english.
I'm new in vbs scripting and wmi queries and I need your help.
My goal is to get the Add/Remove Programs list of a specific computer.
I saw many scripts which query the Uninstall registry key on the target…

HoRuSHigh
- 11
- 3
1
vote
1 answer
Using VBscript and EnumNetworkDrives, how can I instruct our login script to NOT delete a drive letter mapping and remove the rest upon each login?
I've been working on adding some new parts to an already existing login script using VBscript. I'd like to use the below code to erase all drive mappings on login.
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set clDrives =…

Windows Ninja
- 2,586
- 19
- 46
- 70