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