Daten in einem Dokument speichern Powershell
$Name = Get-Date -Format 'yyyy/MM/dd'
$FileEnding = ".csv"
$Document = $Name + $FileEnding
$Domain = "String"
$UserName = ($Domain + "String")
$IpAdress = "XXX.XXX.XXXX.XX"
$Object = New-Object -TypeName PSCustomObject -Property @{
"IPAdresse" = $IpAdress
"Username" = $UserName
} | Export-CSV -Path ("C:\Users\testbenutzer\temp\" + $Document) -NoTypeInformation -Append