Search found 416 matches

by donj
Fri Apr 11, 2008 12:14 am
Forum: VBScript
Topic: copying file
Replies: 5
Views: 3923

copying file

WMI does let you pass credentials, but I don't know if there's a method for copying a file. It'd be pretty inefficient. There's not another means I'm aware of - the file system wasn't designed specifically for this. You could always manually map a network drive ahead of time, which does accept manua...
by donj
Thu Apr 10, 2008 3:16 am
Forum: Other Scripting Languages
Topic: Displaying AD info
Replies: 6
Views: 5442

Displaying AD info

Cool!
by donj
Thu Apr 10, 2008 3:05 am
Forum: Other Scripting Languages
Topic: Displaying AD info
Replies: 6
Views: 5442

Displaying AD info

Huh. Weird. I cannot make it break on my machine.
by donj
Thu Apr 10, 2008 1:06 am
Forum: PowerShell
Topic: New-Object for Data Collection ?
Replies: 3
Views: 5967

New-Object for Data Collection ?

Ya, I love those guys. I'm so glad someone's doing the podcast - I just couldn't make the time to keep it regular. Hal's the new Community Director at www.PowerShellCommunity.org, too, which is great for him - I hope the podcast'll help bring more folks over there.
by donj
Thu Apr 10, 2008 1:05 am
Forum: VBScript
Topic: I have an ampersand in an input file
Replies: 9
Views: 5872

I have an ampersand in an input file

Whelp. Not sure, then. is supposed to be the escape character in LDAP queries from the docs I'm reading. If it's not working you might be a bit stuck.
by donj
Thu Apr 10, 2008 12:39 am
Forum: VBScript
Topic: I have an ampersand in an input file
Replies: 9
Views: 5872

I have an ampersand in an input file

Yah, okay - the & is upsetting LDAP. Try a backslash to escape it - that's LDAP's escape character, I believe. And go on a moral campaign to eliminate & from your AD object names (grin).
by donj
Thu Apr 10, 2008 12:09 am
Forum: VBScript
Topic: I have an ampersand in an input file
Replies: 9
Views: 5872

I have an ampersand in an input file

Maybe this is what you're doing: If that line you showed is what's in your input file, the VBS isn't the problem. The & has special meaning to LDAP (it's part of the LDAP search syntax); you need to escape it with a character. So if you're just reading a string and plugging that as an LDAP query...
by donj
Wed Apr 09, 2008 11:43 pm
Forum: VBScript
Topic: File Versions information
Replies: 6
Views: 4240

File Versions information

The easiest way to get the version number is probably to use the WMI CIM_DataFile class or one of its derivatives.
by donj
Wed Apr 09, 2008 11:42 pm
Forum: VBScript
Topic: Runoce Registry key
Replies: 2
Views: 2406

Runoce Registry key

Or for that matter just deploy the MSI via Group Policy.
by donj
Wed Apr 09, 2008 11:39 pm
Forum: PowerShell
Topic: printing out the URL of each frame in html
Replies: 3
Views: 6328

printing out the URL of each frame in html

YOu might consider changing the way you do this entirely - it might be easier just to get the base document and use a regex to grab the src's from the HTML tags. Then load each page individually. IE has a lot of security surrounding frames that can make them pretty complex, and the COM object doesn'...