Sunday, 23 April 2017

Why was my email rejected ?


It's been rejected!. OK so I made up this completely rubbish address but if you get an email that has been rejected, a so-called "bounced" mail, you can do some good analysis of the reason if you can read the SMTP logs. SMTP being the Simple Mail Transfer Protocol that sends mail between servers and other places too.

Before you yawn this is what you get back.

Generating server: AM5EUR02HT096.mail.protection.outlook.com
kbmregregkrgrgktrgrtb@hotmail.co.uk
SNT004-MC5F20.hotmail.com
Remote Server returned '550 5.1.351 Remote server returned unknown recipient or mailbox unavailable -> 550 Requested action not taken: mailbox unavailable'
Original message headers:
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com;
 s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
 bh=lURfIqW7JBVRaKyNHMwqLzWn5AAyxsprWeqWekgSchc=;
 b=rH8HpA6mqgsmvED575S7sZZ3m6fy36WII+18d68flJNvd0IaNC+lLUb7bpDA90kQ7JH3DJEX5hbER4tORPoZfJW51WYKlGZdFfjBBvTkph4HD3u+yXavkOWhdYK1uTPMKV8DxJusJNWJcX+7uK7zs6cWWaHLm0X4LjHozOhbR71dFXREGzI1eODcOHj7rw0Eb6JtCA7xPwNdCP7GBrfJjhBGX5VfwI0ld1EPPPEeNst3fiIvu2rzfy35uregBnhzZlqKmZDGbel2HeE7bDsO8a8Ix9HdQSIsjEBKBnzNGuKyoma4AKyOUtp/dgUFPgeVhjq+9Dd3rTQbw6eoAXxZRw==
Received: from AM5EUR02FT045.eop-EUR02.prod.protection.outlook.com
 (10.152.8.60) by AM5EUR02HT096.eop-EUR02.prod.protection.outlook.com
 (10.152.9.222) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1019.14; Sun, 23
 Apr 2017 13:13:40 +0000
Actually it goes on a lot longer than this little segment. However this gives you a clue it's not easy to read.
If you use Outlook this is hidden inside the email. You have to expand the message and view the 'properties' of the message and the 'internet headers'. It's in a slightly different menu for different versions of Outlook so you will have to search.
To make the rejection reason a bit more readable go to the Microsoft Remote Connectivity Advisor at this URL; https://testconnectivity.microsoft.com/ 
Once there pick the tab option called Message header Analyzer.
Insert the entire SMTP rejection message. Click on "Analyze headers" and then you will get a neatly formatted mail failure report.

It's a good little email tool for rejected mail. 

Tuesday, 28 March 2017

Windows Azure (almost) free for IT pros

A long time ago IT Pros could get quite a lot from Microsoft to set-up test environments as a "home lab". If you are in IT you can really only understand technology by using hands-on. You can only make recommendations from personal use. Unfortunately not all employers give people resources to keep their knowledge up to date. Instead home learning is a thing.

You can build a home lab with either the free version of ESX from Vmware or a free Hyper-V host from Microsoft. Next an old server or an HP Microserver would get you a basic home virtualisation platform. Software could come with Linux or you could splash out on a Technet Subscription at £99 per year.

Sadly Microsoft ended Technet Subscriptions and replaced them with time limited evaluations. Not so good if you want to set up domain controllers and a test SQL server that you want to return to periodically. However it's better than nothing.

However IT moves on. IT Pros need to understand about cloud services. From a Microsoft perspective this means Azure.

They offer a month trial with £150 of credit. Just sign up with a credit card. I have discovered that the card basically isn't billed because the default billing is set not to charge when you exhaust your credits but just turn it all off. So the £150 is good for 1 month.

If you want to run up some vms and build a virtual network over 30 days then this is a good deal. However I rarely get that concentrated time. So a little more often would suit me. Fortunately you can do that too.

First you need to sign up for Microsoft's cloud essentials; https://www.microsoft.com/itprocloudessentials/en-GB



It's free to join. Sign in with a Microsoft account and you are ready. Once inside head to the offers page.



Finally activate an Azure subscription with £20 per month credit.

So $25 (£20 in the UK) isn't huge. You could run a couple of VMs for maybe a day but looking from the perspective of  a weekend of training that isn't too bad. The main thing is that you get 1 year of this. Over time you have a lot of flexibilty to learn what Azure is all about.

I think it's a good deal for IT Pros and I will be trying it out over the next few months.

Sunday, 19 March 2017

The Last Version of Windows

