Search found 1789 matches

by jhicks
Sun May 27, 2007 1:06 am
Forum: VBScript
Topic: How to Create Script for AD
Replies: 2
Views: 1630

How to Create Script for AD

There are some scripts in the Script Vault here (http://www.scriptinganswers.com/vault/A ... istration/) that should help get you started.
by jhicks
Thu May 24, 2007 11:26 pm
Forum: VBScript
Topic: VB script to download shares
Replies: 4
Views: 2794

VB script to download shares

So when you use Wbemtest to connect to the remote machine, can you successfully run the query with your current credentials, or do you need to specify admincredentials? If the latter, then you need to rewrite your script using the SWbemscripting object which allows you to specify alternate credentia...
by jhicks
Thu May 24, 2007 9:06 pm
Forum: VBScript
Topic: VB script to download shares
Replies: 4
Views: 2794

VB script to download shares

So when you change the value of strComputer to a remote machine you get the error? Does it work for the localhost? It works fine for me both ways. What OS is on the remote computer? Are you running it with admin credentials for the remote computer? What happens when you use WBEMTest and run a query ...
by jhicks
Thu May 24, 2007 8:57 pm
Forum: VBScript
Topic: Help a newbie?
Replies: 3
Views: 2825

Help a newbie?

I don't know enough about SQL, but can the DTS process execute an external command, like run a script or copy a file? Really, this process is the only one which will really know when the file copy is complete so if we can get it to create the flag file, so much the better.I also have another idea fo...
by jhicks
Wed May 23, 2007 7:49 am
Forum: VBScript
Topic: VBScript Limitations?
Replies: 9
Views: 12602

VBScript Limitations?

I think we can safely say don't try this at home or work. I tried something similiar in PowerShell$large=gc large3.txtI killed PowerShell after 12 minutes. My free physical RAM dropped from 750MB to around 3MB, and my pagefile maxed out its size and started swapping. Jim's statement about no string ...
by jhicks
Wed May 23, 2007 7:14 am
Forum: VBScript
Topic: VBScript Limitations?
Replies: 9
Views: 12602

VBScript Limitations?

I'm curious about your page file issue. My pagefile is around 2GB with plenty of free space in the file as well as physical memory.
by jhicks
Wed May 23, 2007 6:54 am
Forum: VBScript
Topic: VBScript Limitations?
Replies: 9
Views: 12602

VBScript Limitations?

LogParser would definitely be an effective tool. Otherwise, you might be able to open the log file using ADO and treat it as a database in VBScript. But Logparser will be more efficient since this is exactly the job it was designed for.
by jhicks
Wed May 23, 2007 5:22 am
Forum: VBScript
Topic: Exchange New User from file
Replies: 4
Views: 3980

Exchange New User from file

Are you getting errors or is the script ending? The script was designed for a single user. You might need to go through and remove the wscript.quit lines.
by jhicks
Wed May 23, 2007 5:17 am
Forum: VBScript
Topic: VBScript Limitations?
Replies: 9
Views: 12602

VBScript Limitations?

I created a 209MB ASCII text file. I tried using the ReadAll method and got a an out of memory error message. My computer has 1.5GB of RAM. I had almost 800MB of free physical memory. I watched mem usage do down to about 420MB free before it erred out. Here's the script I threw together to create a ...
by jhicks
Tue May 22, 2007 12:34 am
Forum: VBScript
Topic: Querying from an SQL Database using VBScript
Replies: 2
Views: 19217

Querying from an SQL Database using VBScript

I used a trusted connection. Here are some other connection string examples:http://www.connectionstrings.com/?carrier=sqlserver