Home
Microsoft 365
Windows
Linux
Powershell
Virtualization
Cloud Computing
    Citrix XenApp
    Citrix Xendesktop
Useful links
About
ajni.IT -
  • Home
  • Microsoft 365
  • Windows
  • Linux
  • Powershell
  • Virtualization
  • Cloud Computing
    • Citrix XenApp
    • Citrix Xendesktop
  • Useful links
  • About

Automatic program start at logon with GPOs

November 28, 2020 by AJNI No Comments

You can easily run one or multiple programs at logon without messing with the Registry by using Group Policy Object (GPOs).

Under User (or Computer) configuration > Administrative Templates > System > Logon > Run these programs at user logon you can insert the path of the executable. Very clean and straight forward.

Reading time: 1 min

Reset Computer Secure Channel of a Domain Computer with one PowerShell command

November 14, 2020 by AJNI No Comments

You probably have stumbled upon this common problem: When logging into a Domain Computer with a Domain user, this error appears: The trust relationship between this workstation and the primary domain failed.

What does it mean? Well, it basically means that the Domain Computer cannot authenticate against Active Directory, because the Computer Account password on the workstation is not valid anymore (this can occur when using Sytem Restore or when restoring from a backup).

How do you solve this issue? Pretty easy. Just remove the computer from the Domain and re-join. That works, but there is a cleaner and faster solution with one line of PowerShell code:

Test-ComputerSecureChannel -Repair -Credential (Get-Credential)

You will need to enter domain user credentials that can create or modify computer accounts in the Active Directory Domain.

You can check if the password of the Domain computer changed by viewing the attribute pwLastSet in the Attribute Editor.

Reading time: 1 min

Let Outlook connect to Exchange Online instead of Exchange On-Prem

November 9, 2020 by AJNI No Comments

If a computer is in an Active Directory Domain environment with Exchange On-Prem installed, Outlook clients might connect to local Exchange instead of Exchange Online, because they query Active Directory first.

This Registry key will avoid SCP Lookup in Active Directory.

HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover
DWORD ExcludeSCPLookup 1

If you are curious, SCP is located here (you can view it with ADSIEdit inside the Configuration Partition):

CN=Services, CN=Microsoft Exchange,CN=Organization, CN=Administrative Groups,CN=Exchange Administrative Group, CN=Servers,CN=YourServer,CN=Protocols,CN=Autodiscover,

References:

https://jacob.gardiner-moon.co.uk/2016/06/13/outlook-autodiscover-connecting-local-exchange-server-instead-office-365/

Reading time: 1 min

Tip Of the Day

  • Joining Windows 10 to an Azure Active Directory Domain

    5 hours ago

Recent Posts

  • Joining Windows 10 to an Azure Active Directory Domain
  • Enable passwordless login to Microsoft Account with Microsoft Authenticator
  • Set up your Business Email with Microsoft 365/Exchange Online
  • AD Group Membership into a CSV/Excel
  • Microsoft AlwaysOn VPN Deployment

Categories

  • Azure (7)
  • Citrix XenApp (6)
  • Citrix Xendesktop (4)
  • Cloud Computing (19)
  • Coding (1)
  • Hyper-V (5)
  • Linux (8)
  • Microsoft 365 (3)
  • Powershell (8)
  • Security (2)
  • VDI (4)
  • Virtualization (12)
  • VMware (5)
  • Windows (17)
  • Windows Client OS (14)
  • Windows Server (24)

Archives

  • March 2021
  • February 2021
  • December 2020
  • November 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019

ajni IT © 2019