Around 6500 NHS Scotland computers still use an outdated operating system, the health minister has confirmed following last week's cyber attack.

Shona Robison confirmed to the Scottish Parliament that 1500 computers across 13 health boards were targeted in the ransomware attack.

NHS Scotland still uses Windows XP, which was released in 2001, on 6500 devices, as well as Windows 2003 and 2007 on others.

The information was released as part of Robison's update to MSPs on the Scottish Government's response to the attack which began on Friday

She told MSPs: "At the moment we understand mainly Windows 2007 and Windows 2003 devices were affected and only a small number of Windows XP devices were affected.

"I know Windows XP has been an issue raised within the media. What I can say about that is there are approximately 6500 XP devices out of around 153,000 total devices, less than 5%."

NHS Scotland staff were locked out of their computers on Friday with a message from the hackers demanding a ransom payment if they wanted to gain access to their files.

The hackers exploited a bug in the outdated Windows XP, 2003 and 2007 operating systems, which many health boards and companies still use.

Robison said she wanted to "reassure patients in Scotland" there had been "no reported breaches of patient data or personal details as a result of the attack".

Routine operations were cancelled across Scotland during the attack, with health boards urging only those who urgently required treatment to visit accident and emergency departments.

Some patients in Lanarkshire, the health board which suffered the worst of the attack, are still waiting for their routine operations to be rescheduled.