Category: Microsoft
Category Archives: Microsoft
Using msal4j trying to send email (SMTP with OAUTH2) fails
I am trying to write a Java server application that should send emails using my account with msal4j.
I have tried to find solutions online but all sources are either pointing to very old solutions and Microsoft seem to propose only using MSAL so I try to do this with OAUTH2 authentication and send with Jakarta.mail.
I always end up with the error 535 5.7.3 Authentication unsuccessful (details below). What have I missed?
Created app in Microsoft Entra
Enabled SMTP Auth (admin did this since I am not admin myself on my account)
Added application API grant for Mail.Send and admin gave consent (also have added Mail.Send as delegate as a test)
In java code I have added the following dependencies
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>msal4j</artifactId>
<version>1.16.0</version>
</dependency>
<dependency>
<groupId>jakarta.mail</groupId>
<artifactId>jakarta.mail-api</artifactId>
<version>2.1.3</version>
</dependency>
In code I start with getting a token (in the code below I have added the silent try since I found that on Microsoft own example code).
private static String microsoftConnect(String strClientID, String strTenantID, String strClientSecret)
throws MalformedURLException, InterruptedException, ExecutionException {
ConfidentialClientApplication app = ConfidentialClientApplication
.builder(strClientID, ClientCredentialFactory.createFromSecret(strClientSecret))
.authority(“https://login.microsoftonline.com/” + strTenantID).build();
Set<String> SCOPE = Collections.singleton(“https://graph.microsoft.com/.default”);
IAuthenticationResult result;
try {
SilentParameters silentParameters = SilentParameters.builder(SCOPE).build();
// try to acquire token silently. This call will fail since the token cache does
// not
// have a token for the application you are requesting an access token for
result = app.acquireTokenSilently(silentParameters).join();
} catch (Exception ex) {
if (ex.getCause() instanceof MsalException) {
ClientCredentialParameters parameters = ClientCredentialParameters.builder(SCOPE).build();
// Try to acquire a token. If successful, you should see
// the token information printed out to console
result = app.acquireToken(parameters).join();
} else {
// Handle other exceptions accordingly
throw ex;
}
}
String strAccessToken = result.accessToken();
return strAccessToken;
}
* The above actually gives me a token and I try to use that in my SMTP send code below (commented can see various attempts but all fails)
private void microsoftSendMessage(String strClientID, String strAccessToken, String strFromEmail, List<String> lstTo,
List<String> lstCC, List<String> lstBCC, String strSubject, String strBody)
throws AddressException, MessagingException {
Properties props = new Properties();
props.put(“mail.smtp.auth”, “true”);
props.put(“mail.smtp.starttls.enable”, “true”);
props.put(“mail.smtp.starttls.required”, “true”);
props.put(“mail.smtp.host”, “smtp.office365.com”);
props.put(“mail.smtp.port”, “587”);
props.put(“mail.smtp.auth.mechanisms”, “XOAUTH2”);
props.put(“mail.smtp.auth.login.disable”, “true”);
props.put(“mail.smtp.auth.plain.disable”, “true”);
props.put(“mail.smtp.ssl.trust”, “smtp.office365.com”);
props.put(“mail.smtp.sasl.mechanisms.oauth2.oauthToken”, strAccessToken);
props.put(“mail.smtp.auth.xoauth2.disable”, “false”);
props.put(“mail.debug.auth”, “true”);
props.put(“mail.debug”, “true”);
props.put(“mail.transport.protocol”, “smtp”);
Session session = Session.getInstance(props);
Transport transport = session.getTransport(“smtp”);
// Alternative try, same error
// Session session = Session.getInstance(props, new Authenticator() {
// @Override
// protected PasswordAuthentication getPasswordAuthentication() {
// return new PasswordAuthentication(strFromEmail, strAccessToken);
// }
// });
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(strFromEmail));
addRecipient(message, Message.RecipientType.TO, lstTo); // This external code will add all the recipients
addRecipient(message, Message.RecipientType.CC, lstCC);
addRecipient(message, Message.RecipientType.BCC, lstBCC);
message.setSubject(strSubject);
message.setText(strBody);
transport.connect(“smtp.office365.com”, 587, strFromEmail, strAccessToken);
transport.send(message);
}
The SMTP debug is as follows
DEBUG: Jakarta Mail version 2.1.3
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host “smtp.office365.com”, port 587, isSSL false
220 GV3PEPF00002E53.outlook.office365.com Microsoft ESMTP MAIL Service ready at Tue, 9 Jul 2024 18:27:03 +0000
DEBUG SMTP: connected to host “smtp.office365.com”, port: 587
EHLO —hidden—
250-GV3PEPF00002E53.outlook.office365.com Hello [94.255.242.89]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
DEBUG SMTP: Found extension “SIZE”, arg “157286400”
DEBUG SMTP: Found extension “PIPELINING”, arg “”
DEBUG SMTP: Found extension “DSN”, arg “”
DEBUG SMTP: Found extension “ENHANCEDSTATUSCODES”, arg “”
DEBUG SMTP: Found extension “STARTTLS”, arg “”
DEBUG SMTP: Found extension “8BITMIME”, arg “”
DEBUG SMTP: Found extension “BINARYMIME”, arg “”
DEBUG SMTP: Found extension “CHUNKING”, arg “”
DEBUG SMTP: Found extension “SMTPUTF8”, arg “”
STARTTLS
220 2.0.0 SMTP server ready
EHLO —hidden—
250-GV3PEPF00002E53.outlook.office365.com Hello [—ip hidden—]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH LOGIN XOAUTH2
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
DEBUG SMTP: Found extension “SIZE”, arg “157286400”
DEBUG SMTP: Found extension “PIPELINING”, arg “”
DEBUG SMTP: Found extension “DSN”, arg “”
DEBUG SMTP: Found extension “ENHANCEDSTATUSCODES”, arg “”
DEBUG SMTP: Found extension “AUTH”, arg “LOGIN XOAUTH2”
DEBUG SMTP: Found extension “8BITMIME”, arg “”
DEBUG SMTP: Found extension “BINARYMIME”, arg “”
DEBUG SMTP: Found extension “CHUNKING”, arg “”
DEBUG SMTP: Found extension “SMTPUTF8”, arg “”
DEBUG SMTP: protocolConnect login, host=smtp.office365.com, user=—email hidden—, password=<non-null>
DEBUG SMTP: Attempt to authenticate using mechanisms: XOAUTH2
DEBUG SMTP: Using mechanism XOAUTH2
AUTH XOAUTH2 —hidden—
535 5.7.3 Authentication unsuccessful [GV3PEPF00002E53.SWEP280.PROD.OUTLOOK.COM 2024-07-09T18:27:09.118Z 08DCA02F0006D0D9]
Here is a screen shot on the API setup for my app. As far as I understand I need to add the Mail.Send for Application (I have added for delegation just in case but my app will work as a daemon so Application should be the correct approach)
Note that this issue seems related to a lot of other (unresolved) issues online. Some are older though using other authroities etc, like this one https://techcommunity.microsoft.com/t5/outlook/outlook-365-smtp-oauth/m-p/3667654#M13669.
Is there anyone using msal4j trying to send email via a registered app in Microsoft entra?
I am trying to write a Java server application that should send emails using my account with msal4j.I have tried to find solutions online but all sources are either pointing to very old solutions and Microsoft seem to propose only using MSAL so I try to do this with OAUTH2 authentication and send with Jakarta.mail. I always end up with the error 535 5.7.3 Authentication unsuccessful (details below). What have I missed? Created app in Microsoft EntraEnabled SMTP Auth (admin did this since I am not admin myself on my account)Added application API grant for Mail.Send and admin gave consent (also have added Mail.Send as delegate as a test)In java code I have added the following dependencies<dependency> <groupId>com.microsoft.azure</groupId> <artifactId>msal4j</artifactId> <version>1.16.0</version></dependency> <dependency> <groupId>jakarta.mail</groupId> <artifactId>jakarta.mail-api</artifactId> <version>2.1.3</version></dependency> In code I start with getting a token (in the code below I have added the silent try since I found that on Microsoft own example code). private static String microsoftConnect(String strClientID, String strTenantID, String strClientSecret)
throws MalformedURLException, InterruptedException, ExecutionException {
ConfidentialClientApplication app = ConfidentialClientApplication
.builder(strClientID, ClientCredentialFactory.createFromSecret(strClientSecret))
.authority(“https://login.microsoftonline.com/” + strTenantID).build();
Set<String> SCOPE = Collections.singleton(“https://graph.microsoft.com/.default”);
IAuthenticationResult result;
try {
SilentParameters silentParameters = SilentParameters.builder(SCOPE).build();
// try to acquire token silently. This call will fail since the token cache does
// not
// have a token for the application you are requesting an access token for
result = app.acquireTokenSilently(silentParameters).join();
} catch (Exception ex) {
if (ex.getCause() instanceof MsalException) {
ClientCredentialParameters parameters = ClientCredentialParameters.builder(SCOPE).build();
// Try to acquire a token. If successful, you should see
// the token information printed out to console
result = app.acquireToken(parameters).join();
} else {
// Handle other exceptions accordingly
throw ex;
}
}
String strAccessToken = result.accessToken();
return strAccessToken;
} * The above actually gives me a token and I try to use that in my SMTP send code below (commented can see various attempts but all fails)private void microsoftSendMessage(String strClientID, String strAccessToken, String strFromEmail, List<String> lstTo,
List<String> lstCC, List<String> lstBCC, String strSubject, String strBody)
throws AddressException, MessagingException {
Properties props = new Properties();
props.put(“mail.smtp.auth”, “true”);
props.put(“mail.smtp.starttls.enable”, “true”);
props.put(“mail.smtp.starttls.required”, “true”);
props.put(“mail.smtp.host”, “smtp.office365.com”);
props.put(“mail.smtp.port”, “587”);
props.put(“mail.smtp.auth.mechanisms”, “XOAUTH2”);
props.put(“mail.smtp.auth.login.disable”, “true”);
props.put(“mail.smtp.auth.plain.disable”, “true”);
props.put(“mail.smtp.ssl.trust”, “smtp.office365.com”);
props.put(“mail.smtp.sasl.mechanisms.oauth2.oauthToken”, strAccessToken);
props.put(“mail.smtp.auth.xoauth2.disable”, “false”);
props.put(“mail.debug.auth”, “true”);
props.put(“mail.debug”, “true”);
props.put(“mail.transport.protocol”, “smtp”);
Session session = Session.getInstance(props);
Transport transport = session.getTransport(“smtp”);
// Alternative try, same error
// Session session = Session.getInstance(props, new Authenticator() {
// @Override
// protected PasswordAuthentication getPasswordAuthentication() {
// return new PasswordAuthentication(strFromEmail, strAccessToken);
// }
// });
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(strFromEmail));
addRecipient(message, Message.RecipientType.TO, lstTo); // This external code will add all the recipients
addRecipient(message, Message.RecipientType.CC, lstCC);
addRecipient(message, Message.RecipientType.BCC, lstBCC);
message.setSubject(strSubject);
message.setText(strBody);
transport.connect(“smtp.office365.com”, 587, strFromEmail, strAccessToken);
transport.send(message);
} The SMTP debug is as followsDEBUG: Jakarta Mail version 2.1.3DEBUG SMTP: useEhlo true, useAuth trueDEBUG SMTP: trying to connect to host “smtp.office365.com”, port 587, isSSL false220 GV3PEPF00002E53.outlook.office365.com Microsoft ESMTP MAIL Service ready at Tue, 9 Jul 2024 18:27:03 +0000DEBUG SMTP: connected to host “smtp.office365.com”, port: 587EHLO —hidden—250-GV3PEPF00002E53.outlook.office365.com Hello [94.255.242.89]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8DEBUG SMTP: Found extension “SIZE”, arg “157286400”DEBUG SMTP: Found extension “PIPELINING”, arg “”DEBUG SMTP: Found extension “DSN”, arg “”DEBUG SMTP: Found extension “ENHANCEDSTATUSCODES”, arg “”DEBUG SMTP: Found extension “STARTTLS”, arg “”DEBUG SMTP: Found extension “8BITMIME”, arg “”DEBUG SMTP: Found extension “BINARYMIME”, arg “”DEBUG SMTP: Found extension “CHUNKING”, arg “”DEBUG SMTP: Found extension “SMTPUTF8”, arg “”STARTTLS220 2.0.0 SMTP server readyEHLO —hidden—250-GV3PEPF00002E53.outlook.office365.com Hello [—ip hidden—]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8DEBUG SMTP: Found extension “SIZE”, arg “157286400”DEBUG SMTP: Found extension “PIPELINING”, arg “”DEBUG SMTP: Found extension “DSN”, arg “”DEBUG SMTP: Found extension “ENHANCEDSTATUSCODES”, arg “”DEBUG SMTP: Found extension “AUTH”, arg “LOGIN XOAUTH2″DEBUG SMTP: Found extension “8BITMIME”, arg “”DEBUG SMTP: Found extension “BINARYMIME”, arg “”DEBUG SMTP: Found extension “CHUNKING”, arg “”DEBUG SMTP: Found extension “SMTPUTF8”, arg “”DEBUG SMTP: protocolConnect login, host=smtp.office365.com, user=—email hidden—, password=<non-null>DEBUG SMTP: Attempt to authenticate using mechanisms: XOAUTH2DEBUG SMTP: Using mechanism XOAUTH2AUTH XOAUTH2 —hidden—535 5.7.3 Authentication unsuccessful [GV3PEPF00002E53.SWEP280.PROD.OUTLOOK.COM 2024-07-09T18:27:09.118Z 08DCA02F0006D0D9] Here is a screen shot on the API setup for my app. As far as I understand I need to add the Mail.Send for Application (I have added for delegation just in case but my app will work as a daemon so Application should be the correct approach) Note that this issue seems related to a lot of other (unresolved) issues online. Some are older though using other authroities etc, like this one https://techcommunity.microsoft.com/t5/outlook/outlook-365-smtp-oauth/m-p/3667654#M13669. Is there anyone using msal4j trying to send email via a registered app in Microsoft entra? Read More
JSON Formatting Text to a Choice Pill
Hi Guys,
I have a very simple thing I just can’t work out how to do. I have a column called Warranty Expiration with a date. I have a Status field with very simple JSON formatting:
{
“$schema”: “https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json”,
“elmType”: “div”,
“children”: [
{
“elmType”: “span”,
“style”: {
“color”: “=if([$WarrantyExpiration] <= @now, ‘red’, if([$WarrantyExpiration] < @now + 2592000000, ‘orange’, ‘green’))”
},
“txtContent”: “=if([$WarrantyExpiration] <= @now, ‘Expired’, if([$WarrantyExpiration] < @now + 2592000000, ‘Due Soon’, ‘Current’))”
}
]
}
and it’s working fine … I have green text ‘Current’ for anything longer than 30 days away, Orange for under 30 days, and Red for Expired.
Ideally what I’d like is instead of just coloured text, is to have some coloured choice like pills i.e. Green Pill with Current written in it, Orange Pill with Due Soon, and a Red Pill saying expired.
Sounds simple – but I have no idea. Any help is appreciated! 😉
Hi Guys,I have a very simple thing I just can’t work out how to do. I have a column called Warranty Expiration with a date. I have a Status field with very simple JSON formatting:{
“$schema”: “https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json”,
“elmType”: “div”,
“children”: [
{
“elmType”: “span”,
“style”: {
“color”: “=if([$WarrantyExpiration] <= @now, ‘red’, if([$WarrantyExpiration] < @now + 2592000000, ‘orange’, ‘green’))”
},
“txtContent”: “=if([$WarrantyExpiration] <= @now, ‘Expired’, if([$WarrantyExpiration] < @now + 2592000000, ‘Due Soon’, ‘Current’))”
}
]
} and it’s working fine … I have green text ‘Current’ for anything longer than 30 days away, Orange for under 30 days, and Red for Expired. Ideally what I’d like is instead of just coloured text, is to have some coloured choice like pills i.e. Green Pill with Current written in it, Orange Pill with Due Soon, and a Red Pill saying expired.Sounds simple – but I have no idea. Any help is appreciated! 😉 Read More
Copilot in Teams – Meeting Notes
I have started using Copilot in Teams this month and it’s a very good experience so far.
I am trying to capture the transcript for most of the meetings I attend.
Here is a question I have.
How to capture the meeting notes and action items (Highlighting the action items I own) on a regular basis? Meaning, I want to maintain the notes and action items like diary and go thru it periodically.
I tried to generate the notes thru copilot based on the transcripts history but it’s not accurate.
Any suggestions?
Best Regards
I have started using Copilot in Teams this month and it’s a very good experience so far.I am trying to capture the transcript for most of the meetings I attend.Here is a question I have.How to capture the meeting notes and action items (Highlighting the action items I own) on a regular basis? Meaning, I want to maintain the notes and action items like diary and go thru it periodically.I tried to generate the notes thru copilot based on the transcripts history but it’s not accurate.Any suggestions? Best Regards Read More
SQL Server 2022 分散型可用性グループにおける同期失敗
こんにちは。SQL Server サポート チームです。
今回は、分散型可用性グループにおける同期が突然失敗する事象についてご紹介します。
事象
SQL Server 2022 で分散型可用性グループを構成し FILESTREAM を使用している環境において、正常に稼働していた分散型可用性グループが突如同期に失敗し、同期の状態が NOT_HEALTHY になります。
<事象発生構成>
・SQL Server 2022
・分散型可用性グループ
・FILESTREAM
原因
前提として、FILESTREAM の機能はログの順序性が重要になっています。
SQL Server 2022 より、パフォーマンス向上を目的に分散型可用性グループ間で、下記の弊社公開情報に記載している通り複数の TCP 接続を使用できるようになりました。
SQL Server 2022 の新機能により複数の TCP セッションからログを転送することで、FILESTREAM の内部的なログの順序がずれてしまうことで、同期に異常が発生することが原因です。
SQL Server 2022 (16.x) の新機能
– 可用性
https://learn.microsoft.com/ja-jp/sql/sql-server/what-s-new-in-sql-server-2022#availability
*****
分散型可用性グループ – tcp 待機時間が長いリモート リンク間のネットワーク帯域幅使用率を向上させるために、複数の TCP 接続を使用するようになりました。
*****
対処策
本事象の対処策は、トレースフラグ 5597 を設定することです。
トレースフラグ 5597 は、SQL Server 2022の新機能(分散型可用性グループにおける複数TCP使用) を無効するのみで、以前のバージョンと同等な動作となり、他への影響はありません。
変更手順
トレースフラグ 5597 の設定方法は、以下の通りです。
トレースフラグ設定方法
——————————–
1) SQL Server Configuration Manager (構成マネージャー)を起動します。
2) SQL Serverのサービス-> SQL Server (MSSQLSERVER もしくは インスタンス名) を右クリックし、プロパティを開きます。
3) [起動時のパラメーター] タブの[起動時のパラメーターの指定] ボックスに下記の値を入力し、[追加] をクリックします。
-T5597
5) [OK]をクリックし、設定を確定します。設定は、次回SQL Server サービス起動後に有効になります。
Microsoft Tech Community – Latest Blogs –Read More
Filter Already Archived Teams
Hi,
I have a script to add MS groups that are teams enabled to a SP list.
However it’s adding items that are already archived, I only want it to add items that haven’t been archived?
I am getting the usage records and checking if that group ID has an ID also in Teams so I know that it’s a teams enabled group or not.
I think there is a isArchived parameter in Get-Team that could be used but I don’t know how to write the code?
# Check and validate each M365 Group
#
#####
ForEach ($UsageRecord in $UsageData) {
Write-Output “Proceed list entry $($Counter) from $($Count)…”
if ($UsageRecord.’Is Deleted’ -eq “True”) {
$Counter++
continue
}
# Get Group ID and validate if it is Teams enabled
$GroupId = $UsageRecord.”Group Id”
$TeamsEnabled = $AllTeams | Where-Object {$_.Id -eq $GroupId}
if (!$TeamsEnabled) {
Write-Output “M365 Group with Id $($GroupId) is not Teams enabled- skip this record”
continue
}
$Archived = $AllTeams | Where-Object ($_.Id -eq $GroupId )
Thanks,
Richard
Hi, I have a script to add MS groups that are teams enabled to a SP list. However it’s adding items that are already archived, I only want it to add items that haven’t been archived? I am getting the usage records and checking if that group ID has an ID also in Teams so I know that it’s a teams enabled group or not. I think there is a isArchived parameter in Get-Team that could be used but I don’t know how to write the code? # Check and validate each M365 Group
#
#####
ForEach ($UsageRecord in $UsageData) {
Write-Output “Proceed list entry $($Counter) from $($Count)…”
if ($UsageRecord.’Is Deleted’ -eq “True”) {
$Counter++
continue
}
# Get Group ID and validate if it is Teams enabled
$GroupId = $UsageRecord.”Group Id”
$TeamsEnabled = $AllTeams | Where-Object {$_.Id -eq $GroupId}
if (!$TeamsEnabled) {
Write-Output “M365 Group with Id $($GroupId) is not Teams enabled- skip this record”
continue
}
$Archived = $AllTeams | Where-Object ($_.Id -eq $GroupId ) Thanks,Richard Read More
my pc has error
it turns off and says issue with my windows insider
it turns off and says issue with my windows insider Read More
Users are getting Access Denied if they try to access th site without specifying the home page name
I have a communication online sharepoint site, and i defined some users to have access (Read-Only) to only the home page nothing else. now the users can access the home page using this full url (by specifying the page name inside the url):-
https://*****.sharepoint.com/sites/SalesHub/SitePages/TopicHome.aspx
but if they try to access the site url only :-
https://*****.sharepoint.com/sites/SalesHub/
They will get Access Denied, as follow:-
although the TopicHome is the home page of the site.. any advice?
I have a communication online sharepoint site, and i defined some users to have access (Read-Only) to only the home page nothing else. now the users can access the home page using this full url (by specifying the page name inside the url):- https://*****.sharepoint.com/sites/SalesHub/SitePages/TopicHome.aspx but if they try to access the site url only :-https://*****.sharepoint.com/sites/SalesHub/ They will get Access Denied, as follow:- although the TopicHome is the home page of the site.. any advice? Read More
DNS configuration in Azure With an Azure DC VM
Hi,
I’m thinking about to create an architecure for a customer who want to migrate all onpremise ressources to Azure.
Currently, they have 1 DC, 1 Connection Broker, 7 RDS and 1 app servers (All running on Windows 2016).
We want to use AVD with FSlogix in Azure Files but for Azure Files, we need to have a domaine service like ADDS, Entra DS or now we can use Microsoft Entra Kerberos but users still need to be hybrid with ADDS.
I don’t want to use Entra DS because there is no SSO with M365 app on AVD and for 100 users I want to automate the process.
So in my test lab, I deployed an Azure VM to act as a DC (For a reason that I don’t know, DNS Role wasn’t installed after promoted as DC).
In my vnet and for the VM we use default dns provide by Azure.
I would like to know if I need to install DNS role on this VM or can I setup Private DNS Zone with maybe DNS private resolvers to be in the modern world.
In the future the customer will be connect with a site to site VPN to Azure but There will be no more local servers.
Thank you for you help.
Sim
Hi, I’m thinking about to create an architecure for a customer who want to migrate all onpremise ressources to Azure.Currently, they have 1 DC, 1 Connection Broker, 7 RDS and 1 app servers (All running on Windows 2016). We want to use AVD with FSlogix in Azure Files but for Azure Files, we need to have a domaine service like ADDS, Entra DS or now we can use Microsoft Entra Kerberos but users still need to be hybrid with ADDS. I don’t want to use Entra DS because there is no SSO with M365 app on AVD and for 100 users I want to automate the process. So in my test lab, I deployed an Azure VM to act as a DC (For a reason that I don’t know, DNS Role wasn’t installed after promoted as DC).In my vnet and for the VM we use default dns provide by Azure.I would like to know if I need to install DNS role on this VM or can I setup Private DNS Zone with maybe DNS private resolvers to be in the modern world. In the future the customer will be connect with a site to site VPN to Azure but There will be no more local servers. Thank you for you help. Sim Read More
Solution for Low Disk Space Notifications on Student Devices to admins
I need a solution to get notified when a device has less than 5GB of space remaining with device name. As admins, we want to proactively address these devices. I’ve looked into compliance policies, but the student devices do not have a primary user since we’ve used provisioning packages to enroll them in Intune, and they are 1-to-1 devices without a designated primary user.
Is there a solution within Azure, Office 365, or Intune that can achieve this? If so, how would it be implemented?
Hi all,I need a solution to get notified when a device has less than 5GB of space remaining with device name. As admins, we want to proactively address these devices. I’ve looked into compliance policies, but the student devices do not have a primary user since we’ve used provisioning packages to enroll them in Intune, and they are 1-to-1 devices without a designated primary user.Is there a solution within Azure, Office 365, or Intune that can achieve this? If so, how would it be implemented? Read More
Prefilled Links – Wrong Data on Multiple Responses
We have a Business workflow where we send out Links to prefilled MS Forms automatically (using MS Power Automate). This works fine as long as one person only gets one link.
As soon as one Person gets two links with different Values in the prefilled Link we experience the following behaviour:
The first Link works fine – the correct data is prefilled in the formWhen you click the second link though, you get the data from the first link prefilled into the MS Form (it is probably saved in a cookie or session)
This is very inconvenient as we need to enter Names and Order Identifiers into the Form. The Form Answers are also automatically processed so any Misspelling or Typo will result in extra manual work for us.
I see this as a bug and there should be a way to fix it. Thank you already for any effort to resolve this issue.
We have a Business workflow where we send out Links to prefilled MS Forms automatically (using MS Power Automate). This works fine as long as one person only gets one link. As soon as one Person gets two links with different Values in the prefilled Link we experience the following behaviour: The first Link works fine – the correct data is prefilled in the formWhen you click the second link though, you get the data from the first link prefilled into the MS Form (it is probably saved in a cookie or session)This is very inconvenient as we need to enter Names and Order Identifiers into the Form. The Form Answers are also automatically processed so any Misspelling or Typo will result in extra manual work for us.I see this as a bug and there should be a way to fix it. Thank you already for any effort to resolve this issue. Read More
Restore information and wipe drive from Failed Laptop
I have a Windows 11 Laptop with a Microsoft Login account that uses the PIN function.
The laptop has a burned CPU.
I have taken the NVME Drive out, put it in a USB Caddy and plugged it in to another PC. The other PC uses the exact same Windows Account and PIN to Login.
I have tried to access the folder inside the “Users” Folder and no succes. I was starting to reconcile with the idea that I wont be able to access a very specific folder on the Desktop and decided to reset the drive with DISKPART. used the CLEAN command, used FORMAT as well.. No Success i cant revert the drive either to a “Factory” State so i can make a new Windows Instal.. No success either while trying to do a Clean Windows Install. The drive has 5 partitions and wont allow me to remove them either.
I believe it has something to do with the Microsoft Account…
Any Ideas are well received on both : Getting the data out / Reverting the drive to factory state so i can use it for a new windows install.
I have a Windows 11 Laptop with a Microsoft Login account that uses the PIN function.The laptop has a burned CPU. I have taken the NVME Drive out, put it in a USB Caddy and plugged it in to another PC. The other PC uses the exact same Windows Account and PIN to Login. I have tried to access the folder inside the “Users” Folder and no succes. I was starting to reconcile with the idea that I wont be able to access a very specific folder on the Desktop and decided to reset the drive with DISKPART. used the CLEAN command, used FORMAT as well.. No Success i cant revert the drive either to a “Factory” State so i can make a new Windows Instal.. No success either while trying to do a Clean Windows Install. The drive has 5 partitions and wont allow me to remove them either.I believe it has something to do with the Microsoft Account… Any Ideas are well received on both : Getting the data out / Reverting the drive to factory state so i can use it for a new windows install. Read More
Can I get the Windows 11 snap feature back?
I don’t like the new snap features, so I’ve turned them off.
I used every so often the simple snap feature of having one folder snap to the right of the screen, and another snap to the left.
I can’t seem to get this simple feature to work anymore.
Can I get it back?
I don’t like the new snap features, so I’ve turned them off.I used every so often the simple snap feature of having one folder snap to the right of the screen, and another snap to the left.I can’t seem to get this simple feature to work anymore.Can I get it back? Read More
How do I remove Local Time portion of taskbar clock popup
I apologize if this is the incorrect place to address this issue. I am using Windows 11, Version 23H2 OS Build 22631.3880. The updates are current through KB5040442. I am not sure when this first appeared, maybe around KB5039302.
How do I remove the Local Time portion of the popup portion of the Time/Date when I hover over the System Tray?
I am beyond fed-up with Microsoft adding these enhanced and useless features that add no useful functionality to their Windows OS. As if I don’t know what my local time is! It’s right there in the System Tray!
Thank you for any assistance.
I apologize if this is the incorrect place to address this issue. I am using Windows 11, Version 23H2 OS Build 22631.3880. The updates are current through KB5040442. I am not sure when this first appeared, maybe around KB5039302. How do I remove the Local Time portion of the popup portion of the Time/Date when I hover over the System Tray? I am beyond fed-up with Microsoft adding these enhanced and useless features that add no useful functionality to their Windows OS. As if I don’t know what my local time is! It’s right there in the System Tray! Thank you for any assistance. Read More
Where are microsoft shortcuts stored
I don’t mean right click on a shortcut to find the exe location. I mean the actual windows folder where all the shortcuts are listed.
Could do with help on this. I did find C:UsersUserDesktop. I tried renaiming it _Desktop but when I rebooted the desktop icons are still there.
I don’t mean right click on a shortcut to find the exe location. I mean the actual windows folder where all the shortcuts are listed. Could do with help on this. I did find C:UsersUserDesktop. I tried renaiming it _Desktop but when I rebooted the desktop icons are still there. Read More
I am concerned my monitor is dying!
I’ve been using an Asrock PG27FF1A monitor, which is about 2 years old, as my secondary display. I’ve had it set up in a vertical orientation for quite some time. Recently, while playing Baldur’s Gate 3, I noticed a significant line on the screen that wasn’t there before.
I’ve tried troubleshooting the issue by swapping out the cable, trying a different port, and even testing it with my laptop, but the line remains. Given this sudden appearance of a problem and the fact that the monitor didn’t suffer any visible physical damage, I’m concerned that it might be on its way out.
I’ve been using an Asrock PG27FF1A monitor, which is about 2 years old, as my secondary display. I’ve had it set up in a vertical orientation for quite some time. Recently, while playing Baldur’s Gate 3, I noticed a significant line on the screen that wasn’t there before. I’ve tried troubleshooting the issue by swapping out the cable, trying a different port, and even testing it with my laptop, but the line remains. Given this sudden appearance of a problem and the fact that the monitor didn’t suffer any visible physical damage, I’m concerned that it might be on its way out. Read More
What is the data recovery software for PC Windows 11/10?
My kid accidentally deleted several important folders on my Windows 11 PC, and I need to recover them as soon as possible. Unfortunately, these folders contained critical data for my work, and I didn’t have a recent backup.
I’m searching for a reliable data recovery software for PC that works well on Windows 11 or Windows 10. There seem to be many options out there, and I’m not sure which one to choose. Can anyone recommend an effective and user-friendly data recovery tool that can help me retrieve these deleted folders?
Thank you
My kid accidentally deleted several important folders on my Windows 11 PC, and I need to recover them as soon as possible. Unfortunately, these folders contained critical data for my work, and I didn’t have a recent backup. I’m searching for a reliable data recovery software for PC that works well on Windows 11 or Windows 10. There seem to be many options out there, and I’m not sure which one to choose. Can anyone recommend an effective and user-friendly data recovery tool that can help me retrieve these deleted folders? Thank you Read More
Bookings and Staff working time an hour apart
It looks like I have a problem where the Booking Slots are in UTC, but staff member’s availability is BST. This means I cannot book an all day appointment because a staff member’s availability begins at 1am, rather than 12am. Is there a way round this? Should I set the staff member’s timezone to UTC? Thanks.
Edit: I think I should say this problem only appears to have recently surfaced, perhaps in the past few days, as we switched to BST in the UK back in March. I wonder if Microsoft have made changes to cause this.
It looks like I have a problem where the Booking Slots are in UTC, but staff member’s availability is BST. This means I cannot book an all day appointment because a staff member’s availability begins at 1am, rather than 12am. Is there a way round this? Should I set the staff member’s timezone to UTC? Thanks. Edit: I think I should say this problem only appears to have recently surfaced, perhaps in the past few days, as we switched to BST in the UK back in March. I wonder if Microsoft have made changes to cause this. Read More
Multi tenant and Teams collaboration
A customer of ours have bought a company that also has its own 365 tenant.
For now they are not able to merge the tenants due to some contracts with the bought up company’s CSP.
The CEO in the company want to be able to collaborate with the new company (mostly in Teams) without doing the tenant switching.
Is this possible with the cross tenant sync, and use the already existing teams and channels (they have no shared channels)?
I have set up cross tenant sync, and sharing a Shared Channel from “Tenant B” to a user in “Tenant A” works without having to do the tenant switch.
If I try to share a Team, or a Private/Public Channel, the Team/Channel will not show in Teams of the user in “Tenant A”, unless the user switch to “Tenant B”. Is this by design, or is it possible to do?
A customer of ours have bought a company that also has its own 365 tenant.For now they are not able to merge the tenants due to some contracts with the bought up company’s CSP. The CEO in the company want to be able to collaborate with the new company (mostly in Teams) without doing the tenant switching. Is this possible with the cross tenant sync, and use the already existing teams and channels (they have no shared channels)? I have set up cross tenant sync, and sharing a Shared Channel from “Tenant B” to a user in “Tenant A” works without having to do the tenant switch. If I try to share a Team, or a Private/Public Channel, the Team/Channel will not show in Teams of the user in “Tenant A”, unless the user switch to “Tenant B”. Is this by design, or is it possible to do? Read More
Viva sending notification on Teams when News posted in SharePoint Online site
Hi,
Many users complaining that they are receiving News posts notifications/alerts on Teams from one on the specific SPO site via Viva.
I am also part of that site, but I am not getting such notifications from that SPO site on my Teams.
My queries: 1. How to stop sending News posts notifications from that specific SPO site because users are annoyed.
2. Why I am not receiving those notifications (Viva setting is on for my Teams).
Need your help.
Hi,Many users complaining that they are receiving News posts notifications/alerts on Teams from one on the specific SPO site via Viva.I am also part of that site, but I am not getting such notifications from that SPO site on my Teams. My queries: 1. How to stop sending News posts notifications from that specific SPO site because users are annoyed.2. Why I am not receiving those notifications (Viva setting is on for my Teams). Need your help. Read More