$ComputerName = Get-WMIObject Win32_ComputerSystem | Select-Object -ExpandProperty name
$FileName = $env:USERPROFILE + „\Desktop\“ + $ComputerName + „.txt“
$PathDesktop = $env:USERPROFILE + „\Desktop\“

Get-WMIObject Win32_ComputerSystem | Select-Object -ExpandProperty name | out-file -filepath $FileName -Append

Get-WmiObject win32_baseboard | out-file -filepath $FileName -Append
Get-WmiObject Win32_Bios | out-file -filepath $FileName -Append
Get-WmiObject win32_physicalmemory | Select Manufacturer,Banklabel,Configuredclockspeed,Devicelocator,Capacity,Serialnumber | out-file -filepath $FileName -Append
(Get-CimInstance Win32_PhysicalMemory | Measure-Object -Property capacity -Sum).sum /1gb | out-file -filepath $FileName -Append
Get-ComputerInfo OSName, OsArchitecture | out-file -filepath $FileName -Append
Get-LocalUser | out-file -filepath $FileName -Append
Get-LocalGroup | out-file -filepath $FileName -Append
Get-ChildItem -path $PathDesktop

ForEach($GroupName in Get-LocalGroup)
{
Get-LocalGroupMember -Group „$($GroupName.Name)“ |
Select @{n=’GroupName‘;e={$($GroupName.Name)}},Name | out-file -filepath $FileName -Append
}

Get-CimInstance Win32_OperatingSystem | Select-Object Caption, InstallDate, ServicePackMajorVersion, OSArchitecture, BootDevice, BuildNumber, CSName | FL | out-file -filepath $FileName -Append
Get-CimInstance Win32_OperatingSystem | FL * | out-file -filepath $FileName -Append
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize | out-file -filepath $FileName -Append
Get-PsDrive -PsProvider FileSystem | out-file -filepath $FileName -Append

Get-EventLog -LogName system -EntryType Error | ft | out-file -filepath $FileName -Append
Get-EventLog -LogName application -EntryType Error |ft | out-file -filepath $FileName -Append

$outlookApplication = New-Object -ComObject ‚Outlook.Application‘
$accounts = $outlookApplication.Session.Accounts
$accounts | Select DisplayName, SmtpAddress | out-file -filepath $FileName -Append
$accounts | FL | out-file -filepath $FileName -Append
$outlookApplication.Application.DefaultProfileName | out-file -filepath $FileName -Append

Powershell

Computersystem

Arbeitsspeicher

Festplatten

Netzlaufwerke

Betriebssystem

LocalUser

LocalGroup

Software Installiert

Virenschutz

Ereignisanzeige System

Ereignisanzeige Application

Outlook Profile

Desktop Dateien