question

Stijn-9548 avatar image
0 Votes"
Stijn-9548 asked ChristianStepStoneWinterberg answered

GPO place file or shortcut to synchronised OneDrive desktop

For our users we sync there desktops and document automatically with OneDrive.
Through GPO I want to place a shortcut on the users desktop. When I try I see in the event viewer of the user his computer the following error:
The user 'reference item in the Group Policy Object did not apply because it failed with error code '0x80070002 The system cannot find the file specified.' This error was suppressed.

So I thought let's make the shortcut available on a share and do a file copy to the user his desktop.
When I copy it to %USERPROFILE%\Desktop the file gets dropped on the local computer desktop, not the OneDrive Desktop.
When I copy it to %ONEDRIVE%\Desktop the GPO creates a folder Desktop and put the files in there.

How can I get this problem fixed?

windows-group-policy
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @Stijn-9548,

Thank you so much for posting here.

According to our decryption, I understand that we would like to set GPO to place a shortcut on the users' desktop. But the GPO could not be applied since the system could not find the file specified. If possible. would you please kindly share us the screenshot of the configuration of the GPO?

Thanks and looking forward to hearing from you.

Best regards,
Hannah Xiong

0 Votes 0 ·
Stijn-9548 avatar image
0 Votes"
Stijn-9548 answered

Here is the screenshot.
But like sair the users desktop is syncronised with OneDrive.
117806-shortcut-gpo.png



shortcut-gpo.png (13.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HannahXiong-MSFT avatar image
0 Votes"
HannahXiong-MSFT answered HannahXiong-MSFT commented

Hello @Stijn-9548,

Thank you so much for your kindly reply.

Below is my testing, and hope it could be of some help to you.

The user desktop is synchronized with OneDrive.

118090-image.png

And then I configured the shortcut GPO as shown below.

118110-image.png

118079-image.png

Then come back to the client with the user account logged in. The shortcut is created on the desktop and it is also synchronized to the OneDrive.

118161-image.png

118114-image.png

As for our issue, the system cannot find the file specified. When we configured the Target Path, did we directly enter the path or did we select the object via clicking the three points? Hope we could kindly have a check of the target path.

118162-image.png

For any question, please feel free to contact us.

Best regards,
Hannah Xiong

============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.



image.png (14.6 KiB)
image.png (51.8 KiB)
image.png (15.9 KiB)
image.png (98.3 KiB)
image.png (16.6 KiB)
image.png (31.0 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @Stijn-9548,

I would like to know how things are going on your end. If you have any questions or concerns about the latest information I provided, please don't hesitate to let me know.

It's my pleasure to be of assistance.


Best regards,
Hannah Xiong

============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.

0 Votes 0 ·
ChristianStepStoneWinterberg avatar image
0 Votes"
ChristianStepStoneWinterberg answered

Hello :-)

I got a similar question about Shortcuts to OneDrive Desktop , the GPO is creating a lot of copies

Setup:
129848-image.png

Desktop:
129896-image.png

Should I change any GPO setting? Anyone has experience with this?

Thanks,
Christian


image.png (75.8 KiB)
image.png (20.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.