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
2answers
107 views

vbs to detect usb drive and run some commands [closed]

I have two scripts. Both are within the same folder on the hard disk. The "vbs" call "bat" to detect usb to run some commands. I want to incorporate the function of selecting the usb to vbs. Thanks ...
0
votes
0answers
15 views

Script Not working. Need it to work on default route adapter to change the subnet mask only

Need a script that can be run on Windows 7 machines. Script would need to get the default route LAN adapter settings. Set the IP and Gateway to whatever they were set to and change the subnet mask ...
-2
votes
1answer
27 views

RUN exe file with a script on Windows 7 32bit [closed]

I want to run google chrome on windows 7 32bit with following target path "C:\Program Files\Google\Chrome\Application\chrome.exe --kiosk-printing" When I enter this path to Target Path field in ...
0
votes
0answers
20 views

WMI permission issues with specific users (processes)

I am using a VB script to determine whether or not a specific process is running on a remote server. This allows me to inform the user to close this application before backup is running. (Old system, ...
0
votes
1answer
697 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 ...
0
votes
0answers
18 views

Retrieve VM information from VCloud

In a development shop, we have a large number of VMs with complete installations of our applications, with client, server and database VMs in a single vApp. The people who create the VMs do not keep a ...
1
vote
2answers
8k views

Windows Group Policy - Can I alter with VBscript?

First of all I'm not an expert in either Windows or Group Policy scripting but one of my tasks is to configure XP machines which are destined to be NOT network. Consequently I've used VBScript to ...
3
votes
2answers
2k views

Get User Rights Assignment values in Local Computer Setting using VBScript and WMI

I'd like to get all the values of User Rights Assignment in Local Computer Setting using VBScript and WMI. Is there a way I can do this with VBScript and WMI? Thanks.
0
votes
0answers
30 views

Remoteapp - change password through vbs script notfication

My troubles never end. After getting my RDS farm working, we've ran into a big issue. Users cannot change their expired passwords. Why? Because MS thought that disabling that when connecting over a ...
0
votes
3answers
123 views

How to get all the logon time of a particular user account

I know to use event viewer to check who logged into the system and when. But I am trying to figure out for a particular local user account, say administrator - what all are the login date and time for ...
0
votes
1answer
2k views

VBScript:Verifying if printer share exists

Is there a way to determine in VBScript, if a print share is in existence on a print server? The idea is to remove the connection to that printer in the event the share is removed from the server. A ...
1
vote
1answer
50 views

VBScript: Get logged on windows user instead of executing one

I need to perform a small inventory in our network. So I wrote a VBScript which I wanted to deploy with our deployment system. My problem now is: The script is executed in the context of the AD system ...
3
votes
2answers
2k 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 ...
0
votes
1answer
43 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 ...
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
0answers
177 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. ...
7
votes
4answers
63k views

Retrieve user details from Active Directory using SID

How can I find a user in my AD when I have his/her SID. I don't want to rely on other attributes, since I am trying to detect changes to these. Example: I get a message about a change to user record ...
0
votes
1answer
102 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 "\\...
1
vote
1answer
29 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 Office2013Install....
0
votes
0answers
230 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 ...
1
vote
1answer
267 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
0answers
51 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
30 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 ...
0
votes
1answer
42 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 (\\device\...
1
vote
0answers
38 views
0
votes
0answers
58 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 ...
0
votes
1answer
3k views

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 /...
1
vote
0answers
85 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
3answers
1k views

script to change drive mapping

I plan on retiring an old file server. I noticed some of my users have mapped about 10-15 "Mapped Network Drive" to this server. Is there a script I can use to change the server name in the mappings?.....
1
vote
3answers
13k 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 ...
0
votes
1answer
62 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 ...
4
votes
1answer
4k views

How do I package this vbscript as a msi for Group Policy

I had a developer that is no longer with us create an msi to do this for me, but the package is outdated now and we need to deploy new files. Basically I need to do the following: Take the code at ...
0
votes
1answer
91 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 ...
1
vote
2answers
22k views

VBScript wont run for domain user on Windows Server 2008 R2

I've got a script that runs just fine under the administrator user. But when a domain user executes the script, we get this error message. CScript Error: Loading your settings failed. (Access is ...
0
votes
1answer
254 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" "...
6
votes
2answers
22k views

How can I edit local security policy from a batch file?

I am trying to write a utility as a batch file that, among other things, adds a user to the "Deny logon locally" local security policy. This batch file will be used on hundreds of independent ...
1
vote
3answers
425 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 ...
1
vote
3answers
713 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
2k views

WMI script to list of memberships of current computer?

I have a AD hosted on 2003R2 and 2008R2, I would like to check the membership for the domain computer (e.g. compA) when an user logs on using that computer (e.g. compA) and perform certain operations ...
5
votes
2answers
1k 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 ...
0
votes
2answers
1k views

how can I hide the cmd window when running a VBScript scheduled task on Win 2003 R2 SP2 x64?

I am running a VBScript (.vbs) file via Windows Scheduled Task. On a Windows XP SP3 x86 machine, a command window is not shown when the task executes. On a Windows Server 2003 R2 SP2 x64 machine, a ...
5
votes
1answer
455 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 ...
1
vote
2answers
271 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 ...
1
vote
1answer
125 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
954 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
59 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
476 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 ...
1
vote
3answers
39k views

Script to list current user's mapped network drives

I have a Windows XP/ Server 2003 environment here users have mapped different network drives themselves using arbitrary drive letters. Some of these users do not know how to tell the true UNC path of ...
0
votes
1answer
478 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
353 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 ...