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)

3
votes
1answer
26 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 ...
1
vote
1answer
34 views

Querying SCCM Server to get ADD/Remove Programs list of a specific computer

First of all, i'm sorry for my english. I'm new in vbs scripting and wmi queries and I need your help. My goal is to get the Add/Remove Programs list of a specific computer. I saw many scripts which ...
1
vote
1answer
34 views

Using VBscript and EnumNetworkDrives, how can I instruct our login script to NOT delete a drive letter mapping and remove the rest upon each login?

I've been working on adding some new parts to an already existing login script using VBscript. I'd like to use the below code to erase all drive mappings on login. Set WshNetwork = ...
0
votes
1answer
63 views

VBS script to check the service and its status

I have to check the service in windows machines and if the service does not exists or is in stopped state then the machine should prompt a message and automatically restart after a certain period of ...
0
votes
1answer
130 views

VBS Scripting - Access LDAP User object with samAccountName

I am trying to write a VBScript that meets 2 requirements: It unlocks a user's account. It can do so and reference the user using the samAccountName. #1 works. However, the below script I have ...
0
votes
0answers
13 views

Duplicating a complex folder structure with only shortcuts

There are 2 shared drives. One of them has a very complex folder structure. I would like to replicate the entire folder structure of Share 1 to Share 2. However I don't want to make duplicate files, ...
0
votes
1answer
194 views

Alternative to WMI for querying shared printers

I have an environment with several hundred computers. I am trying to write vBscript that runs and adds the appropriate printer. The printer names can be determined using clues about the computer ...
2
votes
1answer
91 views

Invoke Windows password dialog when using NET USE

I'll try to get to the point. Using Run from the start menu to an un-authenticated machine: \\hostname\share gives me the Windows prompt for password, good. Running %systemroot%\explorer.exe ...
0
votes
0answers
42 views

How do fix a bug in script from a SCOM 2012 management pack

I am trying to monitor MSMQ on a windows server 2012 . The monitored server is not part of the domain of the SCOM server. The agent is installed and is in connection with the SCOM server. When the ...
1
vote
1answer
64 views

How can I either through vbscript or GPO push a Windows 7 Logon Screen to all my users

I know how to change the login screen, it's easy. But I would like to figure out a way to do it through GPO or login script. I have tried running the script as the computer start-up script as well as ...
0
votes
0answers
64 views

What permissions/drive mapping are needed to launch a process on a remote server with WMI?

I have a user that would like to distribute their independent jobs across multiple machines in our server farm. One possibility is to use WMI with the Win32_Process class, and wait for termination ...
0
votes
0answers
143 views

Scripting for bulk NTFS permission xcacls.vbs vs PowerShell

