Hello!

I am a husband, a father, an IT Tech and an Investor.

I'm going to use this site to save information for later such as code, links and notes for family and friends and the odd photograph I've taken here and there.  I often look for new investment opportunities so will probably post the odd thing here about those too.

 

 

 

 

googlelinkedin

1
Uninstalling Internet Explorer
2
Photo walk in London #TRlondon2015
3
Tasker – Headphones profile
4
How to setup WinRM for Powershell remoting
5
Editing Dynamic Distribution Groups in Exchange 2010
6
Upgrading S5 from KK to LP and keep root
7
Testing a Chromebook
8
New Phone!
9
Intelligent Heating
10
Saving battery life with Tasker

Uninstalling Internet Explorer

For some reason Microsoft always seem to make removing this application difficult.  These commands however seem to work much better than using the GUI but there’s no surprise there really!

Example for uninstalling Internet explorer 9
  • Log on to the computer by using an administrator account or an account that has administrative rights.
  • Close all Internet Explorer browser windows.
  • Click Start, type cmd in the Search box, and then click cmd under Programs.
  • Right click and select Run as administrator
  • Copy the following command:
FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*9.*.mum /c "cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /quiet /norestart
  • Paste the command into the Command Prompt window, and then press Enter.
  • Restart the computer.
Example for uninstalling Internet explorer 10
  • Log on to the computer by using an administrator account or an account that has administrative rights.
  • Close all Internet Explorer browser windows.
  • Click Start, type cmd in the Search box, and then click cmd under Programs.
  • Right click and select Run as administrator
  • Copy the following command:
FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*10.*.mum /c "cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /quiet /norestart
  • Paste the command into the Command Prompt window, and then press Enter.
  • Restart the computer.
Example for uninstalling Internet explorer 11
  • Log on to the computer by using an administrator account or an account that has administrative rights.
  • Close all Internet Explorer browser windows.
  • Click Start, type cmd in the Search box, and then click cmd under Programs.
  • Right click and select Run as administrator
  • Copy the following command:
FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*11.*.mum /c "cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /quiet /norestart
  • Paste the command into the Command Prompt window, and then press Enter.
  • Restart the computer.

Tasker – Headphones profile

After seeing a post here from James on Google+ which looked much better than mine I decided to delete mine and start again.

The end result is a new notification whenever I insert some headphones which has icons for all of my audio apps.  Whenever an icon is selected, the app opens and the notification drawer closes.  Then once the headphones are removed the notification is closed.

Here’s what it looks like:

Screenshot_2015-02-05-09-04-26

 

  1. PlayMusic
  2. PlayBooks
  3. Spotify
  4. YouTube
  5. BBCiPlayer
  6. BBCiPlayerRadio

To get the icons I used an app called ExtractIcons from the play store but to be honest the interface isn’t very good which makes selecting the applications you want very fiddly.

Apps needed to get this set-up working:

  1. Tasker
  2. AutoNotification plugin
  3. ExtractIcons (Optional)

Once you have both of these installed go ahead and download then import this profile from here: http://goo.gl/ThI0Ag

You’ll then need to edit the tasks to put your own icons in and link them to an application to open but this should get you started.
Hope it helps.

How to setup WinRM for Powershell remoting

To setup WinRM on a network do the following:

set the winrm service to auto start
Computer Configuration \ Policies \ Windows Settings \ Security Settings \ System Services
Windows Remote Management (WS-Management) set Startup Mode to Automatic

create a winrm listener
Computer Configuration / Policies / Administrative Templates / Windows Components / Windows Remote Management (WinRM) / WinRM Service / Allow automatic configuration of listeners
IPv4 filter: *
NOTE: You’ll want to narrow down this filter to your admin host(s)
add firewall exceptions to allow the service to communicate.
Computer Configuration / Policies / Windows Settings / Security Settings / Windows Firewall with Advanced Security

Create an Inbound Rule allowing the predefined group ‘Windows Remote Management’
NOTE: Open up the new rule and remove Private and public so you’re left just with Domain

 

To test run Invoke-Command -ComputerName <computername> -ScriptBlock {gci c:\}

or to run command remotely do:

Enter-PSSession <computername> and to leave type exit From the pssession you can copy msi files locally then run them as normal: msiexec /i mymsifile.msi /qn

More info about using credssp for unc’s here:

http://dustinhatch.tumblr.com/post/24589312635/enable-powershell-remoting-with-credssp-using

ExpertsExchange workable example below:

$computers = Get-Content "c:\temp\computers.txt"
$rs = Get-PSSession

######
## Functions
################

