5i365 (我心飞扬)当前离线
上尉
$pList = [xml](get-content "C:\Users\Administrator\Desktop\test.plist") | ConvertFrom-Plist #使用函数修改plist文件某个键的值, 非常方便$pList.GUI.ScreenResolution = "1920x1080" #显示plist文件下某个节点下的值$pList.ACPI.DSDT.Patches #需求1: 将上面显示的值中,Comment 为 Rename GFX0 to IGPU的那组值删除 #需求2: 将下面的一组值, 添加到ACPI.DSDT.Patches节点下 <# <dict> <key>Find</key> <data>SEVTTQ==</data> <key>Comment</key> <string>Rename aa to bb</string> <key>Disabled</key> <false/> <key>Replace</key> <data>SU1BTA==</data> </dict>#> #输出的文件$pList | ConvertTo-Plist -Indent "`t" -StateEncodingAs 'UTF-8' -Depth 6 | Set-Content 'C:\Users\Administrator\Desktop\test-ok.plist' -Encoding 'UTF8'COPY
zaqmlp 当前离线
TOP
xczxczxcz (Tα酱油路过)当前离线
中尉