$server = Get-Content C:\Users\sunil\Desktop\Book1.xlsx
foreach($ser in $server){
Set-ItemProperty –Path HKLM:\System\CurrentControlSet\Control\Lsa –Name RestrictRemoteSAM -Value 'O:BAG:BAD:(A;;RC;;;LA)'
#Get-ItemProperty –Path HKLM:\System\CurrentControlSet\Control\Lsa –Name RestrictRemoteSAM
}
No comments:
Post a Comment