...........
Ad Widget
Collapse
Extracting a simple value from a .txt file
Collapse
X
-
-
Extracting a simple value from a .txt file Reply to Thread
Hello Ivo,
Togehter we figured this one out.
The file was created by powershell were we read out the admin groups and write the info to a script file with the statement
$users.count > c:\temp\domainadmin.txt
Then Windows write the file in UTF-16LE (met BOM) (found through geany file properties)
Zabbix can not read this.
No we exported the file from powershell with this line instead
[System.IO.File]::WriteAllLines('c:\temp\domainadmin.txt', $users.count);
and the file was saved as UTF-8 (zonder BOM)
After that zabbix could read the file in normal ways
Comment