How to Launch a Vbscript in Elevated Mode (Run as Administrator)

automatically elevate vbscript runas

With the introduction of User Account Control (UAC) in Windows Vista, you usually open an elevated Command Prompt in order to run batch files and scripts that need administrative privileges. Applications can make use of manifest files (using the RequireAdministrator flag) to automatically run elevated.

For scripts, this article provides you some neat little tricks using which you can automatically elevate using the ShellExecute “runas” parameter.

(See also How to Automatically Elevate a Batch file to Run it as Administrator? for another auto-elevation method.)Read more

Desktop.ini file automatically opens when you start Windows

desktop.ini opens at login

When you start your computer, the desktop.ini file may automatically open in Notepad. It may have the following contents: [.ShellClassInfo] LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21787 Desktop.ini is a configuration file which can be used to customize folder icons, caption, etc., on a per-folder basis. The desktop.ini file (in your the Startup folder)  may open at startup if the hidden … Read more

Shell Commands to Access the Special Folders in Windows 10/11

The shell: protocol can be used to open a special folder directly from the Start → Search or the Run dialog. For example, the command shell:sendto opens the “Send To” folder of your user profile. To launch the Documents folder of your user profile, you’d type shell:Personal. Below is a complete shell: commands listing for … Read more

[Fix] .EXE Files Open in Notepad or Other App when Double-clicked

exe files open in notepad

Summary: Double-clicking an .exe file may open Notepad or any other application, displaying junk characters. On some systems, the Open with dialog may appear when double-clicking .exe files. This article explains how to fix the .exe file association in Windows 10 and 11.

Did you accidentally use the Default Programs or Open With dialog to associate .exe file types with an application like Notepad? This causes every program to open in that chosen application. Unfortunately, Windows does not provide an option to reset the .exe file associations. You need to fix the association settings using a .reg file or script.Read more

How to Fix Outlook Hyperlink Restrictions Error

outlook hyperlink error

When you click a hyperlink in Microsoft Outlook or other Office applications, you may receive one of the following errors, depending upon the version of Office installed. Your organization’s policies are preventing us from completing this action for you. For more info, please contact your help desk. This operation has been cancelled due to restrictions … Read more