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
1answer
518 views

Discover network drives users have manually mapped via remote script

I am trying to write a script that will pull computer names from a text file, then query the remote registrys for any subkeys under hkey_users\SID\network. Then translate the SIDs into the username ...
0
votes
1answer
787 views

2 VB Scripts one to remove Default Gateway and one to add a Default Gateway

I have a client with a bunch of children using about 30 machines on a regular basis. All machines that the children user are set with Static IP Addresses. The machines that the kids use, I would ...
0
votes
1answer
643 views

Setting inheritance on folder structure with iCACLS

New to this forum. I am trying to finish up a script that creates a folder structure and assigns permissions via icacls. I have the script working correctly except for one thing. When setting ...
0
votes
1answer
12k 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 ...
1
vote
2answers
144 views

Reboot Exchange Server with One time use account or script

Not sure if this is the best way to achieve this but here is the background and the goal. BACKGROUND We are a small business. Sometimes myself or the other person who is capable of dealing with an ...
1
vote
2answers
762 views

Getting Win32_Service security descriptor using VBScript

I am using VbScript for retrieving the securitydescriptor of a Win32_Service. I am using the following code: SE_DACL_PRESENT = &h4 ACCESS_ALLOWED_ACE_TYPE = &h0 ACCESS_DENIED_ACE_TYPE = ...
4
votes
1answer
3k 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 ...
-1
votes
2answers
122 views

creating and modifying .exe file? [closed]

How to create an .exe file and how can I modify exsisting .exe file?
0
votes
1answer
351 views

Programmatically assigning an existing ssl cert to a website in iis6 via powershell or vbscript

I have the following powershell script that creates a new website in IIS6: https://github.com/dagda1/iis6/blob/master/create-site.ps1 Does anyone know how I can assign an existing ssl cert to the ...
0
votes
2answers
1k views

admin right to IIS7 for user using group policy or script?

I want to provide administrator rights to user account under windows 7 just for IIS7 and user shouldn't be able to manage any other application. I have create group policy rules using applocker for ...
1
vote
2answers
3k views

What might cause https failure when not specifying SSL protocol?

I have a VBScript program that retrieves a web page from a server not under my control. The URL looks something like https://someserver.xxx/index.html. I use this code to create the object that does ...
0
votes
4answers
550 views

Writing all running services to a .csv file with WS2003

I want to list all the current running services and output it to a .csv file. Does anyone know how to do this?
1
vote
2answers
19k views

running vbscript with psexec?

Is it possible to run a vbscript remotely with psexec? Normally the field of psexec calls for an exe file, so can this be changed or manipulated to deal with a vbs file?
0
votes
1answer
983 views

Is there a way to enumerate Public Folder permissions on Exchange 2003?

My organisation is about to start the process of migrating from Exchange 2003 to 2010. However we have a large number of public folders and in order to maintain functionality for users need to somehow ...
1
vote
2answers
3k views

How to Create a Network Share using vbscript

I want to create a network share using vbScript. Is there a way of doing this other than executing a "net share" command? e.g. Set shell = CreateObject("WScript.Shell") shell.Run "net share sc1=" ...
0
votes
2answers
193 views

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

How to query SCCM for all collections that a user is a member of?

We will shortly be moving all our user accounts to a new domain, as part of this the user accounts will pick up new SMS ResourceIDs in SCCM. What I need to do is to query SCCM for all collections ...
0
votes
1answer
261 views

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

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

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

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

Windows 7 logon scripts — set default printer

I have been tasked with troubleshooting a logon script at a client site that among other things sets the default printer. The logon script is vbscript with the printer being set using Set ...
1
vote
2answers
383 views

Script to check hostname and move to appropriate OU

Is it possible to create a "universal" script that checks the first three alphabets of a hostname and moves the host into the appropriate OU? E.g. A hostname that begins with TKYxxxxx is a host in ...
0
votes
1answer
3k views

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

Adding lines to text files through Group Policy

I need to add two lines to text files using group policy. I cannot replace the files with the updated one since the content of the files differs from one machine to another, but all of them have to be ...
2
votes
2answers
339 views

printer assignments for windows xp workstations within an active directory environment

I'm using the following script to handle removing any old networked printers from machines and then assigning the propper ones and making one of them the default. This script is assigned to the OU ...
1
vote
1answer
805 views

Enumerating and mapping network drives (Windows 7 Pro/Windows Server 2003)

