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
VB ScriptWindows BatchScripting Languages

Avatar of undefined
Last Comment
IT Guy

8/22/2022 - Mon
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
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
oBdA

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?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
IT Guy

ASKER
yes i checked this is what my GPO results looks like

win10-script-error.png
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
IT Guy

ASKER
ok trying it now...
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

2.png
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
oBdA

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.
IT Guy

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

ASKER
set it as a logon script and attach it to user profile
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy