Windows 10
2019.08.17 15:04

원도우10 시작메뉴 모든타일삭제

조회 수 10 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
Extra Form
출처/참고/홈페이지 https://superuser.com/questions/1068382/...start-menu

시작메뉴에 타일아이콘을 전부다 삭제해주는 파워셀스크립트입니다.

#Delete layout file if it already exists
If(Test-Path C:\Windows\StartLayout.xml)
{
    Remove-Item C:\Windows\StartLayout.xml
}

#Creates the blank layout file
echo "<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"">" >> C:\Windows\StartLayout.xml
echo "  <LayoutOptions StartTileGroupCellWidth=""6"" />" >> C:\Windows\StartLayout.xml
echo "  <DefaultLayoutOverride>" >> C:\Windows\StartLayout.xml
echo "    <StartLayoutCollection>" >> C:\Windows\StartLayout.xml
echo "      <defaultlayout:StartLayout GroupCellWidth=""6"" />" >> C:\Windows\StartLayout.xml
echo "    </StartLayoutCollection>" >> C:\Windows\StartLayout.xml
echo "  </DefaultLayoutOverride>" >> C:\Windows\StartLayout.xml
echo "</LayoutModificationTemplate>" >> C:\Windows\StartLayout.xml

$regAliases = @("HKLM", "HKCU")

#Assign the start layout and force it to apply with "LockedStartLayout" at both the machine and user level
foreach ($regAlias in $regAliases){
    $basePath = $regAlias + ":\SOFTWARE\Policies\Microsoft\Windows"
    $keyPath = $basePath + "\Explorer" 
    IF(!(Test-Path -Path $keyPath)) { 
        New-Item -Path $basePath -Name "Explorer"
    }
    Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 1
    Set-ItemProperty -Path $keyPath -Name "StartLayoutFile" -Value "C:\Windows\StartLayout.xml"
}

#Restart Explorer, open the start menu (necessary to load the new layout), and give it a few seconds to process
Stop-Process -name explorer
Start-Sleep -s 5
$wshell = New-Object -ComObject wscript.shell; $wshell.SendKeys('^{ESCAPE}')
Start-Sleep -s 5

#Enable the ability to pin items again by disabling "LockedStartLayout"
foreach ($regAlias in $regAliases){
    $basePath = $regAlias + ":\SOFTWARE\Policies\Microsoft\Windows"
    $keyPath = $basePath + "\Explorer" 
    Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 0
}

#Restart Explorer and delete the layout file
Stop-Process -name explorer
Remove-Item C:\Windows\StartLayout.xml

스크립트 실행명령어 : Powershell.exe -noprofile -executionpolicy bypass -file "c:\livetiles_delete.ps1"

스크립트 다운로드 :  livetiles_delete.ps1



Who's DNAVI

profile

안녕하세요 macsplex.com 웹마스터 DNAVI입니다. 개인홈페이지는 http://dnavi.info입니다.

컴퓨터에서 돌아가는 OS와 소프트웨어를 설치하고 운영하는데 관심이 많습니다.


사용컴퓨터: 조립컴퓨터(Intel i7-4790K, ASUS MAXIMUS Ranger Vii, Radeon R290),

조립컴퓨터(AMD Phenom X4 630, Gigabyte GA-61P-S3, Nvida GT8600), Apple iMac 2009, MacMini 2018

사용노트북 : Thinkpad T420s, Macbook Air 2011 Mid

사용서버 : Dell PowerEdge R420, R710, HP Microserver Gen8

사용NAS : Synology.DS218+, BUFFALO LinkStation Live LS-XL/E

Atachment
첨부 '1'

XE Login