Monthly Archives: July 2018

Powershell Objects

Cmdlets output objects, and can consume objects.

Objects have properties. Properties can be read-only, or modifiable.

Not all properties are shown by default when you view an object

Objects have methods, which may have parameters. Cmdlets are often associated with methods, but methods can be invoked manually too.

Get-Member lists all properties and methods of an object.

 

Can filter to just methods or properties etc,

Select-Object works with any object.

Pipe an object into Select-Object to view it indifferent ways, -Property says which properties (columns) to show

OR to get all properties can do this, but it will show in a non-table way:

To list all the properties for the actual object and not the type.

Sorting

pipe through Sort

Select a property to sort on , and ascending or descending

Or

Sometimes the sort might appear to not work. This can be because the sort is not working on the text value, but an underlying numeric value. In this case, you need to convert the property to a text value and sort on that instead, e.g.

 

Filtering

To get a subset of results, use Where-Object (alias = Where), specifying the property and condition to filter on, e.g.:

 

Operators are:

-eq

-lt

-gt

-ceq (case sensitive)

-like (wildcard match)

-notlike (wildcard match)

-match (regex)

 

The shorthand version is more widely used and more flexible when it comes to complicated expressions

$_ means the current object in the pipeline

 

Grouping

Objects can be grouped based on properties.

This is now a GroupInfo Object, so if we wanted to get hold of the first running service from here, we would need to expand the group property to get the service objects in it, and then get the first one of those:

 

Piping to Out-GridView pops out a GUI window with resizable columns etc

Tacolneston Transmitter frequencies – post 700MHz switchover

I was having trouble with TVheadend not picking up lots of freeview channels. When I looked in to it, I found out there is a big reshuffle of channels and frequencies going on to free up the 700MHz band (694 – 790MHz) for mobile broadband use. TVheadend didn’t seem to pick up these changes even after a full scan. I couldn’t find all the info I needed in one place, so have gone around different sources and gathered this summary together. This should be correct as of 17th July 2018…

These were just added manually to the list of Multiplexes. For each one, I just specified the Frequency in MHz, and left everything else to AUTO.

The BBC B HD Mux failed to scan, until I set the Bandwidth parameter to 8Mhz. I didn’t need to do this on any other Mux.

Mux name UHF channel Frequency (MHz) from digital UK Channels
BBC A 40 626 main BBC channels (non-HD) and radio
D3&4 43 650 ITV, C4, C4+1, C5
BBC B HD 46 674 Main 5 HD channels
SDN 42 642
ARQ A 45 666 Dave, Sony Movie Ch
ARQ B 39 618 Yesterday, 4music, 4seven
COM7 HD 55 746 4seven HD, C4+1 HD
COM8 HD 56 754 BBC Four HD, CBeebies HD
L-NOR 32 562

 

Channels mentioned are not exhaustive list, see this page for full list: http://www.digitaluk.co.uk/channels/channel_listings

This page allows you to see the current channel numbers in use for your region, and which multiplex they relate to: http://www.digitaluk.co.uk/coveragechecker/manual_retuning

This page lists, for each UHF channel, the corresponding frequency (see centre frequency column): http://help.digitaluk.co.uk/display/4/kb/article.aspx?aid=8312