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.
2
votes
0answers
27 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
49 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
0answers
43 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
46 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
78 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
0answers
29 views
How can I audit remote drives for stray VSS snaps?
I discovered stray snapshots on my drives with the command
DISKSHADOW> list shadows all
I want to create & run a script that will audit this on every host in the network.
How can I use ...
0
votes
1answer
122 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
239 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
110 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
0answers
161 views
Error 70 Permission Denied in Scheduled Task But Not Interactively
I have a script that creates a text file on a network drive using VBScript, run as a scheduled task. It is failing now with a "permission denied" error (error 70) but only when run as a scheduled ...
0
votes
1answer
223 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
432 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
226 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
169 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
103 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
161 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
302 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
1answer
843 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
240 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
1answer
133 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
137 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
318 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
161 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
209 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 ...
1
vote
1answer
158 views
Event Viewer VB scripts
I am sure it has been asked million times, but I can't seem to find an appropriate answer for my simple need. I am looking for a VB script that would pull event viewer logs into one location, either ...
0
votes
1answer
149 views
Delete folders with exclusions (case)
i found a VB script that uses FileSystemObject to delete every folder on a drive except ones i specify, my problem is that the FileSystemObject cannot see or enumerate folder with trailing / leading - ...
1
vote
1answer
161 views
Set default printer by vbscript on Server 2008 R2 RDS
I'm trying to get the Task Scheduler to run a vbscript that sets default printers for individual users on a Server 2008 R2 RDS machine.
Unfortunately my only success so far is getting any logon to ...
1
vote
2answers
199 views
Using IIS6 to run kill process. Executable hangs
I'm using the following code (any tried many variations) in a web page that is supposed to kill a process on the server:
Process scriptProc = new Process();
SecureString password = new ...
2
votes
1answer
153 views
Shortcut on client to run bat file on a server
Is it possible to place a shortcut on a client which will run a bat (or vbscript) file on a server? (as opposed to the script running on the client)
It seems pretty basic, but I'm at a loss how this ...
1
vote
2answers
288 views
PSKill does not run from VbScript
We have a site on our local IIS6 Windows 2003 server that occasionally locks up, and we would like a VbScript to kill the process. It is located in the system32 folder. I'm running these tests on ...
0
votes
2answers
694 views
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 ...
1
vote
1answer
276 views
LOGON script won't add first share
I have the following problem:
When i run my LOGON_SCRIPT.vbs to add network shares to users of a specific group it skips the first one if the user is part of Kleinkunstig_Users (it will not add the ...
4
votes
1answer
328 views
Using VBScript at logon to determine if powershell is installed
I have a mixture of Win7, and XP machines on my network. Every user logs on using a VBS based logon script and for clients that support it, I want to show an informational pop-up as shown here.
How ...
0
votes
2answers
908 views
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 ...
0
votes
2answers
229 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 ...
1
vote
1answer
81 views
How do I extract the Drive letter from the result of EnumNetworkDrives
I'm using EnumNetworkDrives to list out all the drives on a machine. I'd like to determine which object in the collection is drive "X"
What object is returned in EnumNetworkDrives that has a ...
0
votes
1answer
153 views
Windows shutdown processes termination sequence [closed]
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 ...
1
vote
2answers
1k views
Scripting help - need to get phone number of AD accounts and then add them to contacts in trusted domain
I have domain accounts that I have created as contacts in another trusted domain so that they can see them in their Exchange GAL.
I need a way to extract the phone number field from UserA (user ...
0
votes
4answers
143 views
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.
0
votes
2answers
186 views
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 ...
0
votes
2answers
376 views
VBSCRIPT enumerate Read-Only Domain Controllers
How can I list all Read Only Domain Controllers that are listed in Active Directory using VBScript?
1
vote
2answers
185 views
get account name for IIS anonymous user
I'd like to get the name of the anonymous user account for an IIS install. It's easy enough to assume that it's the machine name, but in the event that the machine name has changed I'd like to still ...
0
votes
4answers
1k views
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 ...
1
vote
1answer
394 views
Adding a second VHD to a Hyper-V VM programatically or from the command line
I have been scripting the creation of my Hyper-V VMs with vbscript successfully for sometime now. All the technician has to do is run my script, select the type of server they are building (EG. a Web ...
2
votes
2answers
360 views
Upgrade to IIS7 from IIS6 to improve application performance
I have an ASP Classic application that runs currently in IIS6, but often due to the original programmer not following "best practices" this application throws an Out of Memory error after several ...
1
vote
1answer
3k views
Overwrite files without prompt with File.CopyHere in logon script (vbs)
I'm trying to create a logon script (vbs) to install some fonts. If the fonts are installed I get a prompt saying "There's already a file with the same name in this location".
How can I force the ...
1
vote
1answer
257 views
Monitor message queues
I'm looking for a simple way to monitor RabbitMQ queues from SCOM. In particular, I want to be notified when a particular queue (one we use for "dead letters") is not empty.
RabbitMQ has a RESTful ...
1
vote
0answers
195 views
WinHTTP module not found (HRESULT 0x8007007e)
I've got a customer that gets a module not found error (0x8007007e) when running a vbscript at this line of code:
set test = CreateObject("WinHttp.WinHttpRequest.5.1")
The system is Windows 7 ...
3
votes
3answers
142 views
Direction for Scripting
I'm administering a network and they use a few scripts here. Mostly batch scripts or vbscript. It's a Windows environment, mostly Server 2008 with a few 2003 servers.
My question is Should I learn ...
0
votes
1answer
518 views
Create Batch file to execute multiple batch files and VBS files
I have multiple batch files and vbs files , when i try to create a batch to call them it stop after the last batch file and dont execute the vbs.
without giving any error
if i put the vbs at the ...
