Install Exchange Online and Azure AD Modules in PowerShell

Managing Exchange Online and Azure Active Directory (Azure AD) from PowerShell requires installing and configuring specific modules. Below is a step-by-step guide to help you install and set up these modules efficiently. Install Exchange Online Management Module Get-Module -ListAvailable -Name ExchangeOnlineManagement Install-Module -Name ExchangeOnlineManagement -Force Update-Module ExchangeOnlineManagement Connect-ExchangeOnline Set-ExecutionPolicy RemoteSigned Uninstall-Module -Name ExchangeOnlineManagement Install Azure … Read more

Create a Windows Server Failover Cluster

https://learn.microsoft.com/en-us/windows-server/failover-clustering/create-failover-cluster This article shows how to create a failover cluster by using either the Failover Cluster Manager snap-in or Windows PowerShell. The article covers a typical deployment in which computer objects for the cluster and its associated clustered roles are created in Active Directory Domain Services (AD DS). If you’re deploying a Storage Spaces Direct … Read more

RDP Session has been disconnected reason code 0, 2, 5, 11, 12

A typical Event ID you may see when checking RDP connection event logs is Event ID 40. Event ID 40 is registered whenever a session is disconnected, that could be an interruption or the user disconnecting or logging off. Within the event text, we are given a reason code, which gives us detail on the disconnection, as … Read more

AD Connect Port Requirements.

Table 1 – Microsoft Entra Connect and On-premises AD This table describes the ports and protocols that are required for communication between the Microsoft Entra Connect server and on-premises AD. Protocol Ports Description DNS 53 (TCP/UDP) DNS lookups on the destination forest. Kerberos 88 (TCP/UDP) Kerberos authentication to the AD forest. MS-RPC 135 (TCP) Used … Read more

Windows 10 device with secure boot enabled shows as Not Compliant in Intune

https://learn.microsoft.com/en-us/troubleshoot/mem/intune/device-protection/secure-boot-enabled-device-shows-not-compliant Symptom You create a compliance policy for Windows 10 devices in Intune. You set the Require Secure Boot to be enabled on the device setting to Require. In this scenario, a Windows 10 device that meets the requirement is marked as Not Compliant. Check Secure Boot status To check the status of Secure Boot on your PC: Cause … Read more

DNS A Record by Failover Cluster or Event ID 1257 Cluster network name resource failed registration

https://learn.microsoft.com/en-us/answers/questions/193595/what-should-the-dns-record-be-set-to-when-adding-c https://learn.microsoft.com/en-us/answers/questions/306283/failover-cluster-is-adding-dns-a-record-for-cluste https://learn.microsoft.com/en-us/answers/questions/306283/failover-cluster-is-adding-dns-a-record-for-cluste Cluster network name resource failed registration of one or more associated DNS names(s) because the access to update the secure DNS Zone was denied. Cluster Network name: ‘Cluster Name’ DNS Zone: ‘<DomainName>’ Ensure that cluster name obiect (CNO) is granted permissions to the Secure DNS Zone. http://wiki.webperfect.ch/index.php?title=FailoverCluster:_EventID_1257_-_Cluster_network_name_resource_failed_registration Generally, Cluster IP addresses will … Read more

Query to Check the Percent Complete of a Backup Query Execution (From Azure)

Monitoring the progress of a database backup or restore operation in Azure SQL Server is crucial for effective database management. Knowing how far along the operation is allows administrators to estimate completion times and plan their tasks accordingly. Below, we discuss a T-SQL query that provides real-time insights into the progress of backup or restore … Read more

Event ID 46 Source: volmgr

This issue may occur if the computer boots without a configured dump file. The default dump file is the pagefile. During a clean Windows OS installation, the very first boot will hit this condition as the pagefile has not been set up yet. https://learn.microsoft.com/en-US/troubleshoot/windows-server/performance/event-id-46-start-a-computer

WSUS Registry Value Configuration

