最佳解答者
Do you know how can create vbs enable/disable Outlook Web access (Webmail) in Active Directory user account

問題
-
Our company have one policy , can't always enable outlook web access to check mail , only approve by manager and specific time to check webmail
Do you know how to create vbs for enable / disable account for use outlook web access to check mail .I want create vbs script ,put into schedule jobs to run it , anybody can help me ?
2008年12月9日 上午 07:13
解答
-
Dear customer:
Since your issue is related to VBscript, which is out of our support boundary. You can post your issue into the following forum; maybe you can get more help in there:
TechNet Forums » Exchange Server » Development
http://forums.microsoft.com/TechNet/ShowForum.aspx?ForumID=838&SiteID=17
Thanks for your understanding.
Rock Wang - MSFT
2008年12月9日 上午 09:13 -
Hello MOMO_try,
Would you consider using ADmodify? it can provide simple GUI & provide fallback features & logging. It is the same run the script on background to modify the setting. *it's free tools by Microsoft.
http://www.msexchange.org/articles/ADModify-Change-Exchange-Specific-AD-User-Attributes.html
may i know why you want it on schedule? it should be set it 1 time. the Exchange OWA features is stor on AD users attributes, you can refer to Microsoft script center- AD to take sample script it.
2008年12月11日 上午 01:22
所有回覆
-
Dear customer:
Since your issue is related to VBscript, which is out of our support boundary. You can post your issue into the following forum; maybe you can get more help in there:
TechNet Forums » Exchange Server » Development
http://forums.microsoft.com/TechNet/ShowForum.aspx?ForumID=838&SiteID=17
Thanks for your understanding.
Rock Wang - MSFT
2008年12月9日 上午 09:13 -
Hello MOMO_try,
Would you consider using ADmodify? it can provide simple GUI & provide fallback features & logging. It is the same run the script on background to modify the setting. *it's free tools by Microsoft.
http://www.msexchange.org/articles/ADModify-Change-Exchange-Specific-AD-User-Attributes.html
may i know why you want it on schedule? it should be set it 1 time. the Exchange OWA features is stor on AD users attributes, you can refer to Microsoft script center- AD to take sample script it.
2008年12月11日 上午 01:22 -
Dear Billy
Thank you for the information , Why i need enable / disable OWA . This is our company policy , the IT Manager don't long time for enable owa feature for staff to use webmail , only approve staff on specific time to use , sometimes i forget disable OWA , I want write VBS script to run on schelude , this can be automatic run on time .
have you any idea for vbs script enable / disable
-------------------------------------------------------------------------------------------------------------------------------------------------------------
sample : can you tell me how to modifty
http://www.eggheadcafe.com/forumarchives/Exchangeadmin/Jun2005/post23294084.asp
dim usrstring
Set
ObjOU=GetObject("LDAP://OU=non-salaried-employees-ou,DC=domain,DC=domainsuffix")
For Each User in ObjOU
usrstring = "LDAP://CN=" & user.get("cn") &
",OU=Lackey,OU=IT,OU=Accounts,DC=wp,DC=fsi"
Set ObjUser=GetObject(usrstring)
For Each protocolSettings in ObjUser.GetEx("protocolSettings")
If Left(protocolSettings, 4) = "HTTP" Then
ObjUser.PutEx 4, "protocolSettings", Array(protocolSettings)
ObjUser.SetInfo
End If
Next
ObjUser.PutEx 3, "protocolSettings", Array("HTTP§0§1§§§§§§")
ObjUser.SetInfo
Next2008年12月15日 下午 04:52 -
Hi MoMo_try,
You can enable/disable mailbox’s OWAEnable attribute by running set-casmailbox cmd-let.
1. Run the following command to enable Outlook Web Access for the user john@contoso.com:
Set-CASMailbox -Identity john@contoso.com -OWAEnabled $true
2. Run the following command to disable Outlook Web Access for the user john@contoso.com:
Set-CASMailbox -Identity john@contoso.com -OWAEnabled $false
If you want to perform bulk operation for all mailboxes, you can use pipeline parameter like the following command:
Get-casmailbox | Set-CASMailbox -OWAEnabled $false
Get-casmailbox | Set-CASMailbox -OWAEnabled $true
If you want to do that via VBScript, please post your issue into the following forum:
TechNet Forums » Exchange Server » Development
http://social.technet.microsoft.com/forums/en-US/exchangesvrdevelopment/threads/
Regards,
Rock Wang
Rock Wang– MSFT2009年5月14日 上午 05:50