Hallo
ich möchte gerne ein Log erstellen, welche Daten verarbeitet wurden.
wo und wie müsste ich das einbauen - vor der letzten Klammer?
und anscheinend ist der Import in einem anderen Format. Da der Import funktioniert, möchte ich hier das Encoding nicht ändern. Bei out-file gibt es keine -Encoding Property?$import = import-csv \\server\data\Dir.txt $import | foreach{Set-AdUser -Identity $_.UserID -replace @{extensionAttribute1 = $_.ScanDir} | out-file $_.UserID -append c:\temp\x.log}Error:
ut-File : Cannot validate argument on parameter 'Encoding'. The argument "c:\temp\x.log" does not belong to the set
"unknown,string,unicode,bigendianunicode,utf8,utf7,utf32,ascii,default,oem" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again
Chris