Open Windows Explorer In Elevated Mode
A few operations can only be performed via the Windows shell (ie. Windows Explorer), and occasionally administrative permissions are required. Normally a process that requires administrative permissions will ask to be elevated via User Account Control in Windows Vista/7, but some may not. These operations will fail, because all processes inherit their rights from the parent process, and Windows Explorer runs without administrator rights when the user logs in, even if the user is a local administrator. So anything launched from Explorer will not be granted administrator rights.
It isn't possible to simply execute Explorer.exe in elevated mode as with other applications, because running Explorer.exe simply opens a new window within the context of the existing Explorer.exe process (which was launched at login).
However it is possible to shut down Explorer.exe completely and open it in elevated mode, as follows:
Explorer.exe will inherit permissions from the elevated command prompt, and the Desktop, Start Menu, Explorer windows etc are all now running in elevated mode.
When the necessary task is completed, it is best to log out, and log back in again, so that Explorer is given its proper privileges. Running the shell in an elevated state is a security risk and may cause other unexpected behaviour because most processes in the shell expect to be running in a certain user context.