All about Information Technology infrastructure and system. Helpdesk & support issue, deployment guide, and daily activity in managing an information technology operation.
Search This Blog
Thursday, December 9, 2021
Azure B2B Script to create Guest On-Prem Active Directory Account is Not Working
Error when using PowerShell Connect-MgGraph not recognized
Description:
You already install the Microsoft Graph PowerShell SDK on your machine. However when trying to run a script that has "Connect-MgGraph" command, you encountered not recognized cmdlet, function, script error. You have also restarted the machine and make sure the Microsoft Graph Module was loaded.
Resolution:
There might be some conflict between Microsoft Graph module and other module on your machine. The possible conflict are with Azure AD or MSOnline modules.
Try to install the Microsoft Graph PowerShell SDK on other machine which has minimum or has only the default PowerShell module.
Wednesday, December 8, 2021
Intermittent ADFS Event ID 224 & 245 at WAP Server
Description:
At Web Application Proxy Server (WAP) configured to connect to ADFS, you saw several Event ID 224 & 245 intermittently appear. TCP Port 443 are already open between WAP and ADFS.
Resolution:
Make sure you have all the required certificate on WAP server, including the intermediate and trusted root of the SSL certificate.
Tuesday, December 7, 2021
Error 1297 when starting AD FS Service
Description:
When you try to start ADFS Service for the first time after finishing the configuration, you may encounter 1297 error.
Resolution:
You need to make sure that the service account that you use to run the ADFS Service has the following rights on the ADFS Server:
- Logon As Service
- Generate Security Audits
How to set mutisubnetfailover option on ADFS to SQL Database connection string
Description:
You want to use SQL Always On capability for your application.
You need to change the Database Connection string.
Resolution:
Please run the following at PowerShell on all ADFS Server (one by one):
$temp= Get-WmiObject -namespace root/ADFS -class SecurityTokenService
$temp.ConfigurationdatabaseConnectionstring=”data source=<you sql instance>;multisubnetfailover=true;initial catalog=adfsconfiguration;integrated security=true”
$temp.put()
Set-AdfsProperties –artifactdbconnection ”Data source=<you sql instance>;multisubnetfailover=true;Initial Catalog=AdfsArtifactStore;Integrated Security=True”