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

posted @ 2014-06-12 09:46  Jason.Bird  阅读(213)  评论(0编辑  收藏  举报