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???
Calling Powershell Scripts Via VB
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: Calling Powershell Scripts Via VB
You can use our free AciveXPosh component to call PowerShell from VBScript.
It is available in the downloads section of our site.
It is available in the downloads section of our site.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.