An interpreted scripting language developed by Microsoft that is modeled on Visual Basic

learn more… | top users | synonyms (1)

3
votes
0answers
58 views

Complex wmi queries using execquery

In powershell I can do a query like > get-wmiobject -query 'select * from win32_groupuser' | % {[wmi]$_.partcomponent|select domain,name,SID} Which will list for each wmi, the domain, name and ...
2
votes
0answers
17 views

Automate the deletion of all files in a directory from a list of Windows computers

I have hundreds of computers with space issues, and lately, I've just been PSExecing into each computer on this list, and performing a "del /s /q c:\DIRECTORY*" on each machine, which is just ...
2
votes
0answers
243 views

seach for a word in .txt files and write few line into new .txt file

Please help me to create a script to perform task as per described below. i have 2 files. A.txt and B.txt Content of A.txt as per below ITEM name TICKY title nice coffe drink type DRINK ITEM ...
2
votes
0answers
1k views

Pin a tile (App or shortcut) to a specified position on Startscreen (Windows 8 / Powershell)

The title is nearly the whole question. I am searching a solution to pin an installed app or desktop application to the windows 8 startscreen. I am in an enterprise environment and the purpose is to ...
2
votes
0answers
1k views

Extracting a zip file via VBScript running as a service

Details OS: Windows 7 UAC: Disabled What: I am running a VBScript that extracts a zip file, and the vbscript is kicked off by Jenkins service. I need to use the VBScript, and I can not use external ...
1
vote
0answers
29 views

Scheduled and recurring email in Outlook? Open Dialog Box error

I have done these instructions Scheduled and recurring email in Outlook? Now when I try to import a calendar for example in Outlook 2016 I get an error that says "a dialog box is open. close it ...
1
vote
0answers
44 views

Is there an easy way or script to let me email direct from Adobe Illustrator?

I do a lot of artwork and I really wish there was a way i could email direct from Illustrator. I have to manually save as PDF then go and find the file then right click it and do send to > mail ...
1
vote
0answers
2k views

How To Write To The Windows 7 Registry HKLM

I'm writing a vbscript that will write a registry value, to be precise the script should write the value of DisableRemovableDriveScanning value 0 to HKLM\Software\Microsoft\Microsoft Antimalwre\...
1
vote
0answers
242 views

hotkey script that copies all the text in my open notepad file to a clipboard and then closes the file

Please. I am new to VBS and may not be saying this right but I need a script with a keyboard shortcut that copies all the text in my open notepad file to the clipboard and then closes the notepad file....
1
vote
0answers
357 views

VBScript to detect VSS Exchange Writer State

I need to detect the state of the Exchange VSS Writer service on a given machine. The script will only be executed if Microsoft Exchange 2003, 2007, or 2010 is currently running. Powershell Script ...
1
vote
0answers
246 views

Shares created via WSHNetwork.MapNetworkDrive are not visible by administrator

I have a script that maps some network drives via WSHNetwork.MapNetworkDrive - but those drives are not visible by processes running as Administrator. Is there any solution to it? (maybe some flag?) ...
1
vote
0answers
634 views

How can I create a VPN connection via a startup script?

I am trying to deploy a VPN connection to all laptops on my Domain via the startup script. It has to be done at startup and not login as the connection has to be available to all users and they don't ...
0
votes
0answers
13 views

Update windows shortcup lnk

We got a shared folder sharedF where anyone can add file shortcut. Usually, people add the shortcut linked from a network folder sourceF. The problem is that users get sourceF connect to their ...
0
votes
0answers
11 views

Unable to Register Permanent Event - Strange Behaviour

