Carl's geek blog
Computer Stuff
More strange Internet Explorer script errors. Why doesn’t the site work!
Dec 11th
Try checking that MSXML 4.0 is installed. I spent many many hours tracing the source of a non-functioning finance lender’s system, which was due to MSXML 4.0 not being installed on some of the workstations.
Unauthenticated network in Vista / 7.
Dec 11th
The “unauthenticated network” in Vista, which means RDP and many other things do not work (basically, it has broke kerberos) was in my case due to two computers having the same name.
I have no idea why I was allowed to join a Windows 7 laptop called Julian-PC to the domain when there was already a Vista desktop called Julian-PC on the domain.
There were no warnings of duplicate names on the network, but adding a new computer to the domain with the same name as an existing computer caused the existing computer’s Computer/Machine Account to be overwritten in active directory, and so the machine was no longer a working domain member and kerberos/authentication was broken. We were seeing “cds.local 2: unauthenticated network” instead of just “cds.local”.
Hope this helps others.
NSS product code change on Nokia E72 caused bricked device.
Dec 11th
I picked up a Vodafone branded Nokia E72, because I was getting really fed up of my Palm Pre for loads of reasons.
The Vodafone UK supplied E72 doesn’t seem to be sim-locked and took my o2 sim card just fine, but I wasn’t happy with the Voda customised firmware, and I wanted the latest firmware update which isn’t available for the Voda product code.
As I have done many times before, I used Nemsis service suite to change the product code to 0573569, which is some EURO – BLACK product code. This product code had the latest firmware available anyway.
I then used Nokia Software Updater and it told me there was new firmware available and it did the upgrade.
That was over an hour ago and the phone has been bricked since, that is until I did a hard reset just now. Phew!
When the USB cable was plugged into the phone, the Nokia USB Flashing Parent device would be detected in device manager for about 10 seconds, then the phone would bleep and it would disappear. NSS, Nokia Software Updater, and Phoenix all couldn’t see an attached deviced.
I was getting ready to tell my supplier that I’d broke another phone (I had an E55 die after not very long ..)
I’m still not quite sure if it’s *, 3, Green/Dial that have to be held down on the full QWERTY Nokias, or if it was Shift, Space, Backspace. I think it was the latter. Anyway, the phone has sprung into life.
Update: It’s definitely Shift, Space & Backspace. Thanks to everyone for the confirmation. Here is a picture of the keys that need to be held down for the hard reset/factory reset:
SYSTEM.SAV, in-place upgrades / repair installs and disappearing registry modifications..
Dec 11th
Many people know that there is a file called SYSTEM.SAV under \windows\system32\config, along with all the other registry hive files. Most people also know that this is a backup copy of the SYSTEM registry hive, from some time in the past – usually years ago, but when does this file become extremely important and useful, and when and why was it created ?
I thought I would write this blog post to describe some observed behaviour / patterns and how this file needs to be utilised for repairing some sometimes seen damage on XP computers.
The problem I sometimes run into is: Corrupt file system or Windows installation. A repair install is undertaken. After the text-mode part of the re-install, when the GUI starts, you are prompted with message “The file ‘Asms’ on Windows XP Professional CD-ROM is needed. Type the path where the file is located, and then click OK.”
What is interesting here is that the Path in which setup is looking for the installation files is something like \\GLOBALROOT\CDROM\Blah. If you change it to D:\i386 this does not help.
So we hit CTRL-F10 for a command-prompt, then we type sysdm.cpl to fire up system properties, and we look in Device Manager. We can see that the CD-ROM device is broken. This is because of the common broken Upper / Lower filters problem. The cure for this is to enter the registry, under HKLM\System\CCS\Control\Class\4D36E965… (the one that says DVD/CD-ROM drives on the right), and remove the UpperFilters or LowerFilters (see http://support.microsoft.com/kb/314060), then reboot.
So we do the above, reboot (nicely, by clicking cancel on the “asms” prompt, or ending setup.exe through taskmgr). After the reboot, setup will automatically restart from the same point, and we hope that the CDROM drive will be working and setup will be able to find the installation files.
But it doesn’t work! We are back where we started! We hit CTRL-F10 and check in device manager, and in the registry, and the UpperFilters or LowerFilters are back! It’s like we’ve been working on a temporary copy of the registry and not the proper registry! Any changes we made were lost when we rebooted!
Well this is what SYSTEM.SAV is all about. It seems that during the in-place upgrade / repair install, Setup is moving the existing SYSTEM registry to SYSTEM.SAV, and it is dumping that into a new SYSTEM each time it is started, or something to that effect.
So, if we want to make registry changes during setup that will be effective upon reboot/restart of setup, we need to make the changes in SYSTEM.SAV. Go into regedit (CTRL-F10 -> regedit). File -> Load Hive. Find the file SYSTEM.SAV in \windows\system32\config, load it, enter “system.sav” for the name. It will show up under that name. Find the UpperFilters or LowerFilters or whatever you need to modify under the system.sav part that now appears in regedit, make the changes, then highlight system.sav again and go to File -> Unload hive.
Reboot, let setup restart, and watch it work*
*You may need to remove the CD-ROM drive from Device Manager (CTRL-F10 -> sysdm.cpl) and then “Scan for hardware changes”..
So now you understand firstly what system.sav is, you also know when it is from and why this old file is there, and have a practical example of why this is useful to know.
BES Express 5 configuration for Exchange 2010, all running on Server 2008 R2 DC, (a.k.a “homebrew SBS 2010″)
Dec 11th
For my own reference..
Exchange 2010 BES Express 5 Configuration
Exchage 2003 is same as for BES Express 4 / BPS, see here.
Exchange 2007 is a bit like 2010, see http://docs.blackberry.com/en/admin/deliverables/14347/Configuring_Exchange_2007_environ_280254_11.jsp
Download / Install Microsoft Exchange Server MAPI Client and CDO 1.2.1 from http://www.microsoft.com/downloads/details.aspx?FamilyID=E17E7F31-079A-43A9-BFF2-0A110307611E&displaylang=en
Add User BESAdmin, with mailbox.
Add BESAdmin to BUILTIN\Administrators group on BES machine
Get-MailboxDatabase | Add-ADPermission -User “BESAdmin” -AccessRights ExtendedRight -ExtendedRights Receive-As, ms-Exch-Store-Admin
Add-RoleGroupMember “View-Only Organization Management” -Member “BESAdmin”
Add-ADPermission -InheritedObjectType User -InheritanceType Descendents -ExtendedRights Send-As -User “BESAdmin” -Identity “CN=Users,DC=YOURDOMAIN,DC=local”
Get-ThrottlingPolicy | where {$_.IsDefault -eq $true} | Set-ThrottlingPolicy -RCAMaxConcurrency $null
New-ManagementRoleAssignment -Name “BES Admin EWS” -Role ApplicationImpersonation -User “BESAdmin”
Notepad \Program Files\Microsoft\Exchange Server\V14\Bin\microsoft.exchange.addressbook.sevice.exe.config, set MaxSessionsPerUser to 100000
Restart Exchange Address book svc
Set-RpcClientAccess –Server YOUREXCHANGESERVER –EncryptionRequired $False
Manually create the GC hostname MAPI registry keys, as per http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB03304, or use the two reg attached .reg files. This fixes the:
MailboxManager::InitializeProfile – OpenMsgStore (0×80040111)
(followed by)
MailboxManager::SubsystemInitialize – OpenMsgStore (0×80040111)
(followed by)
BlackBerry Messaging Agent Blackberry Agent 1 failed to start. Error code 5305
errors
On Server 2008 x64, SQL Express (2005) will not be installed. Install SQL Express 2008 prior.
Log on as BESAdmin, do the install. BES Express 5 wants you to “name” the Blackberry server, and this should not be the same as the name of the computer itself.
Alternatively, buy an HTC Desire.
Digita Accounts / Co Tax Stuff
Dec 11th
Accounts Pro uses SQL DMO, which is depreciated (other components use SMO and are OK), so if using SQL Server 2008 (R2), then download and install Microsoft SQL Server 2005 Backward Compatibility Components onto the Workstations.
This tool (Diagnostics-v2.exe) can be useful for repairing Integration settings, but it will enter an incorrect path for Accounts Pro, so fix that afterwards with the Configuration.exe located at:
C:\Program Files\Common Files\Digita Shared\Integration\v2.00\Configuration.exe.
Make sure location/path is correct, for the various apps.
MalwareBytes Anti-Malware: Run-time error ’5′ – invalid procedure call or argument
Dec 11th
This, and the various other problems (iTunes and other apps would not start), was caused by a very badly incorrect date on the system.
Somehow the date had been set to 27/08/12010, so that’s about ten thousand years in the future. Some programs didn’t like that, understandably, as it’s more digits than I’m sure they’re ready to accept.
In the attached image you can see how the Windows Event Log interprets this date. Apparently 2036 is about as far in the future as it can go.