Wednesday, April 25, 2018

"The trust relationship between this workstation and the primary domain failed."

Getting the error

"The trust relationship between this workstation and the primary domain failed."

Try …

Fix 1 - "The trust relationship between this workstation and the primary domain failed." – Workgroup/AD – Windows 10
https://support.microsoft.com/en-us/help/2771040/the-trust-relationship-between-this-workstation-and-the-primary-domain

Fix 2 - "The trust relationship between this workstation and the primary domain failed." – GPO – Windows Legacy
https://blogs.technet.microsoft.com/reference_point/2012/11/22/the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/

Fix 3 - "The trust relationship between this workstation and the primary domain failed."
Test-ComputerSecureChannel -repair -credential domain\user
https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Management/Test-ComputerSecureChannel?view=powershell-4.0

Fix 4 - "The trust relationship between this workstation and the primary domain failed."
Reset-ComputerMachinePassword –server <DCname> -credential <DOMAIN\User>
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/reset-computermachinepassword?view=powershell-5.1

References

https://4sysops.com/archives/repair-the-domain-trust-relationship-with-test-computersecurechannel/

Monday, April 23, 2018

Controlling - Windows Updates

Found this from a PM on the Windows Server team. The "Available updates will be downloaded..." text in the UI is a bug that doesn't represent the actual automatic update settings.

To verify the actual server settings, you can open the command prompt and run sconfig.cmd; in the menu, you should see option 5 set to Manual.

Disabling AU via the registry is documented here: https://msdn.microsoft.com/en-us/library/dd939844(v=ws.10).aspx

reference - https://www.reddit.com/r/sysadmin/comments/57e184/windows_server_2016_updates_and_automatic_reboots/

Thursday, April 12, 2018

SharePoint and Active Directory

What Active Directory (AD) can SharePoint support is a good question.  In general Sharepoint is compatible with the Active Directory going all the way back to 2003 but the real issue is with Exchange support or Windows Server support.

SharePoint 2016 – AD (2016 – 2003)*

SharePoint 2013 – AD (2016 – 2003)*

SharePoint 2010 – AD (2016 – 2003)*

Active Directory 2016 2013 2010
2000
2003    X    X    X
2003 R2    X    X    X
2008    X    X    X
2008 R2    X    X    X
2012    X    X    X
2012 R2    X    X    X
2016    X    X    X

* Denotes missing supported documentation

Exchange Server Supportability Matrix
https://technet.microsoft.com/en-us/library/ff728623(v=exchg.150).aspx

image

image

Exchange Integration will require correct AD version
https://sharepoint.stackexchange.com/questions/62119/can-we-install-sharepoint-2013-with-2012-server-but-the-domain-controller-and-ex

image

Reference https://social.technet.microsoft.com/Forums/en-US/5bff126a-2310-49eb-87e9-857876590d3f/does-sharepoint-2010-support-ad-2016?forum=sharepointadminprevious

Windows Server: Active Directory Schema Versions
https://marclsitinfrablog.wordpress.com/windows-sharepoint-articles-posts/windows-server-articles-posts/windows-server-active-directory-schema-versions/

image

https://social.technet.microsoft.com/wiki/contents/articles/37395.active-directory-schema-versions.aspx

Windows Server Support Matrix (2013)

https://www.habaneroconsulting.com/stories/insights/2013/sharepoint-windows-support-matrix

Server 2016 2013 2010 2007 2003 2001
2016    X
2012 R2    X
2012    X
Win 8
2008 R2       X    X    S
Win 7    D
2008    S
Vista    D
2003 R2    X    X
2003    X    X
2000    X

X Supported
S Service Pack required
D Developer only

More from The Cloud Engineer

Create AD User in SharePoint
http://thecloudengineer.blogspot.com/2013/02/create-ad-user-in-sharepoint.html

Auditing in SharePoint
http://thecloudengineer.blogspot.com/2013/11/auditing-in-sharepoint.html

Wednesday, April 11, 2018

How to Customize Community Site

Repost from
https://web.archive.org/web/20160124184643/http://mysharepointinsight.blogspot.co.uk:80/2013/04/how-to-customize-you-community-site.html
How to customize you community site badges
In my previous two posts I have shown you how to customize  level achievements of your members on your community site, but there is one more achievement your members can receive - badges.
Badges are special awards that administrators of community sites can give to those members they feel have given extra efforts in the community. Once a member receives a badge it is displayed throughout the site like this:

Badges are nothing more then items in a list that contain just one field (Badge name). Administrators can add new badges or modify existing ones in that list. The list is also called Badges and is created automatically in your community site.
For example my Badges list contains two badges:

Now lets modify their looks. Once again you should find those images that you would like to represent your badges.
For example:

Then upload them somewhere to SharePoint where you can reach them from your community site (I have uploaded them to the Site Assets library of my community site). To make the solution more generic be sure to name your images with the same name of the badge they are representing (like Professional and Expert in my case).
To make those images appear as our badges we will add some javascript and CSS styles. Open your site in SharePoint designer and add this following javascript to your page header

<script type="text/javascript">
function setBadge() {
var badges = document.getElementsByClassName("ms-comm-giftedBadgeIcon");
var i = 0;
while (i < badges.length) {
try {
badges[i].src = "/mcs/SiteAssets/" + badges[i].title + ".jpg";
}
catch (err) { }
i = i + 1;
}
}
_spBodyOnLoadFunctionNames.push("setBadge");
</script>
Be sure to match your image extension if it is different from .jpg.
Also we will override two css styles, one for the image (.ms-comm-giftedBadgeIcon) and one for the text of the badge (.ms-comm-giftedBadgeText) to make any necessary adjustments (most likely image size).
This are my styles (I have also added them to my site master):

<style type="text/css">
.ms-comm-giftedBadgeIcon
{
width:50px;
}
.ms-comm-giftedBadgeText
{
color:Green !important;
font-weight:bold;
}
</style>
And here is my end result:


































Wednesday, March 14, 2018

Search Crawl and Index

image

SharePoint 2013 Search Topologies Explained - Agnes Molnar
https://blog.syskit.com/sharepoint-2013-search-topologies-explained

https://searchexplained.com/

References:

Office 365

How to Flag Items to be Crawled in Office 365 (2013 2016)
https://searchexplained.com/how-to-flag-items-to-be-crawled-in-office-365/

2016

Overview of search architecture in SharePoint Server
https://technet.microsoft.com/en-us/library/jj219738(v=office.16).aspx

2013

Search architectures for SharePoint Server 2013
http://www.microsoft.com/en-us/download/details.aspx?id=30374

Overview of search in SharePoint Server 2013
http://technet.microsoft.com/en-us/library/jj219738%28v=office.15%29.aspx

Configuring SharePoint 2013 Search Topology
http://blogs.technet.com/b/meamcs/archive/2013/04/09/configuring-sharepoint-2013-search-topology.aspx

SharePoint 2013: Scaling Out Enterprise Search Series
http://stevemannspath.blogspot.com/2013/06/sharepoint-2013-scaling-out-enterprise.html

More references … Thx Mike

SP2013: Understanding storage locations for files gathered by the Crawl Component
https://blogs.msdn.microsoft.com/sharepoint_strategery/2014/12/04/sp2013-understanding-storage-locations-for-files-gathered-by-the-crawl-component/

Search Crawler filling up drive, continuous crawls do nothing
https://sharepoint.stackexchange.com/questions/127943/search-crawler-filling-up-drive-continuous-crawls-do-nothing

Certain folders may have to be excluded from antivirus scanning when you use file-level antivirus software in SharePoint
https://support.microsoft.com/en-us/help/952167/certain-folders-may-have-to-be-excluded-from-antivirus-scanning-when-y

Managing the SP Gatherer’s temp files
https://blogs.technet.microsoft.com/searchguys/2012/09/18/managing-the-sp-gatherers-temp-files/

Problems with drive C running out of space after moving SharePoint Search Index to D drive
https://social.technet.microsoft.com/Forums/lync/en-US/6dfdbc41-48c3-48e6-a6d3-2a171fd49d27/problems-with-drive-c-running-out-of-space-after-moving-sharepoint-search-index-to-d-drive?forum=sharepointsearch

First is a quick high level flow of what happens at crawl time:

1. As the mssdmn.exe (gatherer) goes out and fetches content, it will store the data in the TempPath defined at this registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\15.0\Search\Global\Gathering Manager\TempPath

2. The mssearch.exe process will then perform a windows operation to Rename\Move the file to the path defined here at this registry key:

( Your "guid-crawl-x " will differ )

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\15.0\Search\Components\52ccea97-e96c-47ca-bcc4-737823da6e85-crawl-0\GathererDataPath

3. Once the Content Processing Component Processes this data, the mssearch should then delete the file from this path.

This is OK to use this method to move the locations where the "gatherer" writes it data to

$ssa.TempPath cmdlet has been removed
• To modify application path where mssdmn\mssearch writes to, the following registry keys should be modified:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\15.0\Search\Global\Gathering Manager\DefaultApplicationPath

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\15.0\Search\Components\{Both admin and crawl components}\LocalStoragePath

( your "admin" component key will be a GUID folder without anything like, xxxxx-crawl-xx, following it )

• After that search service should be restarted

net stop osearch15

net start osearch15

• and original folders:

C:\Program Files\Microsoft Office Servers Debug\15.0\Data\Office Server\Applications\{both admin and crawl components}

• should be removed
• ONLY modify these keys and on the Crawl Servers and Admin components..


Anthony Casillas