I am trying to register a permanent event on a Windows 7 machine using a .MOF file and WMI. The first issue I am having is that when I run mofcomp myfile.mof in cmd the file can never be found (...
0
votes
0answers
17 views

Can I create a drop down menu for subject in outlook 2010?

Can I create a drop down menu for subject in outlook 2010 ? I have one that needs several clicks which defeats the purpose. I need the new email page subject line to be a drop down and want to define ...
0
votes
0answers
57 views

VBS for SQL 'Update' statement

Struggling a bit with what I assume is quite simple so wondering if you can point me in the right direction. I want to automate the following SQL command: Update Tablename SET COLUMN ='12/03/2016 ...
0
votes
0answers
74 views

Need help building a shutdown task

I'm running Windows 7 Pro and need help writing a vbscript/wscript that, upon the user trying to shut down the computer, will check a specific directory for .xml files. If files exist, it will run a ....
0
votes
0answers
94 views

Getting error : “ActiveX component can't create object: 'Scripting.FileSystemObject'”

I am getting below error when running vbscript using C:\Windows\SysWOW64\cscript.exe as below. C:\Users\abcd\Desktop>type a.vbs Set objFile = CreateObject("Scripting.FileSystemObject") C:\Users\...
0
votes
0answers
101 views

VBS SAP file “Save As” click “Save”

I'm trying to automate one report download from SAP. All is going well but on the end of download I receive "Save As" dialog window and can't save it while my PC is locked (not sleeping). I've tried ...
0
votes
0answers
75 views

Adding a network printer for all users on a single Windows 7 machine

Is there a simple way to make sure that anyone that logs into a single machine will have access to a network printer without going out to download the printer drivers from the print server? I've tried ...
0
votes
0answers
19 views

Printing in parallel with PDFCreator 1.3 saves different files with same content

I'm stuck on a problem with PDF Creator 1.3 I have more than a single printer installed (different names, same port) I need to print more documents in PDF at the same time through VBScript. When I do ...
0
votes
0answers
136 views

Microsoft ODBC for Oracle not working with Oracle 11.2.0.2

I have Oracle client installed and i am able to connect using sqlplus, i am also able to use My requirement is to try to use Microsoft ODBC for Oracle using the following VBSript code my .vbs file ...
0
votes
0answers
30 views

Setting Word Autorecovery Path RegKey Not Working VBScript

I would like to change the auto-save location of Word documents for our users to a local folder on their machines, allowing them to recover these themselves (They connect via Citrix). I added the ...
0
votes
0answers
103 views

Running a Windows 10 Store app via a background script and waiting until the app is closed

this is my first question on SuperUser, please don't mind any mistakes!.. OS: Windows 10 ent x64 let's say I want to run Groove Music app using a script ( be it batch , VBScript or Powershell ) , ...
0
votes
0answers
49 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 complets, i tried in launching the Windows Mobile ...
0
votes
0answers
66 views

Error with HTA reading pwdLastSet AD attribute

We have an AD domain that is at 2008 R2 levels. I have written a HTA which I use by right-clicking on a user from within AD Users & Computers and then selecting the HTA from the context menu that ...
0
votes
0answers
79 views

Get-AppxPackage in vbscript

I need to run a vbscript to be able to list all of the packages installed. I know this functionality exists in PowerShell is there a way to see app packages installed on a computer in vbscript?
0
votes
0answers
52 views

Create automatic search folders based on email in outlook

Is it possible to create a vbs script that you can run and then it looks through your inbox in outlook and creates a search folder for each unique email adresses? It would mean I don't have to go in ...
0
votes
0answers
189 views

Use IE proxy settings to send HTTP request using vbscript

I need to write vbscript to send HTTP request to remote server for a machine owned by organization. Initially, I tried with MSXML2.ServerXMLHTTP but looks like there is some proxy blocking requests ...
0
votes
0answers
221 views

Running vbs via wscript display error regarding file association

I'm trying to run a vbs script in order to get elevated privileges in Windows 7: wscript OEgetPrivileges.vbs The problem is I get this message: This file does not have a program associated with ...
0
votes
0answers
99 views

VBScript not running in commandline. Working fine in explorer

I'm trying to run a VBScript via a logon batch file. However when I run the .vbs file in a command window all I get is: C:\Users\Administrator>cscript \server\Netlogon\PinItems.vbs Microsoft (R) ...
0
votes
0answers
54 views

Translate .bat coomands to .vbs

I need to run this code but without the "black CMD window". Googeing I understood that VBS scripts are "invisible" on startup, so can someone please translate this code for .vbs file? @echo off set ...
0
votes
0answers
169 views

Running a Windows bat script within the same window in a vb script

I have a VB script that I launch from a Windows command prompt via cscript (so that the VB Script is running within that Window). I want that script to call a bat script so that the bat script runs as ...
0
votes
0answers
214 views

VBScript Won't run as scheduled task on Windows 7

Very basic proof of concept code below- which is giving me fits. It runs fine if you launch the script from explorer. It runs fine if you schedule it as a task and "run only when logged on." It ...
0
votes
0answers
737 views

Login Batch File Script Not Running VBS Files

I have a single login batch file for my users in group policy user login scripts. It is running when they login, but the vbs files I call from within the batch file do not appear to be. As a simple ...
0
votes
0answers
62 views

log file for RDP connections to send email?

I was wondering if someone could help expand on this code to have it not only log the RDP connections with the time and date and user but to add the mac address, the external IP, and if possible to ...
0
votes
0answers
157 views

Remove specific value from registry sub key

We need to delete a Security value from CD-ROM drive registry key. The main location is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE. From there it would depend on the make and model of the CD ...
0
votes
0answers
362 views

Auto close Command prompt

I'm trying to close the the command prompt in vbscript. Code Set oShell = CreateObject("WScript.Shell") Set oWmg = GetObject("winmgmts:") strWndprs = "select * from Win32_Process where name='cmd....
0
votes
0answers
389 views

Detect touch hardware using VBScript

I am looking for a way to detect installed touch hardware using VBScript. My script doesn't work. This script is intended to look for a pointing device and echo accordingly. On Error Resume ...
0
votes
0answers
83 views

How can I make Outlook auto redirect emails to email address in body of email?

I would like to redirect a message received from a specific email to another email address. The email address to which the message will be redirected to will never be the same. I have looked through ...
0
votes
0answers
62 views

(oldie not working on Win 8.0 x64?) Command prompt (.vbs) only solution to zip files and folders (batch .bat .cmd)

I worked with Can you zip a file from the command prompt using ONLY Windows' built-in capability to zip files? zip.vbs: Set objArgs = WScript.Arguments ZipFile = objArgs(0) ' Create empty ZIP ...
0
votes
0answers
176 views

Terminate/Kill a process before entering Standby

We have a MSAccess based solution that is running on customers computers and is lauchend through a VBScript-script. Due to the network enviroment here, we KNOW that in most of the cases the ...
0
votes
0answers
199 views

What VBScripts can be executed via remote text console (SSH or Telnet)?

I am testing via remote login (SSH) a simple VB script (thanks, Igor) from this thread ( Is it possible to download using the Windows command line? ) that just downloads a file to hard disk: cscript ...
0
votes
0answers
1k views

How safe/unsafe is this method of disabling the ridiculous “open file - security warning”

I created a vbs file and tried to run it and got the silly warning a bit like I see there are a few solutions to it. One is mentioned here In IE- tools..internet options..security tab..custom ...
0
votes
0answers
549 views

How to change Recycle Bin settings from the command prompt?

Is it possible to change Recycle Bin settings from the command prompt or using VBScript? Specifically, I want to: Select the "Don't move files to the Recycle Bin, Remove files immediately when ...
0
votes
0answers
307 views

How to program the outlook DLs using vbscript or some other language?

Is it possible to add / remove a user from a outlook Distribution List using a program? I am not referring to the DLs in the local contacts list but the global address book. I have the permission to ...
0
votes
0answers
336 views

CScript Terminates before completing task

I am using the below with mods but ziping several Gb of info the last command is Wscript.sleep 2000. I have extended this to 20,000 and 200,000 but I use the script vor various diferent sizes. Is ...
0
votes
0answers
250 views

Outlook 2003 pops up error dialog with “Script Error”, “Line 29”, “Position 129” and no useful info

So I sit at my computer working on something in a totally different program, and spontaneously a dialog box appears with the title "Script Error" and message text: Script Error Line 29 Position 129 ...
-1
votes
0answers
8 views

Macro in excel. Macro should start from where it left ( in case of force termination of macro execution)

I need to write a code which satisfies the below criteria, . Macro should start from where it left ( in case of force termination of macro execution), let the control read the value of status ...
-2
votes
0answers
65 views

Signing in gmail account from vbs file

I am trying to use this vbs file to sign in my gmail account from vbs: On Error Resume Next Const PAGE_LOADED = 4 Set objIE = CreateObject("InternetExplorer.Application") Call ...