I had a working script for Windows XP clients, distributed via group policy from Windows Server 2003 PDC. This is the main part of the script: Function ggMapNetworkDrive(fDriveLetter, fShareName, ...
2
votes
1answer
3k views

Remote installing an msi on citrix servers using WMI

OK, I'm a C# programmer that is trying to streamline the deployment of a custom windows form app I inherited and built an installer for with WiX (this app will need to be reinstalled regularly as I'm ...
1
vote
2answers
9k views

Task Scheduler not able to execute .vbs scripts successfully

Apologies if this has a really obvious answer! We have several daily tasks we run via a .vbs script on our server (through the Task Scheduler), and for months it has been fine, but recently we've hit ...
1
vote
1answer
545 views

Script for run script on vbs

Hello everybody I have a script on vbscript Dim WSHShell, WinDir, Value, wshProcEnv, fso, Spath Set WSHShell = CreateObject("WScript.Shell") Dim objFSO, objFileCopy Dim strFilePath, strDestination ...
1
vote
2answers
5k views

to get the list of hostname, IP address, subnet mask

want to write a Vb Script to get the full information on all the host name, and ip address and sub net mask of computer that has been added to the domain control.
3
votes
2answers
12k 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
1answer
1k views

.VBS scripts have stopped running… No idea why!

We have two .vbs scripts that are run by our Task Scheduler that have suddenly stopped working for no reason we can fathom. We haven't significantly altered our system configuration in the last 24 ...
4
votes
3answers
22k 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
2k 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 ...
3
votes
5answers
7k views

Get user profile size in vbscript

I am trying to get the size of a user's local profile using VBScript. I know the directory of the profile (typically "C:\Users\blah"). The following code does not work for most profiles (Permission ...
0
votes
2answers
2k views

Change/Force CMD properties like Window size & Screen Buffer size via GPO, or other ways

Is it possible to control CMD properties like Window size & Screen Buffer size via GPO? (or a VBS script that can be pushed using GPO :) I have Windows 7 / Windows Server 2008. Many thanks for ...
0
votes
1answer
907 views

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

How do I get a list of websites from iis showing the host header value, description and home folder location?

I am using iis win2k3. How do I go about extracting an adhoc list of websites, displaying the host header value, description and web folder location? The export list only shows the header and ...
6
votes
5answers
3k views

Script to kill process at logoff doesn't execute until process is dead?

We have a program that, due to memory leaks in some of the screens, doesn't exit cleanly when the user quits. The problem is that this blocks the normal logoff procedure - you select logout and a few ...
3
votes
3answers
16k views

Windows Server 2008 R2 VBScript script engine missing

On Win2008R2 x64 I get Input Error: There is no script engine for file extension ".vbs". when starting a .vbs file.
5
votes
5answers
38k views

Why won't my logon scripts map drives under Windows 7?

Why won't my logon scripts map drives under Windows 7? I'm using a vb script similar to the one below, the script runs using a group policy. Dim WshNetwork Set WshNetwork = ...
1
vote
6answers
268 views

Standardising on a single Windows Scripting Language

I wasn't quite sure whether this would be better on StackOverflow or not, feel free to move it if you think it's more appropriate there. Anyway on to the question... The Situation We currently ...
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 ...
0
votes
2answers
1k views

cmd files to hta

I have a lot of cmd files i use daily for example to add users to local groups, installing printers, run as admin tasks etc. I like to take the scripts i use most frequently and add them to a tabbed ...
1
vote
3answers
31k 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
2answers
821 views

Check for the presence of a printer connection (unreliable printer mappings)

I have a lab area with about 75 XP boxes in it. At logon, we map two served printers with the AddWindowsPrinterConnection method in a VBS. 5-10% of the time, the users find that the printers have ...
2
votes
1answer
2k views

Registry read permissions (scripting) on Windows Server 2003

Executing the following VBScript on our Windows Server 2003 Set p_shell = CreateObject("WScript.Shell") p_shell.RegRead("HKEY_USERS\S-1-5-19\") yields the following error C:\Documents and ...
1
vote
5answers
3k views

WS2008 subst in Logon script does not “stick”

I have a terminal server environment exclusively with Windows Server 2008. My problem is that I need to "map" a drive letter to each users Temp folder. This is due to a legacy app that requries a ...
1
vote
1answer
343 views

Connect certain file to automatically launch through a VBS/ WScript

On Windows Vista, I would like to open all files of a certain extension with a little VBS file (which will then pass on the parameter to a Chrome Application Shortcut app, which is actually what I ...