Deployed c186642 with MkDocs version: 1.6.0

This commit is contained in:
2024-10-29 21:36:14 +00:00
parent f4137efa79
commit e8ebc983e5
4 changed files with 5 additions and 74 deletions

View File

@ -32,4 +32,4 @@
</span><span id=__span-1-2><a id=__codelineno-1-2 name=__codelineno-1-2 href=#__codelineno-1-2></a> <span class=n>DISM</span> <span class=p>/</span><span class=n>Online</span> <span class=p>/</span><span class=nb>Disable-Feature</span> <span class=p>/</span><span class=n>FeatureName</span><span class=p>:</span><span class=n>Recall</span>
</span></code></pre></div> <h2 id=undo-script>Undo Script<a class=headerlink href=#undo-script title="Permanent link">&para;</a></h2> <div class="language-powershell highlight"><pre><span></span><code><span id=__span-2-1><a id=__codelineno-2-1 name=__codelineno-2-1 href=#__codelineno-2-1></a> <span class=nb>Write-Host</span> <span class=s2>&quot;Enable Recall&quot;</span>
</span><span id=__span-2-2><a id=__codelineno-2-2 name=__codelineno-2-2 href=#__codelineno-2-2></a> <span class=n>DISM</span> <span class=p>/</span><span class=n>Online</span> <span class=p>/</span><span class=nb>Enable-Feature</span> <span class=p>/</span><span class=n>FeatureName</span><span class=p>:</span><span class=n>Recall</span>
</span></code></pre></div> <h2 id=registry-changes>Registry Changes<a class=headerlink href=#registry-changes title="Permanent link">&para;</a></h2> <p>Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place.</p> <p>You can find information about the registry on <a href=https://www.wikiwand.com/en/Windows_Registry>Wikipedia</a> and <a href=https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry>Microsoft's Website</a>.</p> <h3 id=registry-key-disableaidataanalysis>Registry Key: DisableAIDataAnalysis<a class=headerlink href=#registry-key-disableaidataanalysis title="Permanent link">&para;</a></h3> <p><strong>Type:</strong> DWord</p> <p><strong>Original Value:</strong> 0</p> <p><strong>New Value:</strong> 1</p> <p><a href=https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json>View the JSON file</a></p> <aside class=md-source-file> <span class=md-source-file__fact> <span class=md-icon title="Last update"> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1-2.1-2M12.5 7v5.2l4 2.4-1 1L11 13V7h1.5M11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2v1.8Z"/></svg> </span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 24, 2024</span> </span> </aside> </article> </div> <script>var tabs=__md_get("__tabs");if(Array.isArray(tabs))e:for(var set of document.querySelectorAll(".tabbed-set")){var tab,labels=set.querySelector(".tabbed-labels");for(tab of tabs)for(var label of labels.getElementsByTagName("label"))if(label.innerText.trim()===tab){var input=document.getElementById(label.htmlFor);input.checked=!0;continue e}}</script> <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script> </div> <button type=button class="md-top md-icon" data-md-component=top hidden> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12Z"/></svg> Back to top </button> </main> </div> <div class=md-dialog data-md-component=dialog> <div class="md-dialog__inner md-typeset"></div> </div> <script id=__config type=application/json>{"base": "../../../..", "features": ["navigation.tabs", "navigation.sections", "toc.integrate", "navigation.top", "search.suggest", "search.highlight", "content.tabs.link", "content.code.annotation", "content.code.copy"], "search": "../../../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script> <script src=../../../../assets/javascripts/bundle.fe8b6f2b.min.js></script> </body> </html>
</span></code></pre></div> <h2 id=registry-changes>Registry Changes<a class=headerlink href=#registry-changes title="Permanent link">&para;</a></h2> <p>Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place.</p> <p>You can find information about the registry on <a href=https://www.wikiwand.com/en/Windows_Registry>Wikipedia</a> and <a href=https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry>Microsoft's Website</a>.</p> <h3 id=registry-key-disableaidataanalysis>Registry Key: DisableAIDataAnalysis<a class=headerlink href=#registry-key-disableaidataanalysis title="Permanent link">&para;</a></h3> <p><strong>Type:</strong> DWord</p> <p><strong>Original Value:</strong> 0</p> <p><strong>New Value:</strong> 1</p> <p><a href=https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json>View the JSON file</a></p> <aside class=md-source-file> <span class=md-source-file__fact> <span class=md-icon title="Last update"> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1-2.1-2M12.5 7v5.2l4 2.4-1 1L11 13V7h1.5M11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2v1.8Z"/></svg> </span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 29, 2024</span> </span> </aside> </article> </div> <script>var tabs=__md_get("__tabs");if(Array.isArray(tabs))e:for(var set of document.querySelectorAll(".tabbed-set")){var tab,labels=set.querySelector(".tabbed-labels");for(tab of tabs)for(var label of labels.getElementsByTagName("label"))if(label.innerText.trim()===tab){var input=document.getElementById(label.htmlFor);input.checked=!0;continue e}}</script> <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script> </div> <button type=button class="md-top md-icon" data-md-component=top hidden> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12Z"/></svg> Back to top </button> </main> </div> <div class=md-dialog data-md-component=dialog> <div class="md-dialog__inner md-typeset"></div> </div> <script id=__config type=application/json>{"base": "../../../..", "features": ["navigation.tabs", "navigation.sections", "toc.integrate", "navigation.top", "search.suggest", "search.highlight", "content.tabs.link", "content.code.annotation", "content.code.copy"], "search": "../../../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script> <script src=../../../../assets/javascripts/bundle.fe8b6f2b.min.js></script> </body> </html>

