Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify an NNTP Virtual Directory Metabase PropertyContent of Modify an NNTP Virtual Directory Metabase Property.vbsMD5 Hash: 6DEDA5AA962AA6121FB9DDE79C0C3E69 |
||
' Description: Demonstration script that modifies the VrDoExpire global NNTP metabase property on a computer running IIS 6.0.
strComputer = "." Set objWMIService = GetObject _ ("winmgmts:{authenticationLevel=pktPrivacy}\\" _ & strComputer & "\root\microsoftiisv2") Set colItems = objWMIService.ExecQuery _ ("Select * from IIsNNTPVirtualDirSetting") For Each objItem in colItems objItem.VrDoExpire = TRUE objItem.Put_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |