Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Convertto-html , carriage return in cells.

$
0
0

Hi everybody!

I am changing a script that creates an html file with entries from a login / logout script, and I add two columns : Ip address and Mac address.

The DHCP leases are exported from our different dhcp servers to 4 files and imported in the html file creation script.

It's ok for classic users, as they have one IP , but other users are switching building often, and so are in 2 or 3 different DHCP servers... Not a big thing, as I treat IP & Macs as Strings and all of them appears instead of the System.Object[] entry.

But, it's not as I want.

Here is a screenshot to explain :

As you can see, the first line is a remote user. It has 2 dhcp leases, on 2 different servers, and so shows 2 entries.

The second line is a normal user, with 1 entry.

What I want is for the first line, to have a carriage return instead of the "`t|`t" separator that...


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>