Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify SMTP Virtual Server Message PropertiesContent of Modify SMTP Virtual Server Message Properties.vbsMD5 Hash: 5BD2B3DAA0001FEA8F33F87BC2BA7FD6 |
||
' Description: Demonstration script that modifies global SMTP virtual server message metabase property values on a computer running IIS 6.0.
strComputer = "." Set objWMIService = GetObject _ ("winmgmts:{authenticationLevel=pktPrivacy}\\" _ & strComputer & "\root\microsoftiisv2") Set colItems = objWMIService.ExecQuery _ ("Select * from IIsSmtpServiceSetting") For Each objItem in colItems objItem.BadMailDirectory = "C:\Badmail" objItem.MaxBatchedMessages = 30 objItem.MaxMessageSize = 500000 objItem.MaxRecipients = 50 objItem.MaxSessionSize = 1000000 objItem.SendNdrTo = "email-admin@fabrikam.com" objItem.Put_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |