Schlagwort-Archive: powershell

Connecting to Office 365/Exchange

…..a script with a set of functions to allow me connect to each individual Office 365 service or Exchange Online: Connect-AzureActiveDirectory: Connects to Azure Active Directory Connect-AzureRMS: Connects to Azure Rights Management Connect-ExchangeOnline: Connects to Exchange Online Connect-SkypeOnline: Connects to Skype for Business Online Connect-EOP: Connects to Exchange Online Protection Connect-ComplianceCenter: Connects to Compliance Center Connect-SharePointOnline: Connects to SharePoint Online Connect-MSTeams: Connects to Microsoft Teams Get-Office365Credentials: Gets Office 365 credentials Connect-ExchangeOnPremises: Connects to Exchange On-Premises Get-OnPremisesCredentials: Gets On-Premises credentials Get-ExchangeOnPremisesFQDN: Gets FQDN for Exchange On-Premises Get-Office365Tenant: Gets Office 365 tenant name (SharePoint) Set-Office365Environment: Configures Uri’s and region to use…..

Quelle: Connecting to Office 365/Exchange | EighTwOne (821)

Konten im Active Directory entsperren oder aktivieren mit PowerShell | WindowsPro

Ein Tipp von meinem lieben Kollegen Rainer:

Search-ADAccount -LockedOut -UsersOnly -SearchBase „OU=IT,DC=contoso,DC=com“

Search-ADAccount -AccountExpired -UsersOnly

Search-ADAccount -AccountExpiring -TimeSpan „10“7

Unlock-ADAccount -Identity amueller

Set-ADAccountExpiration -DateTime 30.04.2017

Quelle: Konten im Active Directory entsperren oder aktivieren mit PowerShell | WindowsPro

Kalenderberechtigungen für eine Gruppe anzeigen

$groupmembers = Get-ADGroupMember -Identity Groupname
$result=@()
Foreach ($member in $groupmembers){
$user = get-aduser $member.samaccountname -Properties *
$sam = $member.samaccountname
$email = $user.EmailAddress
$name = $user.DisplayName
$right = Get-MailboxFolderPermission $email“:\Kalender“ -User Default -ErrorAction SilentlyContinue | select AccessRights
if ($right -eq $null){$right =  Get-MailboxFolderPermission $email“:\Calendar“ -User Default -ErrorAction SilentlyContinue | select AccessRights}
if ($right -eq $null){$right = „nix“}else{$right = $right.AccessRights[0]}
$exserver = $user.msExchHomeServerName
if ($exserver -eq $null){$exserver = „“}
$dings = new-Object PSObject -Property @{
user = $email
homeserver = $exserver
right = $right
sam = $sam
name = $name}
$result += $dings
}
$result | Out-GridView

Must know Office 365 PowerShell commands – TechSultan

Many enterprise migrated to cloud services, especially for email management. Office 365 is one of them, maybe most popular Exchange online solution. If you migrated to Office 365, there is a little adminitrative panel which offer you minimal possibility.

Real administrative tasks are on PowerShell side, it’s hard to find commands and how to operate them, so here a list of must know Office 365 PowerShell commands :

via Must know Office 365 PowerShell commands – TechSultan.

Aus der IT Praxis… Exchange and more: Exchange 2013: Kein Message Tracking Log Explorer mehr?

Ein Tool, welches leider im Exchange 2013 nicht mehr vorhanden ist, ist der „Message Tracking Log Explorer“. Neu soll das Message Tracking über die Weboberfläche gemacht werden.

Get-TransportService | Get-MessageTrackingLog -ResultSize Unlimited -Start (Get-Date).Date | select-object timestamp,eventid,source,messageid,sender,recipients,messagesubject,recipientstatus,serverhostname,clienthostname | Out-Gridview

Reihenfolge der Events für die Logausgabe ist wie folgt zu lesen (EventID zu Source):

  1. SUBMIT – STOREDRIVER
  2. RECEIVE – SMTP
  3. HAREDIRCT – SMTP
  4. HARECEIVE – SMTP
  5. AGENTINFO – AGENT
  6. SEND – SMTP
  7. RECEIVE – STOREDRIVER
  8. DELIVER – STOREDRIVER
  9. HADISCARD – SMTP

Bei erfolgreicher Zustellung sollte folgendes zu finden sein:
Recipientstatus = 250 2.1.5 Recipient OK

 

via Aus der IT Praxis… Exchange and more: Exchange 2013: Kein Message Tracking Log Explorer mehr?.