24 lines
2.2 KiB
PowerShell
24 lines
2.2 KiB
PowerShell
|
||
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 |