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
Windows 10 build 9926 update failing
2
Getting RSAT to work on Windows 10 build 9926
3
Uninstalling Internet Explorer
4
Photo walk in London #TRlondon2015
5
Tasker – Headphones profile
6
How to setup WinRM for Powershell remoting
7
Editing Dynamic Distribution Groups in Exchange 2010
8
Upgrading S5 from KK to LP and keep root
9
Testing a Chromebook
10
New Phone!

Windows 10 build 9926 update failing

If you’re getting error 0x80070057 when trying to pull the updates try this registry fix:

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX] "IsConvergedUpdateStackEnabled"=dword:00000000 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings] "UxOption"=dword:00000000

Restart the Windows Update server or reboot and the updates should start flowing again.

Getting RSAT to work on Windows 10 build 9926

After a fair amount of digging around on the web I’ve finally come up with a working solution which will get RSAT installed on a machine that doesn’t have EN-us as the default language, mine is EN-gb

Firstly download one of these language files

  1. 32bit version
  2. 64bit version

Next press Winkey + R and run lpksetup  (that’s an L not an I)

Now follow this guide here which will walk you through the process of installing a new language then changing the default to EN-us.

Once this is done, download RSAT from here, don’t google it or you will likely end up finding the file which is 34Mb and not the 49Mb one.  Both have the same KB which is super annoying!

 

If you’ve got this far you can install RSAT then flip the default language back to whatever you started with.

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.

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

UA-19884546-1