Поделиться через


SharePoint 2010: Cases where FQDN is different from NetBios Name for User Profile Synchronization Service

Copy the following code and paste it into a text editor, such as Notepad:

 $ServiceApps = Get-SPServiceApplication
$UserProfileServiceApp = ""
foreach ($sa in $ServiceApps)
  {if ($sa.DisplayName -eq " <UserProfileServiceName> ") 
    {$UserProfileServiceApp = $sa}
  }
$UserProfileServiceApp.NetBIOSDomainNamesEnabled = 1
$UserProfileServiceApp.Update()
  1. Replace <UserProfileServiceName> with the name of the User Profile service application.

  2. Save the file, naming it AllowNetBiosName.ps1.

  3. On the Start menu, click All Programs.

  4. Click Microsoft SharePoint 2010 Products.

  5. Click SharePoint 2010 Management Shell.

  6. Change to the directory where you saved the file.

  7. At the Windows PowerShell command prompt, type the following command:

    ./ AllowNetBiosName.ps1