Page 1 of 1

Calling Powershell Scripts Via VB

Posted: Mon May 20, 2013 8:40 pm
by bareedaa
I would like to call the following powershell scripts in to VB:

Get-ADUser -Filter {Enabled -eq $false} -Searchbase 'ou=Q1,Dc=demo,DC=corp' |
ForEach{
Set-MailboxAutoReplyConfiguration -Identity $_ `
-AutoReplyState Enabled `
-ExternalAudience All `
-InternalMessage 'Your message to internal users' `
-ExternalMessage 'Your message to external users'
}


The task is to create: VBScript ; tht Enable AUTO Out-Of-Office (OOO) message for disabled active directory users that own a mailbox in case the employee is terminated or quits.
Please help???

Re: Calling Powershell Scripts Via VB

Posted: Tue May 21, 2013 3:56 am
by jvierra
That cmdlet is only avaialbe for PowerShell.

Re: Calling Powershell Scripts Via VB

Posted: Tue May 21, 2013 9:48 am
by Alexander Riedel
You can use our free AciveXPosh component to call PowerShell from VBScript.
It is available in the downloads section of our site.