Import root CA into Jira or BitBucket keystore

Setup: Jira or BitBucket is installed. Problem: Jira or BitBucket needs to access external services eg. Active Directory protected by SSL and the connection is refused because the certificate is not trusted. Solution: Import the root CA of the certificate into the keystore. OBS. Replace the alias, the path to keystore and the .cer file […]

Read More

Update AD DNS records with PowerShell

Setup: Microsoft Active Directory DNS Problem: You want to update some DNS records via PowerShell as part of a script, useful for failover situations. Solution: Use the following PowerShell script

Read More

Reset a Domain Machine Account Password

Setup: A computer member in a domainProblem: “The trust relationship between this workstation and the primary domain failed” Solution:Login with local administrator on the computer and run this command: If you need to run this command on a remote computer try the following script. Important: You need to know the local admin password for that […]

Read More

How to clear the CCM Cache

System Center Configuration Manager (SCCM) client has a cache on the server. If needed this can be cleaned by following these steps: 1. Open Control Panel-> Configuration Manager. Press the Cache tab. 3. Change the location of future cached files, if needed, by clicking the ‘Change Location’ button and choosing a new location on your […]

Read More

Setting Moodle to work over SSL

Setup: You have a Moodle installed Problem: You and want to setup https only for entire website. NOTE: You need to enable HTTPS/SSL your website first !. Examples: http://www.iis.net/learn/manage/configuring-security/how-to-set-up-ssl-on-iis http://www.apache.com/www/how-to-setup-an-ssl-certificate-on-apache/ Solution: Locate config.php in web folder. Look for the line that shows: Change the http:// to https:// like the following: If you prefer to use […]

Read More

Copy file permissions with PowerShell

Setup: You want to copy all the permissions from one file to another with PowerShell Solution: Move to the folder of the source file Move to the folder of the destination file: This method is very useful for copying the permissions of .vhd files after you move/copy them between different folders/virtual machines. Before attaching a […]

Read More

SCCM – System discovery of an untrusted forest fails with 0x8007052E

Setup: You have SCCM 2012 deployed in Forest Alfa but you want to discover machines in forest Beta. Problem: You supply alternative credentials with the correct username and password for forest Beta but kept getting back a error – 0x8007052E – “Logon failure: unknown user name or bad password.” Solution: Use fqdn of Beta forest […]

Read More

Upgrade Timer job is exiting due to exception: Microsoft.SharePoint.Upgrade. SPUpgradeException: Action 4.0.14.0

Problem: When trying to upgrade the SharePoint to a higher service pack you encounter this error in the log [OWSTIMER] [SPUpgradeSession] [ERROR] [11/3/2014 2:56:24 PM]: Upgrade Timer job is exiting due to exception: Microsoft.SharePoint.Upgrade.SPUpgradeException: Action 4.0.14.0 of Microsoft.SharePoint.Upgrade.SPIisWebSiteWssSequence failed. —> System.Runtime.InteropServices.COMException (0x80070003): The system cannot find the path specified. One probably cause is the someone […]

Read More