From 9c8a8f31eea805f70e2007518ce61b0939fdc855 Mon Sep 17 00:00:00 2001 From: Frank Bischof Date: Wed, 23 Nov 2022 10:25:42 +0100 Subject: [PATCH] IST-SOLL --- ist-soll.ps1 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 ist-soll.ps1 diff --git a/ist-soll.ps1 b/ist-soll.ps1 new file mode 100644 index 0000000..a73400e --- /dev/null +++ b/ist-soll.ps1 @@ -0,0 +1,3 @@ +Get-ADUser -Filter '*' -Properties * | + Select-Object DisplayName, Description, SamAccountName, Enabled, CanonicalName, @{l="Member oF";e={[string]$_.memberof}}, @{n='LastLogon';e={[DateTime]::FromFileTime($_.LastLogon).ToString('yyyy-MM-dd HH:mm')}} | + Export-Csv 'ist-soll.csv' -NoType \ No newline at end of file