Running exchange powershell command from vbscript Hi! :) I need to run one powershell command from vbscript. I have no problem running a command like Get-Command but what I need to run is an Exchange command (Set-Mailbox). How can I do this? I tried: Dim objShell : Set objShell = CreateObject("Wscript.Shell") objShell.Run("C:\Windows\System32\WindowsPowerS... 17 Mar 2010 09:07
WSHShell.SendKeys "{F5}" - doesn't work On Mar 15, 12:02 pm, <-> wrote: I've been trying with every sample script I can find on the Net, but the double clicking the VBS just flashes the hourglass and then nothing. All these scripts can't be wrong. It just simply doesn't refresh the desktop. I'm doing the Outlook desktop icon thing and if this d... 15 Mar 2010 18:11
AddWindowsPrinterConnection, but the mapping is NOT stored inthe user profile francois a �crit : I would like to add a network printer connection to a XP client with a logon script, but *without* store the mapping in the use profile. Is it possible ? Has anybody got an idea about this? I use roaming profiles and in the logon script I use the AddWindowsPrinterCon... 13 Mar 2010 15:23
Can a vbscript identify the program/process that called the sc Thank you. This too is a very helpful way to acquire the info. It's noteworthy (I think...) that the event info is an html dependent functionality, instead of being directly accessable through vbscript and Windows. (I hope what I just said so confidently isn't stupid/ignorant/wrong, and the product of ignoranc... 11 Mar 2010 10:03
How to speed this up? Hi I'm searching through severel servers on in severel folders. Want newest file LastModified time stamps. In the folders are files wiht differents filename patterns in (same folder) so I'm having path in one array and pattern in another array In some folders there are more than 800 files. This is very slo... 24 Mar 2010 07:46
Have group members in wrong format Hello, Dan wrote : Hey all, I have used arrMemberOf = objGroup.GetEx("member") to obtain the members of a group but they come in as the "cn=...." and I need to just obtain the user name. How can I translate to that? I'm not sure, but I propose this: '----------------------------- For Each ... 9 Mar 2010 19:16
SQL Query in VBScript I am using the following code to perform a SQL query and return a recordset I am getting the error "Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another" This error occurs when I open the record set. What am I doing wrong? Const adOpenStatic = 3 Const adLockOptimist... 9 Mar 2010 12:22
Loop to find files, copy and renaming... Hi, I have a folder called E:\MyFolder which contains an arbitrary number of subfolders like Sub1, Sub2 Sub3 etc. In each of these folders there might be a file called MyFile.DAT. I need a script that loops through all levels of subfolders under E:\MyFolder and copies every occurrence of MyFile.DAT to E:\T... 10 Mar 2010 13:06
Can a vbscript identify the program/process that called a vbsc Dear Pegasus: First, thank you for replying. "Msgbox wscript.fullname" will return the fullname (path + name + ext) of the script in which the "Msgbox wscript.fullname" line resides. wscript.fullname won't port the fullname info from TriggerScriptA.vbs to ActionScript.vbs, unless an "argument methodology" ... 17 Mar 2010 00:19
How to tell if a contact object exists? I am trying to determine the best way to write a snippet that determines if an Active Directory contact already exists. My current script looks at users and creates contact objects for them. The trouble I have is obviously running the script a second time bombs me out with "object already exists". What I'm l... 9 Mar 2010 05:39 |