Steam游戏平台交友 http://sina.lt/bnV3
今天在公司电脑上全新安装了10240,截图如下:
分享一下如何更改锁屏界面,默认是英雄壁纸的那个,替换成自己的
效果图:
粘贴如下内容,保存为1.ps1
- $priPath = “$env:windir\SystemResources\Windows.UI.Logon\Windows.UI.Logon.pri”
- $outputPath = “.\Windows.UI.Logon_new.pri”
- $replacementPath = “.\IMGP0001.JPG”
- $blobToReplace = 3 # set according to your screen resolution:
- # 768×1366 0
- # 1600×2560 1
- # 1200×1920 2
- # 1366×768 3
- # 3840×2160 4
- # 1920×1200 5
- # 1024×768 6
- # 2160×3840 7
- # 768×1024 8
- # 2560×1600 9
-
- if ((Get–FileHash -Path $priPath –Algorithm MD5).Hash -ne “9ECEE07E8E4E8011C02EE6AA8015B0D2”)
- {
- throw “Not compatible with this PRI file.”
- }
-
- $inputStream = [System.IO.File]::OpenRead($priPath)
- $outputStream = [System.IO.File]::Create($outputPath)
- $replacementStream = [System.IO.File]::OpenRead($replacementPath)
-
- $inputReader = New-Object System.IO.BinaryReader -ArgumentList $inputStream
- $outputWriter = New-Object System.IO.BinaryWriter -ArgumentList $outputStream
-
- $inputStream.CopyTo($outputStream)
-
- $replacementLengthAligned = ([Math]::Ceiling($replacementStream.Length / 8) * 8)
- $dataitemLength = 0x20ACF0 + $replacementLengthAligned
-
- $outputStream.Seek(0xBC, “Begin”) | Out-Null
- $outputWriter.Write([int]$dataitemLength)
- $outputStream.Seek(0x1598, “Begin”) | Out-Null
- $outputWriter.Write([int]$dataitemLength)
-
- $outputStream.Seek(0x15A8, “Begin”) | Out-Null
- $outputWriter.Write([int](0x20AC10 + $replacementLengthAligned))
-
- $outputStream.Seek(0x15E0 + $blobToReplace * 8, “Begin”) | Out-Null
- $outputWriter.Write(0x20AC10)
- $outputWriter.Write([int]$replacementStream.Length)
-
- $outputStream.Seek(0x20C268, “Begin”) | Out-Null
- $replacementStream.CopyTo($outputStream)
- $outputStream.Seek($replacementLengthAligned – $replacementStream.Length, “Current”) | Out-Null
- $outputWriter.Write(0xDEF5FADE)
- $outputWriter.Write([int]$dataitemLength)
- $outputWriter.Write(0xDEFFFADE)
- $outputWriter.Write(0x00000000)
- $outputWriter.Write([char[]]“mrm_pri2”)
-
- $outputStream.Seek(0xC, “Begin”) | Out-Null
- $outputWriter.Write([int]$outputStream.Length)
- $outputStream.Seek(–0xC, “End”) | Out-Null
- $outputWriter.Write([int]$outputStream.Length)
-
- $inputReader.Close()
- $outputWriter.Close()
- $replacementStream.Close()
outputPath 是新的pri文件储存位置,replacementPath是新的图像储存位置。
简单方法就是运行这个ps1文件后,将outputPath处生成的新的后缀名为pri的文件覆盖替换C:\Windows\SystemResources\Windows.UI.Logon\Windows.UI.Logon.pri
重启即可 (注意备份源文件)
|