View File

@ -7,73 +7,4 @@
</span><span id=__span-0-7><a id=__codelineno-0-7 name=__codelineno-0-7 href=#__codelineno-0-7></a><span class=w> </span><span class=nt>&quot;ButtonWidth&quot;</span><span class=p>:</span><span class=w> </span><span class=s2>&quot;300&quot;</span><span class=p>,</span>
</span><span id=__span-0-8><a id=__codelineno-0-8 name=__codelineno-0-8 href=#__codelineno-0-8></a><span class=w> </span><span class=nt>&quot;link&quot;</span><span class=p>:</span><span class=w> </span><span class=s2>&quot;https://christitustech.github.io/winutil/dev/tweaks/Shortcuts/Shortcut&quot;</span>
</span><span id=__span-0-9><a id=__codelineno-0-9 name=__codelineno-0-9 href=#__codelineno-0-9></a><span class=p>}</span>
</span></code></pre></div> </details> <h2 id=function-invoke-wpfshortcut>Function: Invoke-WPFShortcut<a class=headerlink href=#function-invoke-wpfshortcut title="Permanent link">&para;</a></h2> <div class="language-powershell highlight"><pre><span></span><code><span id=__span-1-1><a id=__codelineno-1-1 name=__codelineno-1-1 href=#__codelineno-1-1></a><span class=k>function</span> <span class=nb>Invoke-WPFShortcut</span> <span class=p>{</span>
</span><span id=__span-1-2><a id=__codelineno-1-2 name=__codelineno-1-2 href=#__codelineno-1-2></a> <span class=cm>&lt;#</span>
</span><span id=__span-1-3><a id=__codelineno-1-3 name=__codelineno-1-3 href=#__codelineno-1-3></a>
</span><span id=__span-1-4><a id=__codelineno-1-4 name=__codelineno-1-4 href=#__codelineno-1-4></a><span class=cm> </span><span class=sd>.SYNOPSIS</span>
</span><span id=__span-1-5><a id=__codelineno-1-5 name=__codelineno-1-5 href=#__codelineno-1-5></a><span class=cm> Creates a shortcut and prompts for a save location</span>
</span><span id=__span-1-6><a id=__codelineno-1-6 name=__codelineno-1-6 href=#__codelineno-1-6></a>
</span><span id=__span-1-7><a id=__codelineno-1-7 name=__codelineno-1-7 href=#__codelineno-1-7></a><span class=cm> </span><span class=sd>.PARAMETER</span><span class=cm> ShortcutToAdd</span>
</span><span id=__span-1-8><a id=__codelineno-1-8 name=__codelineno-1-8 href=#__codelineno-1-8></a><span class=cm> The name of the shortcut to add</span>
</span><span id=__span-1-9><a id=__codelineno-1-9 name=__codelineno-1-9 href=#__codelineno-1-9></a>
</span><span id=__span-1-10><a id=__codelineno-1-10 name=__codelineno-1-10 href=#__codelineno-1-10></a><span class=cm> </span><span class=sd>.PARAMETER</span><span class=cm> RunAsAdmin</span>
</span><span id=__span-1-11><a id=__codelineno-1-11 name=__codelineno-1-11 href=#__codelineno-1-11></a><span class=cm> A boolean value to make &#39;Run as administrator&#39; property on (true) or off (false), defaults to off</span>
</span><span id=__span-1-12><a id=__codelineno-1-12 name=__codelineno-1-12 href=#__codelineno-1-12></a>
</span><span id=__span-1-13><a id=__codelineno-1-13 name=__codelineno-1-13 href=#__codelineno-1-13></a><span class=cm> #&gt;</span>
</span><span id=__span-1-14><a id=__codelineno-1-14 name=__codelineno-1-14 href=#__codelineno-1-14></a> <span class=k>param</span><span class=p>(</span>
</span><span id=__span-1-15><a id=__codelineno-1-15 name=__codelineno-1-15 href=#__codelineno-1-15></a> <span class=nv>$ShortcutToAdd</span><span class=p>,</span>
</span><span id=__span-1-16><a id=__codelineno-1-16 name=__codelineno-1-16 href=#__codelineno-1-16></a> <span class=no>[bool]</span><span class=nv>$RunAsAdmin</span> <span class=p>=</span> <span class=nv>$false</span>
</span><span id=__span-1-17><a id=__codelineno-1-17 name=__codelineno-1-17 href=#__codelineno-1-17></a> <span class=p>)</span>
</span><span id=__span-1-18><a id=__codelineno-1-18 name=__codelineno-1-18 href=#__codelineno-1-18></a>
</span><span id=__span-1-19><a id=__codelineno-1-19 name=__codelineno-1-19 href=#__codelineno-1-19></a> <span class=c># Preper the Shortcut Fields and add an a Custom Icon if it&#39;s available, else don&#39;t add a Custom Icon.</span>
</span><span id=__span-1-20><a id=__codelineno-1-20 name=__codelineno-1-20 href=#__codelineno-1-20></a>
</span><span id=__span-1-21><a id=__codelineno-1-21 name=__codelineno-1-21 href=#__codelineno-1-21></a> <span class=k>Switch</span> <span class=p>(</span><span class=nv>$ShortcutToAdd</span><span class=p>)</span> <span class=p>{</span>
</span><span id=__span-1-22><a id=__codelineno-1-22 name=__codelineno-1-22 href=#__codelineno-1-22></a> <span class=s2>&quot;WinUtil&quot;</span> <span class=p>{</span>
</span><span id=__span-1-23><a id=__codelineno-1-23 name=__codelineno-1-23 href=#__codelineno-1-23></a> <span class=c># Use Powershell 7 if installed and fallback to PS5 if not</span>
</span><span id=__span-1-24><a id=__codelineno-1-24 name=__codelineno-1-24 href=#__codelineno-1-24></a> <span class=k>if</span> <span class=p>(</span><span class=nb>Get-Command</span> <span class=s2>&quot;pwsh&quot;</span> <span class=n>-ErrorAction</span> <span class=n>SilentlyContinue</span><span class=p>)</span> <span class=p>{</span>
</span><span id=__span-1-25><a id=__codelineno-1-25 name=__codelineno-1-25 href=#__codelineno-1-25></a> <span class=nv>$shell</span> <span class=p>=</span> <span class=s2>&quot;pwsh.exe&quot;</span>
</span><span id=__span-1-26><a id=__codelineno-1-26 name=__codelineno-1-26 href=#__codelineno-1-26></a> <span class=p>}</span> <span class=k>else</span> <span class=p>{</span>
</span><span id=__span-1-27><a id=__codelineno-1-27 name=__codelineno-1-27 href=#__codelineno-1-27></a> <span class=nv>$shell</span> <span class=p>=</span> <span class=s2>&quot;powershell.exe&quot;</span>
</span><span id=__span-1-28><a id=__codelineno-1-28 name=__codelineno-1-28 href=#__codelineno-1-28></a> <span class=p>}</span>
</span><span id=__span-1-29><a id=__codelineno-1-29 name=__codelineno-1-29 href=#__codelineno-1-29></a>
</span><span id=__span-1-30><a id=__codelineno-1-30 name=__codelineno-1-30 href=#__codelineno-1-30></a> <span class=nv>$shellArgs</span> <span class=p>=</span> <span class=s2>&quot;-ExecutionPolicy Bypass -Command </span><span class=se>`&quot;</span><span class=s2>Start-Process $shell -verb runas -ArgumentList </span><span class=se>`&#39;</span><span class=s2>-Command </span><span class=se>`&quot;</span><span class=s2>irm https://github.com/ChrisTitusTech/winutil/releases/latest/download/winutil.ps1 | iex</span><span class=se>`&quot;`&#39;</span><span class=s2>&quot;</span>
</span><span id=__span-1-31><a id=__codelineno-1-31 name=__codelineno-1-31 href=#__codelineno-1-31></a>
</span><span id=__span-1-32><a id=__codelineno-1-32 name=__codelineno-1-32 href=#__codelineno-1-32></a> <span class=nv>$DestinationName</span> <span class=p>=</span> <span class=s2>&quot;WinUtil.lnk&quot;</span>
</span><span id=__span-1-33><a id=__codelineno-1-33 name=__codelineno-1-33 href=#__codelineno-1-33></a> <span class=p>}</span>
</span><span id=__span-1-34><a id=__codelineno-1-34 name=__codelineno-1-34 href=#__codelineno-1-34></a> <span class=p>}</span>
</span><span id=__span-1-35><a id=__codelineno-1-35 name=__codelineno-1-35 href=#__codelineno-1-35></a>
</span><span id=__span-1-36><a id=__codelineno-1-36 name=__codelineno-1-36 href=#__codelineno-1-36></a> <span class=c># Show a File Dialog Browser, to let the User choose the Name and Location of where to save the Shortcut</span>
</span><span id=__span-1-37><a id=__codelineno-1-37 name=__codelineno-1-37 href=#__codelineno-1-37></a> <span class=nv>$FileBrowser</span> <span class=p>=</span> <span class=nb>New-Object</span> <span class=n>System</span><span class=p>.</span><span class=n>Windows</span><span class=p>.</span><span class=n>Forms</span><span class=p>.</span><span class=n>SaveFileDialog</span>
</span><span id=__span-1-38><a id=__codelineno-1-38 name=__codelineno-1-38 href=#__codelineno-1-38></a> <span class=nv>$FileBrowser</span><span class=p>.</span><span class=n>InitialDirectory</span> <span class=p>=</span> <span class=no>[Environment]</span><span class=p>::</span><span class=n>GetFolderPath</span><span class=p>(</span><span class=s1>&#39;Desktop&#39;</span><span class=p>)</span>
</span><span id=__span-1-39><a id=__codelineno-1-39 name=__codelineno-1-39 href=#__codelineno-1-39></a> <span class=nv>$FileBrowser</span><span class=p>.</span><span class=k>Filter</span> <span class=p>=</span> <span class=s2>&quot;Shortcut Files (*.lnk)|*.lnk&quot;</span>
</span><span id=__span-1-40><a id=__codelineno-1-40 name=__codelineno-1-40 href=#__codelineno-1-40></a> <span class=nv>$FileBrowser</span><span class=p>.</span><span class=n>FileName</span> <span class=p>=</span> <span class=nv>$DestinationName</span>
</span><span id=__span-1-41><a id=__codelineno-1-41 name=__codelineno-1-41 href=#__codelineno-1-41></a>
</span><span id=__span-1-42><a id=__codelineno-1-42 name=__codelineno-1-42 href=#__codelineno-1-42></a> <span class=c># Do an Early Return if the Save Operation was canceled by User&#39;s Input.</span>
</span><span id=__span-1-43><a id=__codelineno-1-43 name=__codelineno-1-43 href=#__codelineno-1-43></a> <span class=nv>$FileBrowserResult</span> <span class=p>=</span> <span class=nv>$FileBrowser</span><span class=p>.</span><span class=n>ShowDialog</span><span class=p>()</span>
</span><span id=__span-1-44><a id=__codelineno-1-44 name=__codelineno-1-44 href=#__codelineno-1-44></a> <span class=nv>$DialogResultEnum</span> <span class=p>=</span> <span class=nb>New-Object</span> <span class=n>System</span><span class=p>.</span><span class=n>Windows</span><span class=p>.</span><span class=n>Forms</span><span class=p>.</span><span class=n>DialogResult</span>
</span><span id=__span-1-45><a id=__codelineno-1-45 name=__codelineno-1-45 href=#__codelineno-1-45></a> <span class=k>if</span> <span class=p>(</span><span class=o>-not</span> <span class=p>(</span><span class=nv>$FileBrowserResult</span> <span class=o>-eq</span> <span class=nv>$DialogResultEnum</span><span class=p>::</span><span class=n>OK</span><span class=p>))</span> <span class=p>{</span>
</span><span id=__span-1-46><a id=__codelineno-1-46 name=__codelineno-1-46 href=#__codelineno-1-46></a> <span class=k>return</span>
</span><span id=__span-1-47><a id=__codelineno-1-47 name=__codelineno-1-47 href=#__codelineno-1-47></a> <span class=p>}</span>
</span><span id=__span-1-48><a id=__codelineno-1-48 name=__codelineno-1-48 href=#__codelineno-1-48></a>
</span><span id=__span-1-49><a id=__codelineno-1-49 name=__codelineno-1-49 href=#__codelineno-1-49></a> <span class=c># Prepare the Shortcut paramter</span>
</span><span id=__span-1-50><a id=__codelineno-1-50 name=__codelineno-1-50 href=#__codelineno-1-50></a> <span class=nv>$WshShell</span> <span class=p>=</span> <span class=nb>New-Object</span> <span class=n>-comObject</span> <span class=n>WScript</span><span class=p>.</span><span class=n>Shell</span>
</span><span id=__span-1-51><a id=__codelineno-1-51 name=__codelineno-1-51 href=#__codelineno-1-51></a> <span class=nv>$Shortcut</span> <span class=p>=</span> <span class=nv>$WshShell</span><span class=p>.</span><span class=n>CreateShortcut</span><span class=p>(</span><span class=nv>$FileBrowser</span><span class=p>.</span><span class=n>FileName</span><span class=p>)</span>
</span><span id=__span-1-52><a id=__codelineno-1-52 name=__codelineno-1-52 href=#__codelineno-1-52></a> <span class=nv>$Shortcut</span><span class=p>.</span><span class=n>TargetPath</span> <span class=p>=</span> <span class=nv>$shell</span>
</span><span id=__span-1-53><a id=__codelineno-1-53 name=__codelineno-1-53 href=#__codelineno-1-53></a> <span class=nv>$Shortcut</span><span class=p>.</span><span class=n>Arguments</span> <span class=p>=</span> <span class=nv>$shellArgs</span>
</span><span id=__span-1-54><a id=__codelineno-1-54 name=__codelineno-1-54 href=#__codelineno-1-54></a> <span class=k>if</span> <span class=p>(</span><span class=nb>Test-Path</span> <span class=n>-Path</span> <span class=nv>$winutildir</span><span class=p>[</span><span class=s2>&quot;logo.ico&quot;</span><span class=p>])</span> <span class=p>{</span>
</span><span id=__span-1-55><a id=__codelineno-1-55 name=__codelineno-1-55 href=#__codelineno-1-55></a> <span class=nv>$shortcut</span><span class=p>.</span><span class=n>IconLocation</span> <span class=p>=</span> <span class=nv>$winutildir</span><span class=p>[</span><span class=s2>&quot;logo.ico&quot;</span><span class=p>]</span>
</span><span id=__span-1-56><a id=__codelineno-1-56 name=__codelineno-1-56 href=#__codelineno-1-56></a> <span class=p>}</span>
</span><span id=__span-1-57><a id=__codelineno-1-57 name=__codelineno-1-57 href=#__codelineno-1-57></a>
</span><span id=__span-1-58><a id=__codelineno-1-58 name=__codelineno-1-58 href=#__codelineno-1-58></a> <span class=c># Save the Shortcut to disk</span>
</span><span id=__span-1-59><a id=__codelineno-1-59 name=__codelineno-1-59 href=#__codelineno-1-59></a> <span class=nv>$Shortcut</span><span class=p>.</span><span class=n>Save</span><span class=p>()</span>
</span><span id=__span-1-60><a id=__codelineno-1-60 name=__codelineno-1-60 href=#__codelineno-1-60></a>
</span><span id=__span-1-61><a id=__codelineno-1-61 name=__codelineno-1-61 href=#__codelineno-1-61></a> <span class=k>if</span> <span class=p>(</span><span class=nv>$RunAsAdmin</span> <span class=o>-eq</span> <span class=nv>$true</span><span class=p>)</span> <span class=p>{</span>
</span><span id=__span-1-62><a id=__codelineno-1-62 name=__codelineno-1-62 href=#__codelineno-1-62></a> <span class=nv>$bytes</span> <span class=p>=</span> <span class=no>[System.IO.File]</span><span class=p>::</span><span class=n>ReadAllBytes</span><span class=p>(</span><span class=nv>$FileBrowser</span><span class=p>.</span><span class=n>FileName</span><span class=p>)</span>
</span><span id=__span-1-63><a id=__codelineno-1-63 name=__codelineno-1-63 href=#__codelineno-1-63></a> <span class=c># Set byte value at position 0x15 in hex, or 21 in decimal, from the value 0x00 to 0x20 in hex</span>
</span><span id=__span-1-64><a id=__codelineno-1-64 name=__codelineno-1-64 href=#__codelineno-1-64></a> <span class=nv>$bytes</span><span class=p>[</span><span class=n>0x15</span><span class=p>]</span> <span class=p>=</span> <span class=nv>$bytes</span><span class=p>[</span><span class=n>0x15</span><span class=p>]</span> <span class=o>-bor</span> <span class=n>0x20</span>
</span><span id=__span-1-65><a id=__codelineno-1-65 name=__codelineno-1-65 href=#__codelineno-1-65></a> <span class=no>[System.IO.File]</span><span class=p>::</span><span class=n>WriteAllBytes</span><span class=p>(</span><span class=nv>$FileBrowser</span><span class=p>.</span><span class=n>FileName</span><span class=p>,</span> <span class=nv>$bytes</span><span class=p>)</span>
</span><span id=__span-1-66><a id=__codelineno-1-66 name=__codelineno-1-66 href=#__codelineno-1-66></a> <span class=p>}</span>
</span><span id=__span-1-67><a id=__codelineno-1-67 name=__codelineno-1-67 href=#__codelineno-1-67></a>
</span><span id=__span-1-68><a id=__codelineno-1-68 name=__codelineno-1-68 href=#__codelineno-1-68></a> <span class=nb>Write-Host</span> <span class=s2>&quot;Shortcut for $ShortcutToAdd has been saved to </span><span class=p>$(</span><span class=nv>$FileBrowser</span><span class=p>.</span><span class=n>FileName</span><span class=p>)</span><span class=s2> with &#39;Run as administrator&#39; set to $RunAsAdmin&quot;</span>
</span><span id=__span-1-69><a id=__codelineno-1-69 name=__codelineno-1-69 href=#__codelineno-1-69></a><span class=p>}</span>
</span></code></pre></div> <p><a href=https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json>View the JSON file</a></p> <aside class=md-source-file> <span class=md-source-file__fact> <span class=md-icon title="Last update"> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1-2.1-2M12.5 7v5.2l4 2.4-1 1L11 13V7h1.5M11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2v1.8Z"/></svg> </span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">August 7, 2024</span> </span> </aside> </article> </div> <script>var tabs=__md_get("__tabs");if(Array.isArray(tabs))e:for(var set of document.querySelectorAll(".tabbed-set")){var tab,labels=set.querySelector(".tabbed-labels");for(tab of tabs)for(var label of labels.getElementsByTagName("label"))if(label.innerText.trim()===tab){var input=document.getElementById(label.htmlFor);input.checked=!0;continue e}}</script> <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script> </div> <button type=button class="md-top md-icon" data-md-component=top hidden> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12Z"/></svg> Back to top </button> </main> </div> <div class=md-dialog data-md-component=dialog> <div class="md-dialog__inner md-typeset"></div> </div> <script id=__config type=application/json>{"base": "../../../..", "features": ["navigation.tabs", "navigation.sections", "toc.integrate", "navigation.top", "search.suggest", "search.highlight", "content.tabs.link", "content.code.annotation", "content.code.copy"], "search": "../../../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script> <script src=../../../../assets/javascripts/bundle.fe8b6f2b.min.js></script> </body> </html>
</span></code></pre></div> </details> <aside class=md-source-file> <span class=md-source-file__fact> <span class=md-icon title="Last update"> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1-2.1-2M12.5 7v5.2l4 2.4-1 1L11 13V7h1.5M11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2v1.8Z"/></svg> </span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">October 29, 2024</span> </span> </aside> </article> </div> <script>var tabs=__md_get("__tabs");if(Array.isArray(tabs))e:for(var set of document.querySelectorAll(".tabbed-set")){var tab,labels=set.querySelector(".tabbed-labels");for(tab of tabs)for(var label of labels.getElementsByTagName("label"))if(label.innerText.trim()===tab){var input=document.getElementById(label.htmlFor);input.checked=!0;continue e}}</script> <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script> </div> <button type=button class="md-top md-icon" data-md-component=top hidden> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12Z"/></svg> Back to top </button> </main> </div> <div class=md-dialog data-md-component=dialog> <div class="md-dialog__inner md-typeset"></div> </div> <script id=__config type=application/json>{"base": "../../../..", "features": ["navigation.tabs", "navigation.sections", "toc.integrate", "navigation.top", "search.suggest", "search.highlight", "content.tabs.link", "content.code.annotation", "content.code.copy"], "search": "../../../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script> <script src=../../../../assets/javascripts/bundle.fe8b6f2b.min.js></script> </body> </html>

File diff suppressed because one or more lines are too long

Binary file not shown.