I have a batch file with about 1000 lines using xcacls.vbs for customizing NTFS permissions for complex folder structure (removes of grants, removes of inheritance, then grants plus some explicit ...
0
votes
1answer
157 views

How Can I Open and Print a Word Document Using a VBScript Called From the Web?

The university I work for allows students to register their bikes for indoor storage during the winter. This is done through a website. At the end of the process, a DYMO label printer connected to the ...
4
votes
0answers
152 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 ...
0
votes
1answer
273 views

Disable “Windows Firewall with Advanced Security” for all profiles(Domain,Public,Standard) in local GP using script help! Windows 7 Clients

We need Windows7 with windows firewall to be turned off , so the GOLD image has windows firewall turned off for all profiles(Domain,Public,Standard) and Windows Service disabled No the same GOLD ...
1
vote
3answers
2k 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 ...
1
vote
1answer
160 views

windows xp - how to add a ipp printer by batch/vbs

I need to deploy printers using IPP in the logon script (batch/vbs). I found the following script to do this: rundll32 printui.dll,PrintUIEntry /if /q /b "r011-printer01 " /f ...
0
votes
0answers
354 views

Silently uninstall using msiexec without closing explorer.exe

I am trying to use the msi uninstaller to uninstall inventor 2011 but doing it silently causes explorer to close and not restart. I have a VB script from Autodesk that will work however it is not ...
2
votes
2answers
65 views

Script needed to log the name of attached USB drive to text file

We rotate 2 TrueCrypt-encrypted USB hard drives ("BACKUP 1" and "BACKUP 2") off-site each week, for our data backup system. For both drives, the physical drive has no drive letter assigned to it (not ...
0
votes
0answers
109 views

Check if offline files are being synced

I have been trying to find a tool or a script that can automate a check to see what users machines are making an offline cache. Basically we want to know that all the machines on our network are ...
0
votes
0answers
65 views

Bulk load remote domains with TLS into iis 6 SMTP

I manage a set of SMTP servers used for sending emails for a few of our applications. I found out from one of our clients today that I need to add 80 domains for TLS support. This is required to ...
0
votes
2answers
595 views

Need to modify VB script so it deletes all existing network printers first

We have a fantastic VB script that adds multiple network printers, then goes on to select one of them to be the default. Dim multiPrinter, UNCpath1, UNCpath2, UNCpath3 UNCpath1 = "\\server\printer1" ...
0
votes
1answer
370 views

How to prevent schtasks on Windows 7 from showing the command prompt after executing a task?

I am trying to get a scheduled task on Windows 7 to execute once a minute, using schtasks and a batch file. My .bat batch file is: @ECHO OFF wscript "c:\http.vbs" The .vbs script si a simple one, ...
0
votes
1answer
541 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
1answer
169 views

Delete a folder in the currently logged in user's profile

I am trying to create a login script, or bat file to delete the folder located in the following directory. I would like the whole folder deleted with all of its contents "Juniper Networks". This is ...
0
votes
1answer
304 views

VB script + run CMD and display network address by using SendKeys

I use the following VB script ( example ) , to open CMD window and run ipconfig on my WIN XP CMD window was opened but from some reason WshShell.SendKeys not send the ipconfig on CMD window please ...
1
vote
2answers
353 views

Can multiple computers simultaneously append to a file on a windows file share?

I'm trying to log certain information from my network of Windows machines; I've set them to periodically collect this info, then I want it in a single CSV file on a network drive. I'm using a VBS to ...
1
vote
1answer
190 views

Windows 7: Update a file in the system32 folder via GPO

I'd need to update a Windows file in the system32-folder I've made a script to do this task. When I run it locally on a system (from a prompt with elevated privileges) it works fine. I've created a ...
2
votes
0answers
225 views

Is it possible to launch a hyperlink within the email body from a specific sender?

Goal: My goal is to have OUTLOOK filter an incoming message based on keywords (which can be done with rules) but, I need to run a script that will automatically open the link within the email. ...
0
votes
1answer
176 views

Windows server 2008 R2 error running vbscript from Registry at startup

I have a simple vbscript which runs an Exe program both vbscript and exe program are in the same folder c:\xxx, i want this script to run every time the machine restarts as we have 40 servers and ...
0
votes
1answer
164 views

Script to Uninstall MS Updates by Date

I'm in a situation where I need to uninstall all windows updates before a certain date to troubleshoot a strange bug. I found several vb/ps scripts to do this remove single update However I'm ...
0
votes
1answer
113 views

Trying to automate server tasks, stuck on gathering critical update information from WSUS

I asked this question at Stack Overflow but they said I would have better luck here. I am using VBScript to automate a lot of server tasks, I'm simply checking to make sure the server build team did ...
0
votes
0answers
189 views

Group Policy Email Signature Script

I have a VBS script that builds an Outlook Email signature and saves it to the user's machine. I want this to be called each time the user logs in, using group policy, but so far I've had no luck. ...
0
votes
1answer
591 views

Export hardware specifications to a spreadsheet for Windows Server

I have a bunch of servers : Windows 2003 and 2008. I just wanted to export these hardware specs to a spreadsheet: cpus : num processors, clock speed, etc total hard disk space total used disk space ...
0
votes
2answers
969 views

Server 2008 R2 Task Scheduler permissionf for a vbs script

I have a vbs script to make backups of MySQL database files using the MySQLDump command. This is working perfectly and creates a new folder for each day's backups (e.g. 20130110). However, the script ...
0
votes
0answers
268 views

IIS7 “Error in Loading DLL” error. Level of difficulty, the DLL is “Server.CreateObject”

I posted this initially to Stackoverflow. I was told to ask here since the error is probably not code related, but a configuration error. I'm working with an ASP application and get the following ...
0
votes
1answer
1k views

Script to resolve GUID to String in Active Directory

I am trying to understand the output of the following VB script that resolves a GUID to a string in active directory: http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B325649 This article ...
0
votes
2answers
938 views

Export SCCM 2007 Query Results Via VBScript

I'm wondering if it's possible to export the results of a SCCM 2007 query via VBScript. If it is any suggestions would be greatly appreciated. I know I can export reports through SCCM via VBScript by ...
0
votes
2answers
923 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
1answer
188 views

How to Read XML and Generate SQL Insert for Call Data Records

I am trying to write a VB Script to read a XML file (downloaded daily) and insert the information into a MSSQL DB. The content of the XML is a list of CDRs (Call Data Records). I need to parse the ...
1
vote
1answer
128 views

.vbs script wont run at login using AD

I am trying to execute a printer script (.vbs) on logon for my company's users. I am currently running a batch (.bat) file on startup through Active Directory > Profile > Logon Script which ...
0
votes
1answer
256 views

NINite Integration, vbs script,copy file from server and replace existing

Lets forget about everything besides mapping a drive and running NINite. So here is what I have done. I have changed the task sequence to look like this: ...
4
votes
1answer
491 views

Modify MDT wizard to automate computer naming

Situation: I am imaging new systems using MDT Lite-Touch. I am trying to customize the wizard to automate the naming of new systems so that they include a prefix "AG-", a department code which ...
1
vote
2answers
3k 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
1answer
325 views

Batch File to Copy Files [closed]

I have a list of 150 computers on my Windows Active Directory network that I am trying to copy a files to. I wonder if someone might have a script that would, copy the files or shortcut to the ...
3
votes
2answers
223 views

Is it possible to get CCM Updates Schedule using Powershel or VBScript?

I want to be able to check the CCM Updates Schedule as seen in Configuration Manager Updates tab. I've been looking around on google and I've not been able to find a consistent answer to this. I ...
2
votes
1answer
332 views

How does the “Last Result” column of Scheduled Tasks in Windows Server 2003 get set from a process or script?

The Last Result column of the Scheduled Tasks Window on Windows Server 2003, displays the result of the execution of the .exe, .vbs, .ps1, .bat, .cmd, etc... that has been run at the scheduled time. ...
1
vote
2answers
452 views

Change AD-Password from client by console / VBScript

I have an AD-environment, but a few machines are used as workgroup-machines (and I can't change this). My target is to have a script which changes the AD-Password on the server from a client ...
0
votes
1answer
516 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
315 views

VBScript for Uninstall not finding anything

I started using a standard uninstall script, and it wasn't working, so I decided to see if it was even finding any progams at all, and it seems it isn't. It works on Windows 7 but not on the other ...