I have checked all settings and found out a service is the culprit as below after running command prompt powercfg -requests
SYSTEM:
[SERVICE] \Device\HarddiskVolume5\Program Files (x86)\Sage\AccountsServiceV26\sg50svc_v26.exe (Sage 50 Accounts Service v26)
AWAYMODE:
None.
EXECUTION:
None.
PERFBOOST:
None.
ACTIVELOCKSCREEN:
None.
I have tried using the override command with all option of what to actually put in after powercfg -reqestoverride but it is still prevented from sleeping by the service.
I can disable the service and sleep works but then I have to re-enable everytime to use Sage Software.
If I shut the machine down or perform sleep from the start menu it shuts down and sleeps ok. The service runs in the background even with Sage not open but it does not matter if the service is shut down manually.