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
3answers
2k views

VBScript gets opened in text editor instead of being executed

I'm part of a Windows Server 2008 domain. There's a login script (supposedly configured to execute on login via GPO) that sets permissions for network shares. However, instead of being executed, it's ...
3
votes
2answers
10k views

Can I change Internet Explorer security settings using a script?

Is it possible to change Internet Explorer security settings using a .bat or .vbs file? Basically, I need to change IE7 and IE8 security settings for the local intranet. The settings I want to ...
0
votes
1answer
4k views

How to list the top level folders of a drive using VBScript?

I'm looking for VBScript code that will list the top level folders of the D: drive and not the subfolders. I use the following WMI query so far but it gives me all folders and goes down to many ...
1
vote
1answer
236 views

Use vbscript to set local user's terminal services startup environment

If I was in AD, the parameters would look like: objUser.ConnectClientDrivesAtLogon = Enabled objUser.ConnectClientPrintersAtLogon = Enabled objUser.DefaultToMainPrinter = Enabled ...
3
votes
1answer
883 views

“Unknown scripting language VBScript” IIS 7.5 + 2008 R2 SP1

Migrated an old classic ASP application from Server 2008 R2 to a new Server 2008 R2 SP1 and having serious issues now. All set ups and configs are identical between the "old" and new servers, no code ...
0
votes
2answers
685 views

VBScript: Linking existing GPO to new OU

I am trying to link an existing to a new OU (that was just created), using the resources found here: http://support.microsoft.com/kb/248392 and here: ...
1
vote
1answer
842 views

Download large files via VBscript

Has anyone been successful with downloading large files via VBScript? My script is below and it is erroring out downloading a file over a 1GB. Small files it works with no problem. Do I need to try ...
0
votes
1answer
296 views

hamachi intranet connection

I have a intranet website shared on my local network which displays tables from a sql database. I want to expand this to certain people who are not on my local network. Is it to use Hamachi to enable ...
0
votes
1answer
140 views

IIS 7 and dynamic 404 error

I have set a 404.asp page on my iis 7 yesterday and on this page beside some chacking i had at the end if anything was false i had: response.status "404 Not Found" response.AddHeader "location", ...
3
votes
3answers
316 views

Sync OUs within Active Directory

I'm setting up two OUs in Active Directory to support a software package we're getting ready to roll out. One OU is for production, the other for training/sandbox. It is required that these be ...
2
votes
1answer
685 views

Converting WMI from vbscript to powershell

I'm trying to follow the guides for accessing IIS 6 using WMI but I'm having trouble working out how to translate the Get method of SWbemServices as Get-WmiObject doesn't seem to use the same path ...
1
vote
1answer
2k views

How to uninstall Windows Script Host and install WSH 5.7

What I'm trying to achieve is to simply reinstall Windows Script Host. However I can't uninstall WSH and when I try to run the Windows Script Host 5.7 installer I get an error of; Setup has ...
1
vote
3answers
1k views

PC won't run VB script, error VBScript runtime error ID 800A046

I have a few workstations that can't run a network script for mapping network drives etc. I know the script works as it's working for everyone else. But on 1 or 2 machines (out of 1000) the script ...
0
votes
3answers
3k views

logon script -> if mapped drive's unc = this then disconnect and remap, otherwise do nothing

I'm in the process of moving file servers. Once completed, I will have to change the UNC path that the mapped drive letters used network wide to point to the new machine. I want to handle the change ...
0
votes
1answer
387 views

VB Scripting for counting the client connection

I want to Count the number of client connection connected to a shared folder using vbscript. I can use any service but not WMIservice.
0
votes
1answer
157 views

vbscript and windows script host error

i tried to runn a vbscript, and i get this message in the picture. how do i fix it?
0
votes
2answers
298 views

vbscript and secure connection

I don't know if anyone has been able to connect to a secure mssql server over the internet with vbscript using the adodb object is there pilicy that restrict script connecting to secure servers?
1
vote
1answer
1k views

Running an application as a different user (.bat / .vbs)

I need to restart an application using a service running on the SYSTEM account. The problem is that the application is then also started under the SYSTEM account. For various reasons beyond my control ...
2
votes
1answer
4k views

How to run a 32-bit app from VBScript on both 32-bit & 64-bit Windows?

What is the best way to invoke a 32-bit command with Shell.Run in VBScript such that it will succeed on both Windows 32-bit and 64-bit operating systems? On 64-bit, the app terminates because it's ...
1
vote
0answers
706 views

Constant permission denied error on VBS script

The file is created and copied to the network share but I need this to run without errors as I need to push out to users quietly. Permissions have been set to full everyone. No errors when copy to ...
0
votes
1answer
567 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
969 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
736 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 ...
1
vote
2answers
19k 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
959 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
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 ...
-1
votes
2answers
125 views

creating and modifying .exe file? [closed]

How to create an .exe file and how can I modify exsisting .exe file?
0
votes
1answer
454 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
2k 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
952 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
24k 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
1k 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
4k 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
201 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
5k 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
269 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
343 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
611 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
65 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
6k 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
479 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
4k 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
929 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
346 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
933 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
4k 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
13k 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
596 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 ...