Friday, 22 April 2022

How to find the last interactive logons in Windows using PowerShell

Use the following powershell script to find the last users to login to a box since a given date, in this case the 21st April 2022 at 12pm until midnight on the 22nd April 2022 :-

  Get-WinEvent -FilterHashtable @{logname='Security'; id=4624; StartTime="2022-04-21 12:00"; EndTime="2022-04-22 00:00"} -MaxEvents 5000 | Where-Object {($_.Message -like '*Logon Type: 10*')} | select -Property @{Name = 'Info'; Expression = {$_.Message.SubString($_.Message.LastIndexOf("Network Account Name:") -195,300)}},Id, TimeCreated, Message -First 10 | fl Id, TimeCreated, Info


Further to this, to find all the times a particular user has logged on to a machine, use the following query


Get-WinEvent -LogName 'Security' -FilterXPath 'Event[System[EventID=4624] and EventData[Data[@Name="TargetUserName"]="justusernamenodomain"]]' -MaxEvents 10 | fl id, timecreated


Alternatively you can edit the custom filter in the event log to look like this


<QueryList>

  <Query Id="0" Path="Security">

    <Select Path="Security">*[System[(EventID=4624) and TimeCreated[@SystemTime&gt;='2022-04-25T15:30:20.000Z' and @SystemTime&lt;='2022-04-25T16:30:20.999Z']]]

and *[EventData[Data[@Name="LogonType"]=10]]

</Select>

  </Query>

</QueryList>




Thursday, 2 September 2021

How to clear Windows run auto complete / auto suggest history in Windows 10



 





Clear the entries in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU

Edit: AutoComplete in the Run box is set in (of course) Internet Explorer's settings (Content Tab / AutoComplete): there's a button to Delete Autocomplete History. If that doesn't work, you could try turning AutoComplete off, rebooting, and turning it on again.




Thanks to this link for the tip...

Clear Windows "Run" box cache | Newbedev



Thursday, 10 September 2020

Ctrl+Shift+WinKey+B in Windows 10

Ctrl+Shift+WinKey+B in Windows 10

 This resets the graphics display on your laptop and can sort out lagging issues as well

"Since yesterday, I've had applications only partially drawing at random times.  No window chrome showing up on most of them.  For browsers, going full screen and back helped.  Found this gem of a shortcut, though, which seems to have fixed my issue:  https://superuser.com/questions/1127463/what-does-ctrlwinshiftb-do-in-windows"

Tuesday, 19 November 2019

How to Fix a Humax HDR FOX T2 PVR that will not stay powered on

Issue
When you attempt to power on your Humax the standby orange light goes blue for a moment, and then powers off automatically again.

Cause
The reason for this could be a bad boot sector on the hard disk.

Resolution
To fix this, remove the hard disk cable that connects to the mother board, power the machine on, then whilst it is showing your channel on the display, connect the hard disk cable back onto the motherboard. Then ftp to the machine using humaxftp / 0000 as the default username and password, and change directory (cd) to "my videos" and then list the contents of the directory using a dir command. After doing this you should be able to put the machine back into standby, and wait until you hear the hard disk spin down and stop, and then switch off at the wall and the back on again.





Note: There also appears to be a telnet command line interface to run disk repairs on the Humax but I wasn't able to get this working myself, and in the end did not need to do this.

Tuesday, 22 January 2019

How to retrieve a list of programs installed on Windows using PowerShell

Use the following powershell command

Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Sort-object -Property DisplayName | Format-Table –AutoSize | Out-File \temp\myinstalls.txt

Monday, 15 October 2018

Thames water collapsed drain cover

15/10/2018
After fixing our sewage drain cover, there appears to be a mini sinkhole occurring around our Thames Water meter cover. We’re wondering if this is being caused by a leak underground perhaps
Some images are like this, and the exact location is here https://goo.gl/maps/N9rACAM6qdQ2




16/10/20185
Team 1 have been out to dig up the road today. Apparently this will take 3 teams, 1 to dig, 1 to replace and 1 to fill in and make good.

19/11/2018 12:45: Spoke to Alison, customer assurance team,  08000093960 (opt 1 wait 3 mins). Told them about collapsing again. Reinstatement team will need to be contacted and she'll call me back when she knows more. Original job reference was 31172996 for this work.