Function PushMSI {
 Write-Host "------------------------------------------------"
 Write-Host "This will copy the MSI file from localhost c:\temp\"
 write-Host "------------------------------------------------"
 Write-Host ""
 Write-Host ""
 foreach ($comp in $computers)
{
   Copy-Item -path "c:\temp\UPS Client Update.msi" -Destination \\$comp\c$\temp
   
}
}

Function RemoteConnect
{
 Write-Host "------------------------------------------------"
 Write-Host "This will establish a PSSession with all computers in c:\temp\computers.txt"
 write-Host "------------------------------------------------"
 Write-Host ""
 Write-Host ""
Get-Content C:\temp\computers.txt | New-PSSession -ThrottleLimit 50
}

Function InstallMSI
{
 Write-Host "------------------------------------------------"
 Write-Host "This will Install UPS Update on all computers with an Established PSSession"
 write-Host "------------------------------------------------"
 Write-Host "After the Install PSSessions will be removed"
 Write-Host ""
Invoke-Command -Session $rs -ScriptBlock {invoke-item "c:\temp\UPS Client Update.msi"}
}

Get-PSSession | Remove-PSSession

Editing Dynamic Distribution Groups in Exchange 2010

Rather frustratingly there doesn’t seem to be an option anywhere to allow you to edit an existing group if you’ve used the command line to create it.  Why are Microsoft so bad at this!?

As a quick work around you can do the following:

  • Open up the DDG and go to the Filter tab or type the below into a console:
Get-DynamicDistributionGroup

$myvar = Get-DynamicDistributionGroup "<enter a name from above list>"

$myvar.RecipientFilter
  • Copy the entire filter and paste into your favourite text editor, Notepad++,e.g.
(RecipientType -eq "UserMailbox") -and (ExtensionCustomAttribute1 -like "Exchange")
  • Type this:
    New-DynamicDistributionGroup -Name NewDDG -RecipientFilter {XXX}
  • Replace the XXX’s with your filter from above
  • Next add in any new filters to the command line, e.g.
    (-title -eq "IT")
  • So now your completed command will be:
    New-DynamicDistributionGroup -Name NewDDG1 -RecipientFilter {(RecipientType -eq "UserMailbox") -and (title -eq "IT") -and (ExtensionCustomAttribute1 -like "Exchange")}

 

The trick is now to change the -Name parameter to something similar to the existing one so here I’ve tagged a 1 on the end to make NewDDG1.  Next, make sure that all the other settings are the same as the old DDG.

Once you’re happy, delete the old DDG and rename the new one to match the old.  This is the only  way I’ve found to modify exiting complex DDG settings if they’ve not been created with the GUI.

 

A full list of filterable properties can be found here:
http://technet.microsoft.com/en-gb/library/bb738157%28v=exchg.150%29.aspx

Upgrading S5 from KK to LP and keep root

Upgrading from 4.4.2 to 5

Download and install S5 usb drivers
They can be downloaded from here:
http://developer.samsung.com/technical-doc/view.do?v=T000000117

Download and install Odin 3.10 from here:
http://forum.xda-developers.com/showthread.php?t=2711451

Purchase Mobile Odin Pro from here:
https://play.google.com/store/apps/details?id=eu.chainfire.mobileodin.pro

Download TowelRoot:
https://towelroot.com/
Put this on your SD card

Download Super SU 10.12.2014 – v2.39 – BETA from here:
http://download.apks.org/?server=14&apkid=eu.chainfire.supersu&ver=2.39
Put this on your SD card

Download these three files from here:
https://mega.co.nz/#F!ahgS2QYD!7C0vz65w4AtoiiiIkpz4rg

Bootloader: BL_G900FXXU1BNL2.tar.md5
Modem: CP_G900FXXU1BNL2.tar.md5
The ROM: G900FXXU1BNL2_DevBase_alexndr.zip

Download stock 4.2.1 file G900FXXU1ANCE_G900FOXA1ANCE_BTU.zip from here:
https://mega.co.nz/#F!uhZUwAgS!tk_drBMxKiOqeF1gzvZq8Q

This probably isn’t the most efficient method but it worked fine for me.

Backup manually any files you want to keep from your phone and make a record of any apps you want to re-install as this process will do neither.

Start here….you’ve backed everything up right?

Open up Odin
Plug in USB cable
Turn off the device.
With the device turned off, press Volume Down, Home and Power Buttons simultaneously.
Once you see the warning message, release all buttons.
Press Volume Up to enter download mode.
Now your device should be in download mode.

Back in Odin, leave everything on defaults
Press the AP button and locate the Stock rom from above and press Flash
Once it’s finished, unplug from the PC and boot fully into the rom

Install the TowelRoot apk we downloaded earlier and press make it rain
Install the Super SU apk as which we also downloaded before

***You should now have root access.***
Reboot
Install Mobile Odin Pro and run

