Code:
#Get Windows Version
$version=(gwmi win32_operatingsystem).caption
write-host $version "is installed"
$win7='Microsoft Windows 7 Professional'
$Win10='Microsoft Windows 10 Pro'
if ($version -eq $Win7){
exit
} else {
#Add registry key for Windows 10 netwrok errorif
write-host $Win10 'Installing'
$value =(Get-Itemproperty hklm:software\microsoft\windows\currentversion\policies\system).EnableLinkedConnections
If ($value -ne 0){
Set-ItemProperty -Path hklm:software\microsoft\windows\currentversion\policies\system -Name EnableLinkedConnections -Value 1
}
}
MCSE NT to 2012, MCITP:EA/SA, MCSA, MCDBA, MCTS, MCP+I, MCP