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.

learn more… | top users | synonyms (1)

0
votes
0answers
20 views

Microsoft VBScript Runtime error: Permission denied code 800A0046

I am testing a VBScript and it was working fine earlier. Wanted to try with a different file input, but all of a sudden I'm getting Microsoft VBScript Runtime error: Permission denied code 800A0046. ...
0
votes
1answer
30 views

psexec cannot run .vbs local or unc

I am trying to run a .vbscript remotely via psexec. Even with switches like -u -p -s -c, I am getting errors. Here is what I've tried: 1.) psexec -u user@domain -p password -s \\computer ...
0
votes
0answers
29 views

Finding list of fonts for each PC

I am trying to find the best way to find a list of clearview fonts on each PC on our domain. Questions: 1.) Should I use SCCM & how? I've create a Query but I am getting nothing right now. I was ...
1
vote
1answer
16 views

SCCM+ MS Office 2013 deployment

This is a 2 part question. Issue: I've created a script that executes the following scripts (in order) Officescrub10.vbs(created by microsoft), LyncRemove2010.vbs(i created), and ...
0
votes
0answers
93 views

vbscript to start/stop service running as LocalSystem , remotely

Im trying to create a vbscript to start/stop service on windows hosts remotely. The service is running as LocalSysten account. And I get the below error: while stopping/starting it? How can I achieve ...
0
votes
0answers
23 views

How to install Windows Mobile Device centre with License accepted in Silent mode

I have installed Windows Mobile Device centre with following code silently. driver_setup.exe /quiet /i drvupdate-amd64.msi After installation completes, i tried in launching the Windows Mobile ...
0
votes
1answer
21 views

Inventory VBScript doesn't load processor or RAM attributes

I've been working on a VBscript inspired by these posts: http://deployhappiness.com/series/creating-an-inventory-with-active-directory/ and I've found a decent amount of success in my test machines ...
1
vote
1answer
150 views

Run Bat file in Administrator Mode in Windows Server 2008

runas.exe /profile /user:administrator "C:\temp\SQLSP3.bat" will run the SQLSP3.bat file in Administrative Prompt and it is asking Adminstrator password in Windows Server 2008. SQLSP3.bat file has ...
0
votes
1answer
15 views

VBScript permission denied moving a folder

Help please. this is driving me nuts. Running a CMD prompt (As Administrator) on a Win2K3 AD server I have a source folder on a local disk (C:\test) I have a dest folder on a network share ...
1
vote
0answers
31 views

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?
0
votes
0answers
41 views

Run vbscript on server as scheduled task

I've written two scripts in vbs, one iterates through a bunch (+10000) of folders on our server and creates a shortcut in a specific folder to any folder that has a specific name. ('ax' followed by ...
1
vote
0answers
28 views

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 ...
0
votes
1answer
42 views

set login script flag for vbs 'All Users' script so it doesn't run again

We have a vbs All Users script that creates a bunch of printers (approximately 25 printers) when a user logs on. It takes a minute or two to run so we don't want it to run again if not necessary. How ...
0
votes
1answer
60 views

VBScript- Input DisplayName Output AD Username

If I had a txt file with a bunch of names: Dan Smith Jim Bob Ryan Jones etc,etc using a VBscript could I convert the displaynames to AD Usernames? If Powershell is only options, could you please ...
0
votes
1answer
112 views

Windows Registry to VBS

I have this registery (.reg) file that I use to modify screensaver properties: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Control Panel\Desktop] "ScreenSaveActive"="1" ...
0
votes
1answer
305 views

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 ...
5
votes
2answers
710 views

How to query the task manager

I know the tasklist command in Windows will give a list of task names and their PID. There is another command WMIC path win32_process get Commandline which does give more detailed information, but its ...
1
vote
3answers
366 views

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 ...
1
vote
2answers
204 views

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 ...
0
votes
0answers
161 views

Executing VBS via Task Scheduler not working. It works if logon to server and launch

I am having a problem running a scheduled task using Task Scheduler. I have setup a new domain user with admin privileges on the server (Windows Server 2008): User1. The Task Scheduler runs a VBS ...
0
votes
0answers
156 views

Can UploadReadAheadSize be set on a physical directory?

