SharePoint PowerShell : Enable NetBios

  1. .$ServiceApps = Get-SPServiceApplication  
  2. $UserProfileServiceApp = ""  
  3. foreach ($sa in $ServiceApps)  
  4. {if ($sa.DisplayName -eq "User Profile Service Application")   
  5. {$UserProfileServiceApp = $sa}  
  6. }  
  7. $UserProfileServiceApp.NetBIOSDomainNamesEnabled = 1  
  8. $UserProfileServiceApp.Update()