22/11/2018 13:45: Spoke to Eyvonne, checking Alison's emails to see if anything back from the reinstatement team yet. Said they've had a message back and are sending someone out today or tomorrow.

Subject: RE: Problem Report: Collapsed drain cover (Reference: 635395)


10/07/2019 11:27: Spoke to Declan , 08000093960 (opt 1 wait 3 mins) about  31172996 needing doing again. 15th Oct 2018.
Top two pictures below are from Jan 2019, when we started to notice it collapse again, and bottom pic is from June 2019 when as you can see the surrounding tiles are collapsing too 
                           Latest image taken 10 July 2019
  

10/07/2019 12:05: Job Ref raised for this afternoon : 101 770 3623 - Emergency damage safety. Spoke to Tony 0800 316 9800.

10/07/2019 12:08: Spoke to Chris Wright, he's raised job ref 31315539



10/07/2019 15:58: Spoke to Leo, 08003169800, job ref 31315539, he's going to escalate it to priority as they've missed the SLA to come out and look at it in the 2 hours

13/07/2019 10:31:53: Thames water seen coming to collect non-existent barriers that should have been left to protect the wet cement.




Friday, 9 February 2018

How to replace the watch battery in Logitech K750 solar power keyboard


  1. Buy this battery http://www.watchbattery.co.uk/shop/products/BB-ML2032.shtml
  2. Open the battery cover on the back of the keyboard, you’ll need a small screw driver to get the cover out
  3. Take out the old one and fit the new one
  4. Leave the keyboard in the light somewhere to fully charge up the new battery

Watch this video if you want to see this done…

https://www.youtube.com/watch?v=sKZXyUjytmE

image

Friday, 5 January 2018

How to fix blurry images in Google Chrome

Problem
When browsing sites with thumbnail images, those images appear blurred in Chrome, but not in other browsers such as Internet Explorer
Resolution
Uncheck the use hardware acceleration option in chrome settings.
  1. Open Chrome
  2. Navigate to chrome://settings
  3. Scroll to the bottom, and expand the Advanced options
  4. Near the bottom, uncheck the Use hardware acceleration when available option, and then click the RELAUNCH link that appears after you change this option.
image

Problem 2
When browsing google maps, image and text appears blurred in Chrome, but not in other browsers such as Internet Explorer
Resolution
  1. Open Chrome
  2. Navigate to http://maps.google.co.uk/maps 
  3. Press F12 to open Developer tools 
  4. Click on the Application Tab, and then select Clear Storage
  5. Check Local and session storage,  Cookies, Cache Storage and Application Cache
  6. Click Clear site data
  7. Relaunch Google Chrome

Saturday, 14 October 2017

How to by pass the Jaguary X-Type enter security pin screen after changing battery

How to bypass security code on Jaguar X-Type touchscreen Satellite Navigational units.


Just hold the skip track, AMEM and PTY buttons together...



https://www.youtube.com/watch?v=MD2nxscRitw

Friday, 15 September 2017

Inline Images not showing for Work Items in Visual Studio with 401 unauthorized error

To fix this, right click the broken image link from the Visual studio work item description pane, then copy the link from the properties dialog (it looks like a label, but you can select all on it by right mouse clicking).

image

Then simply copy and paste that into Internet Explorer bar, and when prompted enter your credentials.

Next, back in Visual Studio, just click the refresh work item button on the header of the work item window, and do this once for each in line image in the description.

Thursday, 31 August 2017

How to fix battery drain issue on Samsung Galaxy S5 G900F

DO NOT DO FACTORY RESET, just wipe cache partitions.

Turn off the device.
Press and hold the following three buttons at the same time: Volume Up key, Home key, and Power key.
When the phone vibrates, release the Power key but continue to press and hold the Volume Up key and the Home key.
When the Android System Recovery screen appears, release the Volume Up and Home keys.
Press the Volume Down key to highlight wipe cache partition.
Press the Power key to select.
When the wipe cache partition is complete, Reboot system now is highlighted.
Press the Power key to restart the device.


Thanks to  https://thedroidguy.com/2017/01/solutions-for-galaxy-s5-battery-drain-issue-1049822

How to find the last interactive logons in Windows using PowerShell

Use the following powershell script to find the last users to login to a box since a given date, in this case the 21st April 2022 at 12pm un...