Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create a Text DNS RecordContent of Create a Text DNS Record.vbsMD5 Hash: 5A26F8C9AC0C3B4C427932844ED82C51 |
||
' Description: Creates a text (TXT) record on a DNS server.
strDNSServer = "atl-dc-03.fabrikam.com" strContainer = "fabrikam.com" strOwner = "atl-dc-01.fabrikam.com" intRecordClass = 1 intTTL = 600 strText = "This domain is reserved for employees of Fabrikam." strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & _ "\root\MicrosoftDNS") Set objItem = objWMIService.Get("MicrosoftDNS_TXTType") errResult = objItem.CreateInstanceFromPropertyData _ (strDNSServer, strContainer, strOwner, intRecordClass, intTTL, strText) | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |