0
votes
1answer
47 views

Is update.vbe a malicious code?

I found the task "update.vbe" running in my task scheduler, when I checked it's located in "C:\Users\????\AppData\Roaming\origin" and is set to run on logon/ I did some digging and googling around, ...
0
votes
1answer
31 views

Windows 7 - Collect Wireless Signal Strength via Command Line

I'd like to see the wireless signal strength (preferably, via dbm or %) in Windows 7 via command line. Here's what I've tried: 1) VBscript using MSNdis_80211_ReceivedSignalStrength (but only works ...
1
vote
3answers
37 views

Windows file's default action to open with a vbs script?

Don't laugh. I'm in a corporate environment with a locked down desktop. Installing third party apps is not an option. Notepad is mostly okay, the biggest pain though is that it doesn't detect if ...
1
vote
2answers
85 views

Batch command for Searching & Replacing Text in a Text containing non-TXT file

I am working with iMacro JavaScript .js files which are simple unencrypted lines of code-like text. The file contains the following code: var i; for (i = 1; i <= 10; i++) { iimSet("loop", i); ...
-5
votes
1answer
127 views

No error when the vbs code is run on remote computer [closed]

I hoped this vbs code would execute the oShell.run methods on the remote machine. This doesn't seem to be the case but there is no error shown when this script executes. on error resume next dim ...
6
votes
3answers
3k views

Delete all Files from Folder and Sub Folders

I'm wanting to remove all files from a folder structure so I'm left with an empty folder structure. Can this be achieved in either Batch or VBS scripting? I have tried a very basic batch command but ...
0
votes
1answer
73 views

WMI Query based on antecedent string

I am trying to map PHYSICAL Disks to mounted partitions and even further into mounted volume letters (C:\ is mounted on partition 0 of disk 0) First I'm using Select * from Win32_DiskDrive to ...
0
votes
1answer
25 views

Good vb script policy

I have been seeing a lot of cases of the H worm on USB sticks in the past few months. It seems by default a vbs script will run on any computer even if it comes from an outside source (like a USB ...
0
votes
1answer
119 views

Run script using group policy

I want to show an alert box to all users in the domain at regular intervals (example: show a message box on every 1 hour). How can i possible this using GPO. Already i know how to show log on script ...
2
votes
2answers
400 views

How do I associate a file type with a VBScript

This question is a natural follow up to How to run a batch file without launching a "command window"? One can associate for example .txt files with Wordpad by opening the Properties dialog ...
0
votes
2answers
130 views

Windows does not recognize the VB shell

I work on a Windows 2003 server. When I create a VB script on it like test.vbs, I don’t get the typical VB icon. In place of that I get a different icon. Also, when I run the test.vbs, Windows ...
0
votes
1answer
98 views

Launch VBS script from Run box without specifying “.vbs” extension

I would like to launch a VBS script from the Run box without specifying its file extension. One of these scripts is called "home", located at C:\Program Files\lin2nt\home.vbs In cmd, I can simply ...
0
votes
0answers
75 views

Mail gets sent on remote login to a machine only by a particular user by all user

I have written a VBScript that sends mail when a user logs in to a machine: Set objMessage = CreateObject("CDO.Message") objMessage.Subject = "Example CDO Message" objMessage.From = ...
2
votes
1answer
333 views

Where in registry is Windows user expiration date or days left?

I have a few scripts that set and get user expiration using VBS... however, I am wondering where this information is stored. Is it in the registry? If so, what key should I be looking for? My VBS ...
0
votes
0answers
218 views

Check if Num Lock is on in VBScript without Word application

I'm using the following vbs to enable Num Lock. However, this also disabled Num Lock if it were enabled previously. How can I check if Num Lock is enabled before calling SendKeys? Thanks! set ...
0
votes
1answer
156 views

VBScript Carriage Returns

I write the following VB script in order to run commands from WIN XP on Linux machine and redirect the output command to out.txt file ( under C:\ ) My VB script I print the /etc/hosts file from Linux ...
1
vote
4answers
8k views

Script - How to check if a network path is available and then map it

I would like an screen saver / logon script that checks if a network path is available and then map it to a unit. If it is not available it disconnects/don't connect. Network path is ...
-1
votes
1answer
399 views

.vbs won't execute anything at all

I created short script to run .bat file on background but when i execute .vbs file, it seems like it is not reading my script at all. .Dos windows pops up and shutdown right away but my batch file is ...
0
votes
0answers
296 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
2answers
1k views

Problems with runas and system account

I have a process that is running under the local system account on a Windows XP machine. This process then attempts to open a file with its default application as another user (say Max) on the system. ...
0
votes
1answer
352 views

Delete partial matching lines from text file

I have 1 large xml file with lines like - <text file name 5 HD text> <text file name 2 text> <text file name 3 text> <text file name HD 2 text> <text file name 5 text> ...
2
votes
1answer
627 views

Scripting Bitlocker Decryption of a local hard-drive

In summary: I'm attempting to create a script that unlocks (decrypts) a hard-drive on the Windows 7 Ultimate local machine, then execute a couple of programs afterwards. I have a small SSD that ...
1
vote
1answer
147 views

What is the most robust way to parse domain and username from a user string in vbscript

The user can input a string, so basically 4 options: username .\username localcomputername\username remotedomain.com\username What is the most robust way to return the domain and username given ...
4
votes
1answer
3k views

Silent Java update check

How to have automatic Java updates without jusched.exe process running all the time in the background and with control when a check for the update should occur?
0
votes
2answers
3k views

VBScript check if key combo pressed

How can I make a script that waits in a while loop for a specific keyboard combination before doing something? I want to run the script and then have it wait for ALT+CTRL+Q and then execute the rest ...
1
vote
0answers
166 views

VBScript how to detect hardware plugged in?

I tried searching but I can't seem to be find anything besides USB detection. I want to make a script that detects when the speaker and microphone ports has a device plugged in. Is this possible to ...
1
vote
3answers
320 views

Dump HTML from script

Is there a way to create a script to download the HTML source to a text for html file locally? For example, if I wanted to archive the HTML of Google.com each day. I'm up for batch, VBS or PS1 but ...
1
vote
1answer
189 views

How do I detect if uTorrent is downloading?

I need to write a script that determines whether or not uTorrent is currently downloading something. I'd rather it just be downloading, but if I cannot differentiate between downloading and uploading ...
0
votes
1answer
468 views

Adding everyone to local group using vbscript

What would be an alternative in vbscript to NET LOCALGROUP /ADD "Power Users" Everyone I know how to add a single group or user but Everyone isn't found.
3
votes
1answer
1k views

Windows analog of $1 (PID of the last started process)

How to get on Windows PID of the last started process using WScript.Shell or similar? I know how to start a process and get its PID: Set oExec = WshShell.Exec( program ) Set pid = oExec.ProcessID ...
2
votes
0answers
1k views

Force 64bit WScript to run .vbs

I'm trying to run a .vbs script under 64Bit. When I run this script manually it will execute properly, but when launched by something else, it will run under 32bit and won't execute properly. Here's ...
0
votes
2answers
1k views

Search for text in web pages given a list of URLs

I have a list of several thousand URLs, and I'd like to search each of these pages for a given word. How can I do this programmatically on Windows, preferably using VBScript or Powershell?
2
votes
1answer
830 views

How can I give a VBS script access to run without opening a security hole in IE?

I'm currently working on an application that basically sits on top of IE. This program is used on Windows XP and Windows 7 laptops in police cars. The program has a number of VB scripts that run, ...
0
votes
1answer
424 views

Run VBScript from cmd and send input to dialog

I want to launch a VBScript from a windows xp command promt enter a value to the first box that pops up from the vbsscript. What I have tried (Want to enter value 2 to the script): START CScript ...
3
votes
3answers
4k views

Dismount a usb volume form command-line

How do I unmount a volume (USB flash drive) via command-line or Visual Basic script?
2
votes
2answers
3k views

Windows Script Host Error Dialog Popups in the morning

A few days ago when I resume my computer from sleep mode in the mornings I would see an error dialog from "Windows Script Host" that read: "There is no script engine for file extension ".vbs". I am ...
0
votes
1answer
251 views

Active Directory VBS Script for Auditing a Presentation

Can anyone help me with this VBS script? Thanks in advance. User logs in to a XP computer and a PowerPoint presentations or web page starts They read through the presentation and then click a links ...