Taskbar Auto hide option on a custom Start Menu XML File + Hide Clock, Hide Search and Hide Task view Button, is it Possible?

F

FredBastos

Hello,


I'm Creating a Standard windows Desktop for the computers in my company, so I want to Import a custom Start Menu, and Taskbar along with some group policies.

So it's rather easy to deploy a Custom Start Menu and Taskbar, I'm Looking for a rather Clean one, here's my code so Far for the XML File


Code Block:

<LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification" xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout">

<LayoutOptions StartTileGroupCellWidth="6" />

<DefaultLayoutOverride>

<StartLayoutCollection>

<defaultlayout:StartLayout GroupCellWidth="6" />

</StartLayoutCollection>

</DefaultLayoutOverride>

<CustomTaskbarLayoutCollection PinListPlacement="Replace">

<defaultlayout:TaskbarLayout>

<taskbar:TaskbarPinList>

</taskbar:TaskbarPinList>

</defaultlayout:TaskbarLayout>

</CustomTaskbarLayoutCollection>

</LayoutModificationTemplate>


What I'm missing is a way to turn the Task bar Auto hide on, is there a XML command that will allow me to do this?

I'm also looking for a way to disable the Clock, Search bar and Taskview Button.

I know that I can click all those off but I would prefer to make it trough a script, default XML Start Menu File or Group Policiy (because those are easy to deploy)


I know that there's group policy to hide the Clock

and one can disable the Search box & Taskview button with the following registry keys, changed in Powershell:


New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -Value "0" -PropertyType DWORD -Force



New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowTaskViewButton" -Value "0" -PropertyType DWORD -Force


And Theoretically I can set the Autohide with:


&{$p="HKU:\[$sid]\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3";$v=(Get-ItemProperty -LiteralPath $p).Settings;$v[8]=2;&Set-ItemProperty -LiteralPath $p -Name Settings -Value $v;&Stop-Process -f -ProcessName explorer}


But this is not 100% Reliable since I'm trying to change these settings for just one user.

Is there a way to do it trough an custom XML?


Thx in Advance

Continue reading...
 
Back
Top Bottom