Author: bunthoeurn

Bulk add member to Distribution List Exchange Online

Import-Csv “C:\Users\sinbunthoeurn\Downloads\Notification_.csv” | foreach{Add-DistributionGroupMember -Identity “.notification” -Member $_.email} Export Distribution-List member Get-DistributionGroupMember -Identity “Group HR Members” | Select Name,PrimarySmtpAddress,RecipientType, DisplayName | Export-Csv “C:\DDGMembers.csv” -NoTypeInformation Get-mailbox “sin@bunthoeurn.com” | FL guid Set-DistributionGroup -Identity “allhr@bunthoeurn.com” -AcceptMessagesOnlyFrom @{Add=”b73d0cfa-cc7f-4e44-98b8-70dfa371a9f5″}

Read More
update mobile phone number in AD

Get-ADUser -Identity “bunthoeurn” | Set-ADUser -MobilePhone “089 919 959” Set-ADUser[-WhatIf][-Confirm][-AccountExpirationDate ][-AccountNotDelegated ][-Add ][-AllowReversiblePasswordEncryption ][-AuthenticationPolicy ][-AuthenticationPolicySilo ][-AuthType ][-CannotChangePassword ][-Certificates ][-ChangePasswordAtLogon ][-City ][-Clear ][-Company ][-CompoundIdentitySupported ][-Country ][-Credential ][-Department ][-Description ][-DisplayName ][-Division ][-EmailAddress ][-EmployeeID ][-EmployeeNumber ][-Enabled ][-Fax ][-GivenName ][-HomeDirectory ][-HomeDrive ][-HomePage ][-HomePhone ][-Identity][-Initials ][-KerberosEncryptionType ][-LogonWorkstations ][-Manager ][-MobilePhone ][-Office ][-OfficePhone ][-Organization ][-OtherName ][-Partition ][-PassThru][-PasswordNeverExpires ][-PasswordNotRequired ][-POBox ][-PostalCode ][-PrincipalsAllowedToDelegateToAccount ][-ProfilePath

Read More
Open-source intelligence (OSINT)

Open-source intelligence (OSINT) refers to the practice of collecting, analyzing, and disseminating information that is publicly available and legally obtainable. ✅1. Threat Intelligience 101 >> https://lnkd.in/gfpd__xz✅2. URL, IP, domain, file hash >> https://lnkd.in/gNqxtn4d✅3. URL Sandbox >> https://urlscan.io/✅4. Cisco Reputation Check >> https://lnkd.in/g7uWdC5q✅5. Diagnostic & lookup tools >> https://mxtoolbox.com/✅6. Open Source IPS >> https://www.snort.org/✅7. CyberChef >>

Read More
Enable Online Archive

//// connect to exchange online powershell ///// Install exchange online management More Details:https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-protection-powershell?view=exchange-ps Connect to exchange online powershell with MFA Set-ExecutionPolicy RemoteSignedInstall-Module -Name ExchangeOnlineManagementImport-Module ExchangeOnlineManagementGet-Module ExchangeOnlineManagementUpdate-Module -Name ExchangeOnlineManagement Connect-ExchangeOnline -UserPrincipalName sin@domain.com -DelegatedOrganization youdomain.onmicrosoft.com /////// get retentionpolicy info /////// Get-Mailbox | FL RetentionPolicy /// get retentionholdeenable /////////// make it is set to false ////Get-Mailbox “sin@domain.com” |

Read More
How to check if my environment is hybrid?

Problem: You need to check if the environment you are working with is cloud-only, purely on-premises or if it implements any hybrid configuration. Solution: The hybrid environment in most cases refers to an Office 365 tenant perpetually connected with an on-premises infrastructure. Active Directory synchronization The primary feature that is being implemented in hybrid environments

Read More
How to: Manually Force Sync Azure AD Connect

Step 1: Start PowerShell Using any of these methods, or any other you may know of: WinKey + R (Run Dialog): powershell.exe Start Menu -> type ‘Powershell’, click it Navigate to C:\Windows\System32\WindowsPowerShell\V1.0\powershell.exe Step 2: (optional/dependent) Connect to the AD Sync Server If you’re running PowerShell on the Server where AD Connect is running, skip this

Read More