Thanks kirankumar,
That is what I tried, with a standard machine in my last post, but I will try again.
Here is the whoami

I’m restarting my laptop just in case that helps
I’m going to delete any machines from Orchestrator and start again from scratch and use a standard machine again.
Deleted machines so now nothing in machines
If I go to robots there is this in configured robots (don’t know why this is there, or how to get rid of it)
if I look at unattended sessions, user sessions or classic robots on this page they are all empty.
Now I’m going to add a standard machine (from the machines tab by clicking Add Standard Machine)
For Name I’m putting the whoami value, in Runtime licenses I’m setting Production(unattended) to 1 and Testing to 1 and then click provision
I now have 1 machine
I’m now going to copy the machine key and paste it into UiPath Assistant → preferences → orchestrator settings.
Change to Machine key, it has picked up the machine name (without the user name)
I’m using https://cloud.uipath.com as the Orchestrator URL
and have copied the machine key into the machine key field.
Then I click connect and the Status shows as Connected, unlicensed.
If I go to admin in cloud.uipath.com and click on the edit license allocation icon for my tenant
I can see my licenses for CE which should be sufficient to have 1 robot
If I go back to Orchestrator in my Tenant section I can still see the 1 row in configured robots (still don’t know what that is)
but now I have 2 rows in unattended sessions both say connected (I have got to this point several times before)
UiPath assistant still shows as connected Unlicensed
And if I try to access UiPath Studio I get this.
First a sign in and then when I copy the machine key into the box I get the message You are not authorised to perform this action
I really don’t know what to do to move forward here.