Questions tagged [vbscript]

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.

217 questions
0
votes
2 answers

Headless server has stuck "del" key, making it unmanageable. How can I disable keyboard via VBS?

I have a headless Windows 2008 R2 box that seems to have a keyboard plugged in and something is pressing on the delete key. I'm using GotoMypc to access the box and am unable to click on device manager, or use the command line (backspace is quite…
makerofthings7
  • 8,911
  • 34
  • 121
  • 197
0
votes
1 answer

VBScript Array Help for Select Statement

I'm using a select statement to show all services on a system currently set to Auto (automatic). The trouble is the list of service I do not want to see is growing. While still not larger than the list of services I do not want to see. I'm hoping…
Aaron Wurthmann
  • 283
  • 3
  • 8
0
votes
1 answer

Script to copy file from server and install software

Here is what I want to do - I would like to install a software on every PC in my domain. I would like it fully automated. I am sure this can be done either using a batch file or a vbscript. Here is what I would like to do: Check if file exists on…
molecule
  • 83
  • 1
  • 4
  • 12
0
votes
1 answer

Remove OCS user programatically

I am looking for programatically removing user accounts from OCS 2007 R2. I would prefer vbscript solution as this will become part of larger deprovisioning script used for removing various user related stuff across applications.
KAPes
  • 994
  • 4
  • 12
0
votes
1 answer

Fault with my VB script

Im adding a logon script to a GPO to install a program for me. Can anyone see a problem with this script? When the PC boots it comes up saying that it can find the resource? Const EVENT_SUCCESS = 0 On Error Resume Next strPlugin =…
user50966
0
votes
1 answer

How can you enable forms scripting for outlook 2010 on Citrix servers?

I'd like to deploy Office 2010 on Citrix servers, but i can't enable form scripting support. With outlook 2007, it was solved by adding Outlvbs.dll in the office directory, and running msiexec /i {} ADDLOCAL=OutlookVBScript /qb But…
Florent Courtay
  • 646
  • 7
  • 16
0
votes
1 answer

Script to wrap around an application and wait for app to finish

I need a vb script that will wrap around an applcation which will stay open until the application finishes. I want to be able to call the following command "setup.exe /qb /I Autocad2010.ini /language en-us" But I need the vb script to stay running…
JohnyV
  • 938
  • 4
  • 26
  • 45
0
votes
0 answers

How to assign filtered column data to a variable using Set in VBA excel?

I am newbie to VBA excel. I am trying to use Set to assign some data from a filtered column (through AutoFilter) to a variable (X in this case). Below shows the code and image of the table. Sub Test() Dim X As Variant …
0
votes
0 answers

GPO VBS Script does not run at startup

I need to setup a GPO that execute a VBS script at Startup. I already create a script and test it without GPO and works perfectly, but when I do gpupdate /force and restart computer, nothing changes. Event viewer has no erros or warnings about Group…
0
votes
1 answer

How to programmatically query the default user's proxy auto-config URL setting?

Greetings. I have a requirement to retrieve the default user's Internet Explore Proxy Auto Config URL setting from Windows Server 2008. For the current user, the key is found at "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet…
MHGL
  • 380
  • 1
  • 8
0
votes
1 answer

How to select using script on Task Scheduler the "run with highest privileges"

Hi I'm doing some scripting to add a task on a Task Scheduler. However I need to have a script to select the "run with highest privileges". Sample code: Dim settings Set settings = taskDefinition.Settings settings.Enabled =…
0
votes
1 answer

How to connect to PostgreSql database in docker (linux) container from windows desktop via vbscript

I face the following error in trying to connect to PostgreSql database in (linux) docker container from windows desktop via vbscript: Microsoft OLE DB Provider for ODBC Drivers (30, 11) : FATAL: password authentication failed for user "dev" FATAL: …
M.Y.
  • 111
  • 1
0
votes
2 answers

Get list of Outlook Favorite Item via Powershell

Hy Guys, I Trying Get list of Outlook Favorite Item via Powershell, but i couldn't, I have created the script for Inbox and others, it's working, but having trouble with favorite item, can anyone help to do same for Favorite, really apricated if you…
Biren
  • 31
  • 2
  • 9
0
votes
0 answers

In Windows Server 2016 is there a way to run a scheduled task, via windows script, as an admin, using credentials incl. pwd?

Ok first, yes, I know this will be looked at as a security risk. The plan is to code this into an .exe; the pwd changes annually so there is very little hassle in changing the source code and re-compiling. And this will not be .Net where it can be…
jimo3
  • 101
  • 1
-1
votes
1 answer

VBScript MID function - Invalid procedure call or argument - Code 800A0005

I've created a VBScript that aims to change folder share names on a server. This is currently running as a logon script for my test users. I've defined this function: Private Function intChangeShareName() Dim intPoz1, intPoz2, intIndex Dim…
DSKyo
  • 153
  • 3
  • 6
  • 15
1 2 3
14
15