$import= import-csv -Path ‘<PATH_TO_CSV_FILE>email-list.csv’ #location of CSV file $import | ForEach-Object { $sig = Get-Mailbox […]
Office365
Push HTML Format Email Signature in Office365 from powershell
$sig = Get-Mailbox -Identity “rajan.maharjan” Set-MailboxMessageConfiguration -Identity $sig.Alias -DefaultFontName ‘Arial’ -AutoAddSignature $true -AutoAddSignatureOnReply $true -SignatureHtml […]
Basic commands of Powershell related to Distribution List (DL)
Get-DistributionGroupMember -Identity “GROUP_NAME@rajanmaharjan.com” -ResultSize Unlimited | Select Name, PrimarySMTPAddress | Export-CSV “D:\Rajan-1145\Office365\members-of-dl.csv” -NoTypeInformation -Encoding UTF8 […]
Bulk add members to Distribution List (DL)
$UserCredential = Get-CredentialGet-DistributionGroupMember -Identity “GROUP_NAME@rajanmaharjan.com” | ft alias #to get current list members$Session = New-PSSession […]
Very first #PowerShell Basic
In windows 10, you just need to do run, Type “Powershell” and choose “Windows PowerShell […]
Basic commands of PowerShell
Get-Mailbox -Identity * | ft name, alias #gives column name and an alias for all […]