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: