Calling Powershell Scripts Via VB
Posted: Mon May 20, 2013 8:40 pm
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???
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???