Link to home
Start Free TrialLog in
Avatar of IT Guy
IT Guy

asked on

script to add DWORD SearchboxTaskbarMode to windows 10

how can i make this into a bat script so i can add to GPO


REG ADD HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f
Avatar of oBdA
oBdA

Well, you could do it the old-fashioned way and just save that as it is as Whatever.cmd, and assign it as a logon (not startup!) script:
Create System Startup / Shutdown and User Logon / Logoff Scripts
https://technet.microsoft.com/en-us/magazine/dd630947.aspx

But since Server 2008, there are Group Policy Preferences, which allow you to configure registry settings as required, without using scripts:
Configure a Registry Item
https://technet.microsoft.com/en-us/library/cc753092.aspx
Avatar of IT Guy

ASKER

thanks oBdA - yes i went through adding to the registry but its not working - after its added via GPO it not showing up on the client PC's that is why i went with the script
Did you check whether the GPO in question was applied to the user(!) in question?
Either through the GPMC (can run remotely against a client), or locally on the client with rsop.msc?
Avatar of IT Guy

ASKER

yes i checked this is what my GPO results looks like

User generated image
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of IT Guy

ASKER

ok trying it now...
Avatar of IT Guy

ASKER

i added the script to logon in the GPO and its not even showing up the the GPresults. the logs are not showing up on the user PC either. its about 20 minutes now since

User generated image
Going from memory here: select the GPO (not a link) in the left pane; in the right pane, under one of the tabs, you should see the replication state of this GPO for your DCs.
Start troubleshooting from there.
Avatar of IT Guy

ASKER

well - replication looks fine . i will check other way s to deploy. thanks for all your help oBdA
Avatar of IT Guy

ASKER

set it as a logon script and attach it to user profile