Select the “Open File” and pick the new ROM we downloaded earlier
Untick Everroot as this rom is pre-rooted
OK
Flash firmware
**Leave Base rom ticked**

Shutdown

Boot back into download mode
connect cable
run Odin from the PC
Press BL and select the BL_Gxxxx file which is the bootloader
Press CP and select the CP_Gxxxx file which is the modem file

Press Flash

Once it’s finished you might get stuck in a boot loop. If this happens then boot into recovery and do a factory wipe.

reboot again. this took me almost 5 minutes for the first boot to come up with the language selection screen. NOTE: Right after the screen came up I was impatient and
went straight into configuring the rom. Bad idea is seems. The app crashed a number of time and the entire phone rebooted about four times. With this in mind, leave the phone alone
for a little while , five minutes or so, before trying to do anything.

Eventually the phone calms down and is usable but once you’ve gone through the initial wizards I would reboot it again to make sure everything is ok.

Now check you still have root and enjoy!

Info from here and a few other threads:
http://forum.xda-developers.com/galaxy-s5/general/how-to-root-triggering-knox-2nd-method-t2843044

Testing a Chromebook

I took a call from Google this afternoon wanting to know if I’d test a Chromebook for them and provide feedback.

Details at the minute are a little sketchy as all I know is that they would like to ship me a machine and test the latest GoogleApps suite but this should be interesting.  Hopefully the machine will arrive early next week to give me sufficient time to play with it before my Google contact calls next Friday for a Hangout.  I’ve already found out that it’s going to be the HP Chromebook 11 that’s being shipped, I didn’t think they’d send me a Pixel, maybe next time!

I’ve tested hundreds of things over the years but it’s always nice to be given something new to evaluate and play with.  Will post an update when it arrives.

New Phone!

Finally after what must be an almost 9 month wait I have my new phone, an S5.

The phone is great after you replace the TouchWiz interface with something a little more flexible, NovaPrime.

 

Loving the new camera which is much better than the old 8Mp LG that I had.

Intelligent Heating

Heating for the 21st century

Back in December we became aware of a company offering a simple solution to help keep heating costs down.  Anyone with a large house or people in and out at random times of the day all week will perhaps appreciate that it’s sometimes difficult to strike the right balance between heating when you’re there and not having the house too cold for when you turn up out of the blue.  This leads to thermostat yo-yoing back and forth, sometimes on a daily basis as each person sets it just so.  This leads to higher costs.

Starting in January we have been trialling a new heating control system from Heat Genius.  Support over the phone during the lead up to purchasing was excellent,  offering in depth knowledge answering all of our questions fully.

Our goal now is to run the system to test everything works as expected with the aim of savings being made on the bills.  As soon as we can confirm that this is the case we will be looking to extend it to the rest of the house.

How does it work you ask?

Heat Genius have developed a small control box which sits quietly, tucked away next to your broadband router.  This is the brains of the operation.  It tells the rest of the system what to do.  On top of this there are new TRV’s, thermostatic radiator valves, which go in each room you want to control along with a PIR sensor so the system can detect when someone is present, and a new thermostat.

With these few products, from a computer, tablet or mobile phone you can set-up each room to independently heat up for any amount of time then go off again.  You aren’t using some of the rooms in the house so why heat them?  Have a tenant move out?  No problem, just turn the heating in their room down/off remotely.  Because each room can be heated individually, all of the tenants are happy, they can have their room just right.  We have some shift workers so where once the entire house used to be heated 24/7, now it’s just the rooms when the occupants are home.  This has the potential to save a lot of money.

 

Visit https://heatgenius.co.uk for more information.

Saving battery life with Tasker

I don’t know anyone who has an relatively new smartphone who doesn’t complain about being tethered to a charger because the battery life isn’t as good as they’ve like.  Sometimes phones don’t even make it through a single day.

With Tasker you can control almost everything on an Android phone.

The following short set of instructions will turn the screen to greyscale (only useful on AMOLED screens) when the battery level gets too low.

  1. Create a new profile and set State to Battery Level
    1. Set From to 1 and To to 10
  2. Make a new task with the following:
    1. Flash %PACTIVE
    2. Run Shell echo “2” > /sys/devices/virtual/mdnie/mdnie/accessibility
    3. Mobile Data Off
    4. Flash Power Save Enabled

Add an Exit Task:

  1. Run Shell echo “0” > /sys/devices/virtual/mdnie/mdnie/accessibility
  2. Mobile Data On
  3. Flash Power Save Disabled

 

The Run Shell lines turn the screen output into grey-scale only and also turn off mobile data.  To further enhance this you could use some variables to trigger turning this profile on and off which would give you the ability to trigger the profile on a timed bases and also disable it when the scree is turned back on.

Copyright © 2014. Created by Mark. Powered by WordPress.

UA-19884546-1