The Windows Server Update Services (WSUS) registry configuration is a critical component for managing Windows Update behaviour in enterprise environments. Configuring WSUS settings via the Windows Registry allows administrators to ensure that client systems use the appropriate update server and follow the desired update policies. Below is a detailed explanation of a WSUS registry configuration … Read more

NSG Flow Logs

https://learn.microsoft.com/en-us/azure/network-watcher/traffic-analytics https://azure.microsoft.com/en-us/pricing/details/monitor/ https://learn.microsoft.com/en-us/azure/azure-monitor/logs/basic-logs-configure?tabs=portal-1#set-a-tables-log-data-plan https://learn.microsoft.com/en-us/azure/azure-monitor/logs/basic-logs-query?tabs=portal-1#kql-language-limits https://learn.microsoft.com/en-us/azure/azure-monitor/logs/basic-logs-configure?tabs=portal-1#when-should-i-use-basic-logs https://learn.microsoft.com/en-us/azure/network-watcher/network-watcher-nsg-flow-logging-overview#how-nsg-flow-logs-work

Event ID 7006

This even ID 7006 and event error “scregsetvalueexw” might be related to Antivirus protection installed on the server. We suspect that the Antivirus self-defense doesn’t allow “services.exe” to modify the registry values which is the usual behavior of a protection software. We kindly recommend checking with the Antivirus team to proceed further with this issue. … Read more

LDAP Configuration

https://techcommunity.microsoft.com/t5/sql-server-blog/step-by-step-guide-to-setup-ldaps-on-windows-server/ba-p/385362 Click on Start –> Server Manager –> Add Roles and Features. Click Next. Choose Role-based or feature-based installation. Click Next. Select ldapstest server from the server pool. Click Next. Mark Active Directory Lightweight Directory Services from the list of roles and click Next. From the list of features, choose nothing – just click Next. … Read more

SCCM Not detecting Visual Studio 2019 Installation.

Enabling administrator updates to Visual Studio with Microsoft System Center Configuration Manager: Enabling administrator updates to Visual Studio with Microsoft Endpoint Configuration Manager Registry Keys Controlling Administrator Updates: Configure policies for enterprise deployments – Visual Studio (Windows) SCCM Available applications not detecting install – Microsoft Q&A Visual Studio Client Detector Utility download: Microsoft Update Catalog … Read more

Disable Microsoft Store in Windows 10/11 using Intune

Basics Tab In basics tab, we will provide information about the device configuration profile like Name and Description. Configuration settings Click on + Add settings and then search for Microsoft App store. This should list all settings related to Microsoft App store. Check Require Private Store Only and toggle the setting to Enable. OMA-URI setting to block Microsoft Store

Password expiration policies in Azure AD

Check the expiration policy for a password Get-AzureADUser -ObjectId | Select-Object @{N=”PasswordNeverExpires”;E={$_.PasswordPolicies -contains “DisablePasswordExpiration”}} Get-AzureADUser -All $true | Select-Object UserPrincipalName, @{N=”PasswordNeverExpires”;E={$_.PasswordPolicies -contains “DisablePasswordExpiration”}} Set a password to expire Get-AzureADUser -ObjectId | Select-Object @{N=”PasswordNeverExpires”;E={$_.PasswordPolicies -contains “DisablePasswordExpiration”}} Get-AzureADUser -All $true | Select-Object UserPrincipalName, @{N=”PasswordNeverExpires”;E={$_.PasswordPolicies -contains “DisablePasswordExpiration”}} Set a password to expire Set-AzureADUser -ObjectId -PasswordPolicies None Get-AzureADUser -All … Read more

Group Policy Screensaver setting isn’t working in Windows

This article helps work around an issue where the Screensaver doesn’t start after a Group Policy is configured to enable it in Windows. Applies to:   Windows 7 Service Pack 1, Windows Server 2012 R2Original KB number:   2616727 Symptoms A Group Policy is configured to enable Screensaver: User Configuration\Administrative Templates\Control Panel\Personalization\Enable screen saver But there’s no … Read more