When Microsoft said that Windows 10 was the "last version of Windows" a lot of people didn't really know what that meant or were more concerned with the "free upgrade for 12 months".

Over time it is really become clear what this is all about. There simply aren't any versions any more unless you are an on-premises IT Pro.

What we are seeing is the monthly patch cycle on patch Tuesday and a couple of feature updates each year designated by year/month numbers. The first year anniversary update was 1607 was the July 2016 update - eventually released in the first few days of August 2016. The point is not to pick apart exact release schedules in the old style monolithic update every few years but rather to recognise we are in a new world. The cloud has now changed versions. You just sit there and your new feature update just piles in until your PC just stops working. Upgrades for life.

Similarly businesses that have gone to the cloud just use Office 365 and Exchange Online.

You can add Office 2016 to your local PC if you have an Office 365 subscription but it's updated monthly. If there is an Office 2018 you will get that. Its an all you can eat buffet. If your small business has an Office 365 account with email you have Exchange Online. Your OneDrive is really Sharepoint. No versions.

So the continuous updating cloud is removing versions. It's a new world for the PC user.

Monday, 27 February 2017

It's Back.

Mobile World Congress 2017 saw the return of Nokia with consumer mobile devices.



Nokia has been restricted on producing mobile phones over recent years because Microsoft bought the brand in order to save Windowsphone. The story is full of irony.

Nokia had been late to understand how much the smartphone industry changed with the iphone. Over the years it had about 50% of the mobile phone market globally and had a massive design, distribution and manufacturing base. Such a huge infrastructure meant high quality and end to end control. Unfortunately Nokia had internal battles. It's own Symbian OS was not really able to produce the new devices inspired by Apple and the mobile internet. Some of it's engineers wanted to turn to a Linux based OS called Meego.

As smartphones dominated sales and Nokia's internal decision on the OS raged a series of decently designed but confusing smartphones came out of the company. Nokia decided it need a new CEO and Stephen Elop, a former Microsoft executive, was appointed. Elop changed the primary OS to Windowsphone. Many people criticised this decision saying Android was the better choice.

Nokia costs were high and it's market share had dropped. Elop reduced staff and many technically well designed phones were produced. The difficulty was that Windowsphone was not well received. As 'apps' dominated with related services Microsoft was found to be in a distant third place.  After committing to Windowsphone Nokia found itself not selling enough product, having high costs but dominating the Windowsphone sales at 97% of all Windowsphones.

Microsoft was slow at developing apps and an ecosystem of compelling consumer services. Google services were never available. Microsoft was obsessional about the US market even though sales in places like Europe, where Nokia was strong, should have had some priority. The net result was Nokia  consumer phones was about to go under. Microsoft paid $7.2 billion to buy the business and license the name. Most of this money was subsequently written off. Financially it was a complete waste for Microsoft that, if they had spent it on developing apps and ecosystem, might have saved Windowsphone.

Nokia can now use it's name for phones again. It has no infrastructure to build phones but former Nokia engineers have formed a company called HMD Global, literally across the road, and have a license to produce Nokia phones. So ex-Nokia people are creating new phones based on Android.

Their pitch to consumers is;

1. It's a Nokia!
2. The Android will be the pure experience without crapware.
3. Security updates monthly.
4. Available at all price points - by which I suspect there will be others coming but the Nokia 3, 5 and 6 look to be in the space vacated by the Nexus 5x.

If the phones are the same hardware quality as the Windowsphones then this combination might suit people annoyed by all those manufacturers who bloat their phones with apps that are not wanted and cant be uninstalled.


Monday, 20 February 2017

835


Mobile gets really serious in 2017 with the 835. The new Qualcomm processor is likely to be seen on almost all new flagship mobile phones this year with the first outing at Mobile World Congress.

The significance is the growth of ARM as the primary design for processors on power restricted mobile devices. Rdeuced instruction set processors didn't lead the PC revolution in the 1980s because desktop PCs had big beefy power supplies, fans, and lots of space. Intel designed ever faster processors with ever larger fans to disperse heat. The problem with mobile devices is that they are not permanently attached to huge power supplies, they need to be very small and have little space to get rid of heat. This has meant performance took a second place to power.

Meanwhile Intel was unable to make viable low power chips. The Intel Atom processor was put on a number of devices but was unpopular because it felt to be under-performing.

The 835 could be the mobile processor that can also power computers. Last autumn Microsoft demonstrated Windows 10 running on an 835 powered PC. Journalists are reporting that future Microsoft Windows portable devices will be 835 powered and will run a mode that allows existing software to run on a different processor family from Intel.

