Questions tagged [vbscript]

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.

217 questions
0
votes
2 answers

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 using the web-view of the report and faking the…
0
votes
2 answers

script to disable windows firewall under Vista

Set objFirewall = CreateObject("HNetCfg.FwMgr") Set objPolicy = objFirewall.LocalPolicy.CurrentProfile objPolicy.FirewallEnabled = FALSE This script does not work in Vista/2008 and Windows 7 anymore. Even with elevation. The error box is shown "a…
jitbit
  • 407
  • 2
  • 6
  • 18
0
votes
1 answer

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 file and insert the cdr's into a table. I'm a…
0
votes
1 answer

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: http://social.technet.microsoft.com/Forums/getfile/194910 I have added a net use command to…
localuser
  • 1
  • 1
0
votes
1 answer

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 file share is a matter if checking for an existing…
0
votes
2 answers

Script to delete Shortcut on each user's desktop

I'm looking for a script to remove a .lnk file that was placed on every user's desktop. I installed a program on a terminal server that put a .lnk file on every user's desktop, rather than putting one shortcut in the "Public" desktop folder. I have…
Jake A
  • 454
  • 2
  • 10
  • 22
0
votes
2 answers

VBScript with ADsDSOObject no longer working after move to Server 2008 R2

we recently moved some scripts from a 32 bit Windows 2008 server to a new Windows 2008 server R2 64 bit machine. Now we have some trouble with a few VB Scripts. Let's take this one for example: Set objcon = CreateObject("ADODB.Connection") Set objrs…
0
votes
1 answer

Windows shutdown processes termination sequence

Do you know the Windows shutdown process is implemented? Does it has some criteria to avoid inter-process communication problems between child and parent processes? This question originated from an suspicious (apparent) coincidence situation on a…
jpmartins
  • 1,404
  • 2
  • 12
  • 14
0
votes
4 answers

VB Script for Windows Servers

I require a VB script which when run gives me the details about the latest Windows patch that was updated on the servers along with the date & time.
Anu
  • 1
0
votes
2 answers

VBS Logon Script

Could someone please provide some assistance with VBS scripting? Here is what I have modified so far; Const GROUP1 = "cn=GROUP1" Const GROUP2 = "cn=GROUP2" Const GROUP3 = "cn=GROUP3" Set wshNetwork = CreateObject("WScript.Network") Set ObjectUser…
Average Joe
  • 51
  • 1
  • 4
0
votes
2 answers

VBSCRIPT enumerate Read-Only Domain Controllers

How can I list all Read Only Domain Controllers that are listed in Active Directory using VBScript?
CWL
  • 11
  • 1
0
votes
4 answers

Disable remote desktop through CMD or script in Windows 2008

I'm looking for a way to disable Remote Desktop login for Windows 2008 for a specific user (a local administrator account), either using the command line or a script (such as VBS) in Windows 2008. I understand I need to modify the local security…
0
votes
2 answers

Install Error: Could not access VBScript run time for custom action

I'm trying to install a package on a Windows 2008 server. The package is refusing to install. I have run the install with the following command line switched to get a log file: /lxv InstallLog.txt This is the error that I see in the file: Error…
John Dyer
  • 735
  • 2
  • 10
  • 12
0
votes
2 answers

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 command window is shown when the task…
AdamRalph
  • 109
  • 1
  • 4
0
votes
3 answers

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 opening in my text editor. I presume that there's…