Create batch file to run with elevated permissions to activate windows 10

I had a task of automating Windows 10 upgrades from Windows 7, and one key thing I needed to do was allow for UAC to exist, AND be able to run batch scripts, or powershell scripts as Administrator. Also known as elevated permissions. I created a bat file with these contents: set mydir=%~dp0 Powershell -Command ...

Windows 10 not searching desktop applications with cortona

Out of the blue, my start -> search stopped functioning, it would just be blank. I reinstalled Cortana using the following procedure: Open an elevated Command Prompt window (press win + X, and then press A) Type start powershell and press enter Run the command (in one line): Get-AppXPackage -Name Microsoft.Windows.Cortana | Foreach {Add-AppxPackage -DisableDevelopmentMode ...