Answers for "Daten in einem Dokument speichern Powershell"

0

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
Posted by: Guest on August-23-2021

Browse Popular Code Answers by Language