Get-NetAdapter | Get-NetConnectionProfile
Get-NetFirewallRule -displayname "*Sharing (SMB*"| Set-NetFirewallRule -Enabled True
Get-AdObject -SearchBase "cn=configuration,dc=domain,dc=com" -Filter "objectclass -eq 'dhcpclass' -AND Name -ne 'dhcproot'"