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 →

Take back ownership of an orphan Teams private channel

Setup: O365 tenant with Teams Problem: There is a private channel in a Team that is orphan – last owner left and no other user is part of that channel Solution: Run the following PowerShell commands OBS. You need to run both commands in this order. To change the owner of the SharePoint site associated […]

Read More →

Restrict Microsoft Graph – Mail.Send permission to only one user

Setup: Microsoft 365 tentant. One application wants to send emails via Graph API. Problem: Assigning Mail.Send Graph permission is very dangerous if is not restricted to one user. By default that application can send on behalf of every user in organization. Solution: Before granting the consent as GA for the permission do the following to […]

Read More →

Website security scanning

Website security scanning is necessary to find out if a website has any loopholes. These holes can be found by looking for hacker-friendly URLs and malvertising, as well as malware that is present on the website. Website security scanning should go beyond one-time scans – it should be done regularly so that new holes don’t […]

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 →

Export a list with all videos from Microsoft Stream

Setup: Tenant in O365 with Stream Problem: How to export a list with all the videos from Microsoft Stream into a CSV. Microsoft does not provide an API for this. Solution: Fort this task you need to use a combination of tools: PowerShell and Chrome. Step1. Load in Chrome the Stream admin https://web.microsoftstream.com/admin?view=Administrators . Inspect […]

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 →