app开发者平台在数字化时代的重要性与发展趋势解析
788
2022-09-16
重建sysvol DFS复制组
cd HKLM:\
$testKey='HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\DFSR\Parameters\SysVols\PromotingSysVols'
if ( -not (Test-Path$testKey)) { md $testKey }
New-ItemProperty$testKey -name "Sysvol Information is Committed" -value "1"-propertyType DWord
$testKey1='HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\DFSR\Parameters\SysVols\PromotingSysVols\vmlan.com'
if ( -not (Test-Path$testKey)) { md $testKey }
New-Item -Path$testKey1 -ItemType Key
New-ItemProperty$testKey1 -name "Is Primary" -value "1" -propertyType DWord
New-ItemProperty$testKey1 -name "Command" -value "DcPromo" -propertyTypeString
New-ItemProperty$testKey1 -name "Parent Computer" -value"VMLANDC03.vmlan.com" -propertyType String
New-ItemProperty$testKey1 -name "Replicated Folder Name" -value "vmlan.com"-propertyType String
New-ItemProperty$testKey1 -name "Replicated Folder Root" -value"C:\Windows\SYSVOL\Domain" -propertyType String
New-ItemProperty$testKey1 -name "Replicated Folder Root Set" -value"C:\Windows\SYSVOL\sysvol\vmlan.com" -propertyType String
New-ItemProperty$testKey1 -name "Replicated Folder Stage" -value"C:\Windows\SYSVOL\staging areas\vmlan.com" -propertyType String
New-ItemProperty$testKey1 -name "Replication Group Name" -value "vmlan.com"-propertyType String
New-ItemProperty$testKey1 -name "Replication Group Type" -value "Domain"-propertyType String
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~