Also coming up is a new Nokia phone powered by the 835 running Android, an LG phone and possibly an update to the Oneplus with the 835.

The 835 looks like it could be game changer for ARM processors as it moves to significantly more powerful mobile computing.

Wednesday, 8 February 2017

Powershell Doesn't Run Scripts "Out of the Box"

Most people think that Powershell is a "scripting language" but when you install the current version the first thing you notice is that you can't run scripts.

In fact you are more likely to see errors like this.

"Install.ps1 cannot be loaded because the execution of scripts is disabled on this system."

The first reaction to this could be something less polite than "Hey I thought this thing did scripts". However scripting has a history in Microsoft that makes this completely normal.

In the beginning Microsoft was a languages company. It wrote computer programming languages for operating systems. It got pushed into operating systems with the launch of the IBM PC and DOS (Disk Operating System). With this the first 'batch language' came into play. You could put a few commands into a file with the extension 'bat' and it would run. The 'autoexec.bat' ran automatically if it was present when a PC booted. The command processor 'command.com' loaded and ran the batch file.

Your 'hello world' announcement in batch would look something like this.

echo off
cls
echo "Hello World"

This was scripting 1980s style. You can still use batch today. Even Windows 10 will run a batch file.

Third parties wrote enhancements to this. One of the most well known in the 1980s was 4DOS from JP Software. You can still get a freeware copy here. I know a little about JP Software because I worked for a firm that sold their products in the UK.

Microsoft introduced two major enhancements to scripting. The first was the'cmd.exe'' command processor introduced with Windows NT. The second was VB Script, a variation on their Basic language product.

Both of these enhancements were created in a world of standalone PCs rarely connected to the outside world. Both assumed the person running the script was the PC's owner, primary user, and knew what they were doing. So they just ran. Anything with the file name ending in .bat, .cmd or .vbs would just run. These scripts ran commands that immediately made changes and, in the case of vbs, quickly were used in Microsoft Office products like Excel, Word, Powerpoint and Outlook.

Outlook was the most dangerous. You could receive an email with a vbs attached and just by clicking on it could run a massively distructive script. Microsoft added approved file extensions into Outlook so criminals just embedded their scripts in Word or Excel documents. The war was on.

On 15th January 2002 Bill Gates sent his "Trustworthy Computing" memo. Microsoft was under massive pressure from it's customers in the new connected world of the Internet that Windows was not sufficiently secure. This was true. Unlike Unix based operating systems that were built to be connected to the Internet the Microsoft world had been a world of standalone unconnected devices. Once these were attached to networks then fundamental design issues could not be dealt with by patches. Gates announced that from 2002 Microsoft's priorities would be; Security, Privacy, Reliability, and Business Integrity,

After the memo the world changed for Microsoft. Every product now had to be secure by default. Windows XP got service pack 2 and Windows Server began to be delivered with services switched off by default and ports blocked and then administrators had to switch on features.

In 2003 project monad was first revealled to developers. This project eventually became Powershell As a product devised in the new "switched off by default world" scripts dont run by default. 

To run a script you need to devise an "execution policy" to make the script secure by default.  A comandlet called Set-ExecutionPolicy is used to decide whether a script should run or not. This does not effect the command line just scripts. 

Microsoft recommend you dont set the policy to "unrestricted" but use signed scripts to protect your system. 

This is why Powershell doesn't run scripts "out of the box".

Saturday, 17 December 2016

Bots

Google Assistant, currently available on the Google Pixel phone, is the default interfaee for Google's first designed phone.

The assistant is also available from the Google Allo application for those who dont have the £650 to buy Google's latest phone.

The idea is that instead of just searching Google you have a conversation with the assistant. The conversation understands context so after asking how long is the Golden Gate Bridge you can follow it up with  "How do I get there?". Google assistant is supposed to work out that what you want is directions to the previously mentioned query. Context.

Behind all this is the idea of "bots". Robotic like beings that live on the internet and respond rather like call centre staff. You might say this is an extension of search or the direction that customer service is heading.

However it's not just Google. Microsoft is also putting money into the bots too.

The Skype Preview app now has a bots section where you can interact with freewheeling bots. The Skyscanner bot allows you to book a flight just by talking to the bot. You can order a pizza, play blackjack and lots more.

Both Microsoft and Google think the future is "bots". I am not so sure. It seems to me that to command a bot you have to have a clear idea of what you are doing. Booking flights is sometimes a matter of browsing, looking a different prices, backing up, checking times and much more. I tend to think websites are better.

However in the era of Snapchat and Twitter maybe bots really are the future.