【Powershell】【DNS】通过Powershell远程注册静态DNS
2015-08-13 09:15
411 查看
代码通过调用DNS服务器的wmi端口远程注册静态DNS记录
$dnsServerName="08dc01.mok.com"
$containerName="mok.com"
$dns =[WmiClass]"\\08dc01.mok.com\root\MicrosoftDNS:MicrosoftDNS_ResourceRecord"
$dns.CreateInstanceFromTextRepresentation($dnsServerName, $containerName, "bb.mok.com IN A 127.0.0.3")
本文出自 “精华荟萃” 博客,请务必保留此出处http://simy88.blog.51cto.com/7370552/1684226
$dnsServerName="08dc01.mok.com"
$containerName="mok.com"
$dns =[WmiClass]"\\08dc01.mok.com\root\MicrosoftDNS:MicrosoftDNS_ResourceRecord"
$dns.CreateInstanceFromTextRepresentation($dnsServerName, $containerName, "bb.mok.com IN A 127.0.0.3")
本文出自 “精华荟萃” 博客,请务必保留此出处http://simy88.blog.51cto.com/7370552/1684226
相关文章推荐
- Spark入门实战系列--3.Spark编程模型(上)--概念及SparkShell实战
- 让Shell终端下的svn diff支持颜色高亮
- shell中for循环总结
- shell中单引号和双引号区别
- Shell 批量删除失效软链接
- BAPC2014 B&&HUNNU11582:Button Bashing(BFS)
- 用C,shell实现俩文件合并
- shell脚本回顾01:脚本跟踪和脚本参数
- Shell编程之正则表达式
- shell 函数
- shell命令
- shell相关
- Shell脚本学习(一) - 创建脚本
- shell编程之正则表达式
- 如何替换Windows的Shell(即explorer.exe)
- 负载均衡之LVS--Shell脚本配置LVS
- #每日Linux小练习#08 Shell Script知识点总结(下)
- shell_wc(统计数目)、head(查看前几行)、tail(查看末尾几行)
- 菜鸟初识shell
- 【Powershell】【CPU使用率】脚本实时获取所有cpu使用时间非0的进程