Powershell: How to re-provsion the sync DB to resolve the issue that User Profile Synchronization Service fails to start?

You can use the below script: ================================== Get-SPDatabase $syncdb=Get-SPDatabase -Id$syncdb.Unprovision()$syncdb.Status=’Offline’Get-SPServiceApplication$upa=Get-SPServiceApplication – Id$upa.ResetSynchronizationMachine()$upa.ResetSynchronizationDatabase()$syncdb.Provision()  

0

Powershell: How to restart the User Profile Synchronization Service if disabled?

Below script shows how to restart the User Profile Synchronization Service if disabled.   ============================================ # Loads the SharePoint 2010 PowerShell extensions Add-PSSnapIn Microsoft.SharePoint.PowerShell  # Sets variable for User Profile Service Application: enter the name of your UPA in quotes, replacing the “UPA” example$upa = Get-SPServiceApplication |?{$_.displayname -eq “UPA”}# Sets variable for service instance: enter…

3

How to query network adapter for IPv6 protocol?

Assuming you need it in script, PowerShell: # computername $MachineName = ‘localhost’   # open HKLM reg on $MachineName $reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey(‘LocalMachine’, $MachineName)   # open subKey SYSTEMCurrentControlSetservicesTCPIP6Linkage $regKey = $reg.OpenSubKey(“SYSTEM\CurrentControlSet\services\TCPIP6\Linkage”)   # get the values from the name ‘Bind’ # e.g. Device{A2B312D5-A133-4779-B21B-5B3ED82B6DCF} $bind = $regKey.GetValue(“bind”)   # get adapters that are IP enabled :…

0

Word 2010 switches to Draft view from Print Layout view when the computer is left idle for a couple of minutes

Some Word2010 users reported an interesting issue: You are viewing a document (with reviewing turned on) in Print Layout view, and after a few minutes, the view switches to Draft view and opens the comments window on the bottom. It usually happens when the computer is left idle for a couple of minutes or sometime seconds….

49

A Windows Live error occurred while provisioning for "mail@domain.com". An internal error occurred while talking to Windows Live

Symptom: You’ve implemented federation (AD FS) in your on-premises organization. You are doing a staged Exchange Migration (using a CSV file). You have migrated a couple of mail boxes from on-premises Exchange server to Plan E3.  But you start getting error: A Windows Live error occurred while provisioning for “mail@domain.com”. An internal error occurred while talking to Windows Live….

0

How to determine if current user is a domain or local user?

Assuming you need it in script, PowerShell:   (gwmiWin32_LogonSession).GetRelated(“Win32_UserAccount”)   If you expect more than one logon session, then   (gwmi Win32_Process -filter “Handle = $Pid”).GetRelated(“Win32_LogonSession”) |% {$_.GetRelated(“Win32_UserAccount”)}   will give you Win32_UserAccount for the account used to run current powershell instance.

3

Admin cannot upload profile picture after SP1 and June CU

Symptom: After SharePoint 2010 SP1 and June CUupgrade, when customer goes into Central Admin->manage user profile serviceapp->manage user profiles, select a user, he cannot uploaded their profilepicture any more, when he click choose picture and upload, it threw this error”There was an error saving the picture. Please try again later.”, hedoes not see anything in…

0

CA restore fails from time to time

Customers reported that their CA restore failed. The symptom is: When migrating the issuing CA using keys which protected by the nCiphers Security World Module Key it works using the existing certificate after first importing the certificate and assignment of private key using certutil -repair.  If private key requires interaction with the desktop, then associated…

0

OCS 2007 may not able to download address book after upgrading to IE9

Recently we noticed some customers reported that after upgrading to IE9 from IE8, Oiffice communicator can not  download the company address book. Well, you are not observing this issue in Lync Server/Client environment. Resolution: Generally, the ABS file is placed under “https” url, e.g. https://servername/abs/int/files/sample_Company_phone_Number_Normalization_rules.txt. So here are some actions you should take: 1. Make sure the…

0

Disabling offline files removes pinned items from Windows 7 task bar?

When I review the forum threads, I found an interesting issue about offline files and pinned items. Symptom: Users may not be able to pin items to their taskbar or Start menu, or pinned items may disappear the next time the user logs in if desktop is redirected to a network file server and offline…

10