Skip to content

Connect on Exchange On-line (Mac)

install powershell on a mac
brew install powershell
brew install openssl
pwsh
Install-Module -Name PowerShellGet
Install-Module -Name PSWSMan
sudo pwsh -Command 'Install-WSMan'

connect with a mac with an interactive logon
$ExchangeSession = Connect-ExchangeOnline
Change calendar time zone
Set-MailboxCalendarConfiguration -Identity peter@contoso.com -WorkingHoursTimeZone "Pacific Standard Time"

Connect on Microsoft Graph with powershell

Install the module
Install-Module Microsoft.Graph -Scope AllUsers   
Connect-MgGraph -TenantId "yourTenant GUID"
Connect
Install-Module Microsoft.Graph -Scope AllUsers   
Connect-MgGraph -TenantId "yourTenant GUID"

Test Viruses and Antiviruses

Mimikatz
invoke-mimikatz

Check Installed application

Powershell Check installed applications
wmic product get name,vendor,IdentifyingNumber,Version,InstallDate

Check running services

powershell check running services
wmic service get Caption,StartName,StartMode

check installed drivers

Check installed drivers
driverquery /v

check routes

Check routes
route print

check tasks

Check computer tasks
tasklist

Check Boot time

Check Boot time
systeminfo | find "System Boot Time:"

Autres

How to get date of last Windows update install or at least checked for an update?
gwmi win32_quickfixengineering |sort installedon -desc 
Lorem ipsum dolor sit amet