sharepoint excute power shell

Add-PSSnapin microsoft.sharepoint.powershell
$UPA = Get-SPServiceApplication | ? {$_.typeName -like '*User Profile*'}
$UPA.NetBIOSDomainNamesEnabled
$UPA.NetBIOSDomainNamesEnabled = $true
$UPA.Update()
$UPA = Get-SPServiceApplication | ? {$_.typeName -like '*User Profile*'}
$UPA.NetBIOSDomainNamesEnabled

你可能感兴趣的:(SharePoint)