You can use the built-in Send-MailMessage cmdlet to send SMTP e-mails from PowerShell (previously you can use the .Net System.Net.Mail
class to send e-mail messages). Send-MailMessage allows you to send messages with attachments, use HTML format for the body of the message, enable delivery notification, send a message to multiple recipients at once, etc. In this article, we’ll see how to use the Send-MailMessage
cmdlet to send e-mail messages from within your PowerShell scripts.
- Group PoliciesPowerShellWindows 10Windows Server 2019
Clear Cache and Temp Files in User Profiles on Windows (RDS) with PowerShell and GPO
March 21, 2023Windows Server RDS farm administrators are often faced with the problem of running out of space on a system drive due to a large amount of user data. This article…
- Azure and Microsoft 365PowerShell
Prevent Users from Creating New Groups in Microsoft 365 (Teams/Outlook)
March 17, 2024By default, any user from your Azure tenant can create Microsoft 365 groups. When a user creates a new Microsoft 365 group, additional resources are automatically created: a Teams group,…
Locks in MS SQL Server are one way to ensure the integrity of data when changes are made by multiple users at the same time. MSSQL locks objects on a…
- Windows 10Windows 11Windows Server 2019
Copy/Paste Not Working in Remote Desktop (RDP) Clipboard
March 17, 2024You can use the clipboard in an RDP session to copy/paste text and files between a local computer and a remote host (this can be either a Windows workstation or…
- Active DirectoryGroup PoliciesWindows 10Windows Server 2019
How to Disable NTLM Authentication in Windows Domain
March 16, 2024NTLM (NT LAN Manager) is a legacy Microsoft authentication protocol that dates back to Windows NT. Although Microsoft introduced the more secure Kerberos authentication protocol back in Windows 2000, NTLM…
- Azure and Microsoft 365ExchangePowerShell
How to Block Sender Domain or Email Address in Exchange and Microsoft 365
March 17, 2024An email system based on on-premises Exchange Server or Exchange Online (Microsoft 365) allows an administrator to block (reject) e-mails from specific external domains or sender addresses. There are several…
- Azure and Microsoft 365ExchangePowerShell
Managing Inbox Rules in Exchange with PowerShell
March 15, 2024Outlook mailbox rules allow users to configure different conditions for processing incoming e-mail messages in the Inbox folder. You can use Outlook rules to move e-mails from specific senders to…
- PowerShellWindows 10Windows 11
How to Uninstall or Disable Microsoft Edge on Windows 10/11
June 8, 2023The Microsoft Edge browser is installed by default on Windows 11 and all new Windows 10 builds (and Windows Server 2022/2019). If you have another browser installed on the computers…
- Azure and Microsoft 365ExchangePowerShell
Convert a User Mailbox to a Shared in Exchange and Microsoft365
March 15, 2024Multiple users can access a shared mailbox in Exchange. Unlike a common user mailbox, a shared mailbox account is disabled in Active Directory and cannot be used for interactive sign-in.…