From 07336c088f824c889f2d8bed9955c956197b4348 Mon Sep 17 00:00:00 2001 From: Felix Pankratz Date: Mon, 20 Jan 2025 14:10:20 +0100 Subject: [PATCH] HESOYAM --- cheats/ad | 5 +++++ cheats/exchange | 3 +++ 2 files changed, 8 insertions(+) diff --git a/cheats/ad b/cheats/ad index 9cd5665..0c5fbd5 100644 --- a/cheats/ad +++ b/cheats/ad @@ -16,3 +16,8 @@ # submit CSR to CA `certreq -submit -attrib "CertificateTemplate:Webserver Version3" docs_req.req` +# sort users by last logon +`get-aduser -filter 'enabled -eq "true"' -properties lastlogontimestamp | Select samaccountname, @{Name="lastLogontimestamp";Expression={[datetime]::FromFileTime($_.'lastLogontimestamp')}} | sort-object -property 'lastLogontimestamp' ` + +# check CRL +`certutil -URL "http://ca.contoso.com/CertEnroll/contoso ca01.crl"` diff --git a/cheats/exchange b/cheats/exchange index 2999111..5d3fd43 100644 --- a/cheats/exchange +++ b/cheats/exchange @@ -15,3 +15,6 @@ # get mailbox folder statistics `Get-MailboxFolderStatistics gemma.odena@auma.com | Select Name,FolderSize,ItemsinFolder` + +# grant sendas on shared mailbox to cloud user (hybrid) +`Set-Mailbox -Identity shared_box@contoso.com -GrantSendonBehalfTo user.name@contoso.com`