Share via


Disable Autoplay and Enable Autotray

Question

Thursday, November 8, 2018 2:44 PM

Hello!

i am trying to create a powershell script or reg hack to disable Autoplay and enable autotray (show all icons) for the current logged in user and all other users logging in on the current device, i have failed miserably with this, i can disable it on the current user but when a new user logs in Autoplay is still enabled and Autotray is disabled.

Any advice or help would be greatly appreciated.

All replies (6)

Friday, November 9, 2018 2:16 AM

Better try Group Policy.

Computer Configuration\Administrative Templates\Windows Components\AutoPlay Policies

Right Click > Edit > Enable the policy.

In Registry Editor open:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer

On the right, create or modify the 32-bit DWORD value named EnableAutoTray.

Set it to 0 to show all notification area icons on the taskbar.
A value data of 1 will hide new icons (this is by default).

Close the Registry Editor.

Sign Out

Reboot

Sign in

S.Sengupta,Microsoft MVP Windows and Devices for IT, Windows Insider MVP


Friday, November 9, 2018 2:46 AM

Hi,

Thanks for your post in our forum.

According to my understanding and researches, try the same registry but in the local machine(HKLM) or just in users(HKEY_USERS) to see if it can affect all the users.

Hope above information can help you.

Thanks for your understanding and support.

Best Regards,

Otto Wang

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Friday, November 9, 2018 7:24 AM

Thank you, Sengupta and Otto, I do not have access to group policy editor, I am a on-site tech on a global corporation, i will try Ottos tip, will keep you posted with my progress.

Regards

Pontus


Friday, November 9, 2018 9:08 AM

Hi,

Thanks for your reply.

I hope it will be helpful.

We will wait for your results.

Thanks for your understanding and support.

Best Regards,

Otto Wang

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Tuesday, November 13, 2018 9:42 AM

Hi,

Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.

Best Regards,

Otto Wang

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Thursday, November 15, 2018 8:21 AM

Hi,

Was your issue resolved?

If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

If no, please reply and tell us the current situation in order to provide further help.

Best Regards,

Otto Wang

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].