Posts

Showing posts from November, 2020

How to open multiple copies of Regedit.exe at the same time to compare registry keys.

Image
If you want to open multiple copies of Regedit.exe at the same time - for example if you want to compare two regions of the registry you can do this with the command regedit.exe /m regedit.exe -m

Escaping paths with backslashes, single quotes and double quotes in WMI WQL in C#

So we've started digging back into our very old WMI support functions. Given that most of our code now uses PowerShell remoting these have been left in the dark for a while but we thought it was time to refresh them given our Windows agent always falls back on WMI when PowerShell remoting isn't available.... And we still have customers supporting Windows Server 2003. The problem we found was how do you escape path names properly given we were getting some varying results. Let's say for example we have a file here "D:\WmiTest\Dave's.exe" and we want to get the information using the CIM_DataFile class. Correct query You can use single quotes for the query parameter but you must then escape both the backslashes and the single quote. SELECT * FROM CIM_DataFile WHERE Name='D:\\WmiTest\\Dave\'s.exe' Correct query You can use double quotes for the query parameter but you must then escape the backslashes but not  the single quote. SELECT * FROM CIM_DataFi

When enabling data tethering (personal hotspot) on iPhone using LIME you get the error "To enable Personal Hotspot on this account, contact LIME"

Image
When enabling data tethering (personal hotspot) on FLOW in the Caribbean you get the error "To enable Personal Hotspot on this account, contact LIME" LIME was FLOW's previous company name. To solve the issue go to Settings > Mobile Data (Cellular Data in US) > Mobile Data Options (Cellular Data Options in US) From here scroll to the Personal Hotspot section and change the APP from internet to ppinternet. This solution was provided by FLOW here on Twitter https://twitter.com/queensim/status/777624735219716096

Barclays Online Banking International Payment Error Code 33355

So I was just trying to make an international payment using Barclays online banking but it showed an error We are experiencing technical difficulties and cannot complete this transfer. Please ring us on XXXX and quote us Code 33355 Luckily @jonboyes on Twitter had already had this problem and complained in 2017. Looks like Barclays haven't fixed the problem. https://twitter.com/jonboyes/status/915197444211736577 The solution is to NOT paste the long numbers into the web page, but to manually type them in. Once I cleared the fields and retyped them the problem went away.