Posts

Showing posts from 2022

Onboarding Microsoft365 endpoints for Microsoft Defender365 using Active Directory Group Policy

Image
Onboarding Microsoft365 endpoints for Defender365 using Active Directory Group Policy First Download on boarding package from security.microosft.com Go to Settings and Endpoints Select Operating system for on-boarding In the Deployment method field, select Group policy. And Click Download Package Note: Extract the package at share location with read-only location that will be accessed by the devices, You Should named this folder OptionalParamsPolicy and the file WindowsDefenderATPOnboardingScript.cmd Create Group Policy using downloaded package  Go to Group policy management console Right Click Group Policy Objects then New Give then name (We are creating for Windows Client OS) Now Right Click newly created Group Policy Object (GPO) you want to configure and click Edit. In the Group Policy Management Editor, go to Computer configuration, then Preferences, and then Control panel settings. Right-click  Scheduled tasks , point to  New , and then click  I...

Unable to add SMTP address in Office365 (Detailed error message: Unable to update the specified properties for on-premises mastered Directory Sync objects or objects currently undergoing migration. )

Image
 Scenario: You have migrated from In-House Exchange server to Microsoft365 You Decommissioned you Exchange server You have disbaled/deleted users mailbox and want to add old users SMTP in Microsoft365 mailbox Exchange online error: While trying to add SMTP from Exchange online to Microsoft365 getting error “  Email address type update failed Error: Error executing request. An Azure Active Directory call was made to keep object in sync between Azure Active Directory and Exchange Online. However, it failed. Detailed error message: Unable to update the specified properties for on-premises mastered Directory Sync objects or objects currently undergoing migration. DualWrite (Graph) RequestId: The issue may be transient and please retry a couple of minutes later. If issue persists, please see exception members for more information. ” | You cannot directly add additional SMTP for Migrated users from Exchange Online because If you are syncing from your AD to Azure (using AAD...

How to Send email from Scanner or Custom Applications using Microsoft365 SMTP or MX record

Image
  How to Send Email from your Scanner/Custom Applications to Your Microsoft365 Email accouts  You can use Microsoft Direct send to mail directly from your printer or application to Microsoft 365 or Office 365 (direct send) Option 2 One important step, which is not point out in Microsoft Doc First allow your public IP in Anti-Spam policy 1.          Login to : https://security.microsoft.com 2.          Go to Policies & rules > Threat policies> Anti-spam policies 3.        Click Connection filter policy (Default) Edit and add Your public IP address in Allow List 4.        Click Save Now you can follow following steps and edit your printer or custom application SMPT to send scan email to you organization Microsoft365 users Following steps are copied from Microsoft Site, its make sence because .Above one important step Was not included ...

How to delete emails from Mailbox using Exchange PowerShell

Image
Go to Exchange Management Shell Use following Command How to delete emails by Subject line Search-Mailbox -Identity "Test@123.com" -SearchQuery 'Subject:"Your Subject"' –DeleteContent Confirm with Yes In status PS will show you result count and Size of total deletion   How to delete emails by from In status PS will show you result count and Size of total deletion   Search-Mailbox -Identity "Test@123.com" -SearchQuery 'Subject:"123@ABC.com"' –DeleteContent You also can delete all email from specific @domain from identified mailbox (Your Mailbox) by putting @Domain.com only Search-Mailbox -Identity "Test@123.com" -SearchQuery 'Subject:" @ABC.com"' –DeleteContent

How To Connect To Microsoft Teams Using PowerShell

Image
  Requirements ·       1   To Connect Teams you need PS5.1 or Higher (Recommended Latest version) ·          Download the latest version from following link and Install in your computer  o    https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2 ·           Once intallation is completed         2    Now open new PS> and Run following CME to update Module (Following CMD will install MS-Teams 4.3.0 Module in PS) Install-Module -Name MicrosoftTeams -RequiredVersion 4.3.0        3   Now connect to team using following CME and enter Connect-MicrosoftTeams        4   This will take you to your Microsoft account where you will login with your Microsoft365 ID and P...

How to save ping output into report using powershell

Image
 #Save PingStamp into Notepad using powershell Its very usefull sourse to capture pingstamp into notepad for monitoring your network or your critical services over the network. It is recommend if you create follder before appling commands  Create a folder where you will save all of your output C:\Pingstamp (I have created folder in C:Drive) Run following command in Powershell, It will create data file with all commands and results you get in PS. Start-Transcript -path C:/Pingstamp/PSLogs.txt –Append Now you can run any command to save output in txt. and here we are running following PS command to save ping with timestamp ping.exe -t shujjatshah.blogspot.com | foreach {"{0} - {1}" -f (Get-Date),$_} ping.exe -t DOMAIN NAME OR IP | foreach {"{0} - {1}" -f (Get-Date),$_} All above data is saved  PSLogs.txt file under C:\Pingstamp Thanks,