8
0
2024-01-24 16:42:38 +01:00

24 lines
2.2 KiB
PowerShell
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.


Write-Host "Aktuelle Systemzeit:"(Get-Date) -foregroundcolor red -backgroundcolor yellow
#
Write-Host "Lese System Details aus:" -foregroundcolor red -backgroundcolor yellow
if([IntPtr]::Size -eq 4){
Write-Host "32 Bit Windows erkannt" -foregroundcolor red -backgroundcolor yellow
}
if([IntPtr]::Size -eq 8){
Write-Host "64 Bit Windows erkannt" -foregroundcolor red -backgroundcolor yellow
}
$ComputerOS =(Get-WmiObject Win32_OperatingSystem).Name
Write-Host "$ComputerOS erkannt" -foregroundcolor red -backgroundcolor yellow
$ComputerName = (Get-WmiObject Win32_OperatingSystem).CSName
Write-Host "Computername lautet: $ComputerName" -foregroundcolor red -backgroundcolor yellow
$IPAdresse = Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE -ComputerName . | Select-Object -Property IPAddress
Write-Host "Aktuelle IP-Adresse: $IPAdresse" -foregroundcolor red -backgroundcolor yellow
$RDSSrvArray = 1,"Hello",3.5,"World"
Start-Sleep -m 10000