In support of a large-file upload page, I have been asked to adjust UploadReadAheadSize...on the physical directory that contains the page. I can read and set UploadReadAheadSize on a site, a site ...
1
vote
1answer
85 views

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 ...
1
vote
1answer
636 views

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 ...
1
vote
1answer
57 views

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 ...
0
votes
1answer
368 views

Scheduled Task fails to stop

I have a Scheduled Task on a Windows (64-bit) 2008 R12 (SP1) server. It’s a housekeeping task and I was expecting its first run to take some time catching up on backlog of actions , so set what I ...
0
votes
1answer
387 views

Script to set default printer for specific user

We have multiple printers installed for our labs. We have a special testing account in AD that can't print to the room the tests are being taken in to protect personal information. I need a logon ...
-4
votes
2answers
263 views

“Wscript.echo” in place of Report.txt in VBS? [closed]

This script gets remote user's membership info and saves a report.txt as a result. Can this code be changed with wscript.echo in place of Report.txt. I tried to change it but i couldnt :( Thank you ...
1
vote
3answers
349 views

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 ...
0
votes
1answer
206 views

VBscript - returning the path & size of a file

I would like to add a piece of code to SYDI that would return me the location & size of a specific file. For example, a server "X" has a DB file(s) & path like this: ...
3
votes
1answer
1k views

How can I get an OID for a certificate template?

I'm using C# (or VBScript) to issue a certificate from an Enterprise CA. According to this answer, I need to specify the OID instead of the certificate name, and place it in an unexpected portion of ...
1
vote
1answer
917 views

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 ...
1
vote
1answer
319 views

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 = ...
0
votes
1answer
4k views

VBS script to check the service and its status

I have to check the service in windows machines and if the service does not exists or is in stopped state then the machine should prompt a message and automatically restart after a certain period of ...
0
votes
1answer
703 views

VBS Scripting - Access LDAP User object with samAccountName

I am trying to write a VBScript that meets 2 requirements: It unlocks a user's account. It can do so and reference the user using the samAccountName. #1 works. However, the below script I have ...
0
votes
1answer
2k views

Alternative to WMI for querying shared printers

I have an environment with several hundred computers. I am trying to write vBscript that runs and adds the appropriate printer. The printer names can be determined using clues about the computer ...
2
votes
1answer
353 views

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 ...
1
vote
1answer
331 views

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 ...
0
votes
0answers
336 views

Scripting for bulk NTFS permission xcacls.vbs vs PowerShell

I have a batch file with about 1000 lines using xcacls.vbs for customizing NTFS permissions for complex folder structure (removes of grants, removes of inheritance, then grants plus some explicit ...
0
votes
1answer
564 views

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 ...
5
votes
1answer
412 views

Windows Task Scheduler cannot access EFS encrypted folder despite running as a user with access

I have a batch file set to run via Task Scheduler in Windows Server 2008 R2. The batch file is being used to rotate and compress MySQL logs, and the folder containing these logs is encrypted using ...
0
votes
1answer
563 views

Disable “Windows Firewall with Advanced Security” for all profiles(Domain,Public,Standard) in local GP using script help! Windows 7 Clients

We need Windows7 with windows firewall to be turned off , so the GOLD image has windows firewall turned off for all profiles(Domain,Public,Standard) and Windows Service disabled No the same GOLD ...
1
vote
3answers
11k views

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 ...
1
vote
1answer
497 views

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 ...
0
votes
1answer
2k views

Silently uninstall using msiexec without closing explorer.exe

I am trying to use the msi uninstaller to uninstall inventor 2011 but doing it silently causes explorer to close and not restart. I have a VB script from Autodesk that will work however it is not ...
2
votes
2answers
103 views

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 ...
1
vote
2answers
7k views

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" ...
0
votes
1answer
1k views

How to prevent schtasks on Windows 7 from showing the command prompt after executing a task?

I am trying to get a scheduled task on Windows 7 to execute once a minute, using schtasks and a batch file. My .bat batch file is: @ECHO OFF wscript "c:\http.vbs" The .vbs script si a simple one, ...
2
votes
3answers
2k views

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 ? ...
1
vote
1answer
1k views

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 ...
0
votes
1answer
906 views

VB script + run CMD and display network address by using SendKeys

I use the following VB script ( example ) , to open CMD window and run ipconfig on my WIN XP CMD window was opened but from some reason WshShell.SendKeys not send the ipconfig on CMD window please ...