Recommended Posts

Script Elevation PowerToys for Windows Vista

Among the many features Windows Vista introduced to address security concerns, User Account Control (UAC) is one of the most significant. With User Account Control, even users who are administrators run most applications with standard privilege, but have "elevation potential" for specific administrative tasks and application functions. After using Windows Vista? for many months, elevating a task or application as necessary has become second nature. However, I also encountered a number of shortcomings when trying to elevate some types of tasks in Windows Vista, and that became frustrating.

So in the spirit of the old Windows? PowerToys, I?ve created a few Script Elevation PowerToys to overcome these limitations.

[/size]

The runas command technique can be applied to just about any file type. For example, the Windows Installer in Windows Vista was designed to "do the right thing" when elevation was required for installing a package. However, some poorly authored packages (where, for example, custom actions are not marked appropriately) will not install correctly with UAC turned on unless they are installed using msiexec.exe from an elevated command prompt.

To allow this to be done directly from Explorer, I created ElevateMSI.inf. This tool clones the default actions for Windows Installer packages (.msi) and patches (.msp) to add an Install as Administrator context menu option for packages and Apply Patch as Administrator for patches.

[/size]

To install these PowerToys, right-click on an INF file, select Install, and approve the elevation. To uninstall, use the Programs and Features selection on the Control Panel.

In case you dig into the INF files and wonder why three PowerToys install elevate.cmd and elevate.vbs into different locations, I?ll explain. Most of the PowerToys are implemented by adding a runas subkey to HKEY_CLASSES_ROOT\objecttype\Shell key for the object type in the Registry.

However, for some PowerToys there were object types I wanted to have two context menu entries cause elevation ("CMD Prompt Here as Administrator" and "PowerShell Prompt Here as Administrator" for Drive and Directory object types; "Run as Administrator" and "Run as Administrator with Command Prompt" for all WSH object types.) Since there can only be one runas key for each object type, I had to implement the second action by calling the elevate command. But since I wanted each INF to be installable and uninstallable independently, I had to put the associated copies elevate.cmd and elevate.vbs in different places. (You can?t increment file usage counters from a raw INF file. Yes, MSI installers would be better, but I wanted installers that could be created and modified with a text editor.) One side effect of this is that only the context menu entries implemented using the runas key will display a shield in the menu.

Summary

I hope you find these tools useful and that they improve your experience with UAC. Perhaps they will inspire you to create PowerToys of your own. (For those who use other scripting languages like Perl or Python on Windows Vista, it should be easy to create an "Elevate Script" PowerToy for those languages as well.) As with all PowerToys, these are unsupported, "use at your own risk" tools. In any event, hMichael Murgolo

Michael Murgolo is a Senior Infrastructure Consultant for Microsoft Consulting Services. He focuses on operating systems, deployment, network services, Active Directory, systems management, automation, and patch management. He is a subject matter expert in the area of desk| Source: Microsoft TechNet | Direct Download: Utility2007_06.exe (159KB) |2007_06.exe[/url] (159KB) |

Edited by Herby
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I'm no Apple fan, and have never bought an Apple product for myself. But I'd argue that where you think Apple is behind regarding an OLED display, that the vast majority of people out there wouldn't even know or care for an OLED. Apple have struck the balance well to create a price point that works, and I hope that PC manufactures, and Microsoft take notice. I'd argue that Asus will struggle to compete with the Neo BECAUSE they put in a more expensive OLED that many people won't actually notice with its deeper blacks. Most people wouldn't care either that their screen is stuck at 60Hz! When I bought a 4k monitor (future proof and for the space), my laptop could only push that out at 30Hz, and it worked fine for my needs for 1.5 years! Heck, the average human eye can't see more than 90Hz in many situations!! So while they are trying to differentiate themselves, and it may well gain them a few customers, for the most part, I think they're missing the point of what the Neo is for.
    • I disagree. Boomer execs only want one thing; money money money. The original fans of the series want a specific reboot that focuses on the vibe and feel of the original series. Boomers don't want that because then they can't have a 8 to 9 figure return. This was canceled because of greed. 
    • Meta rolls out Meta Business Agent globally on WhatsApp, Instagram, and Messenger by David Uzondu Image via Meta Meta is expanding Meta Business Agent, a feature that the social media giant promises will help businesses deliver "personalized experiences for customers using AI," launching the tech globally. Before this global release, Meta Business Agent used to be a free test called "Business AI" during a testing phase that started in October 2024. Meta picked India, Mexico, and Brazil to test the software, gathering data from over one million active shops that used the chat tools. The agent works on WhatsApp, Instagram, and Messenger, helping shops answer customer questions, check incoming leads, book appointments, and recommend products from a catalog. Meta said that the business agent can match your brand's unique tone when speaking to customers, and that it plans to improve the feature to handle "daily operations" like market research, product insights, calendars, and rival research. Soon, users will find these AI-supported shops easily by typing names in the WhatsApp search bar. Image via Meta Apart from the Business Agent, Meta is also introducing the Meta Business Agent Platform, a new agentic platform that provides the infrastructure needed to build, customize, and run virtual helpers at scale. With the Platform, companies link their bots to services like Shopify, Zendesk, and Shopee using firm-level controls, guardrails, and metrics to define strict rules. This setup lets coders build custom behaviors, keeping customers happy with direct answers. Speaking of agents, you might have heard that hackers recently broke into Instagram accounts by simply asking the Meta AI support assistant on the mobile app to hand over control. You can check out our coverage on that here.
    • Transmission 4.1.2 by Razvan Serea Transmission is a fast, easy-to-use bittorrent client with support for encryption, a web interface, peer exchange, magnet links, DHT, µTP, UPnP and NAT-PMP port forwarding, webseed support, watch directories, tracker editing, global and per-torrent speed limits, and more. Transmission has one of the lowest memory & resource footprints of any major BitTorrent client. Transmission's light overhead is one reason why it is so well suited for home NAS and media servers. Having been used by Western Digital, Zyxel and Belkin, Transmission gives truly impressive performance on almost any compatible hardware. Transmission is an open source, volunteer-based project. Unlike some BitTorrent clients, Transmission doesn't play games with its users to make money. Transmission doesn't bundle toolbars, pop-up ads, flash ads, twitter tools, or anything else. It doesn't hold some features back for a payware version. Its source code is available for anyone to review. Transmission doesn't track users, the website and forums have no third-party ads or analytics. Transmission 4.1.2 changelog: This is Transmission 4.1.2, a bugfix release. It fixes 20+ bugs and has a few performance improvements too. All users are encouraged to upgrade to this version. Highlights Fixed 4.1.0 bug that could cause duplicate HTTP announces to be sent to trackers. (#8639) All Platforms Reject benc data that has invalid characters. (#8577) Fixed a bug during the startup sequence where if one torrent failed to parse, subsequent torrents would also fail. (#8605) Fixed a bug that stalled some downloads at 99%. (#8654) Fixed a 4.1.0 upgrade bug that could overwrite utp_enabled and tcp_enabled settings. (#8658) Fixed a 4.1.0 crash that could happen when a peer supplied reqq value smaller than 32 in LTEP handshake. (#8713) Fixed a 4.1.0 regression that periodically wrote upload & download stats to disk even when Transmission had been idle since the last write, preventing the stats file's disk from hibernating while idle. (#8722) Fixed a 4.1.0 bug that prevented TCP peer connections on some systems. (#8748) Added safeguards to HTTP responses to prevent clickjacking. (#8749) Fixed edge case that didn't preserve the order of a batch of torrents when moving their queue position up or down. (#8782) Added sanitization for UTF-8 client names provided by peers during handshake. (#8809) Stopped appending redundant zeros to blocklist files when downloaded from a remote URL. (#8819) Fixed a build failure that occurred when building with link-time optimization. (#8540) macOS Client Fixed a 4.1.0 memory leak. (#8613) Fixed navigation focus issues in the Inspector. (#8792, #8810) Improved UI code to use less CPU. (#8832, #8833, #8835, #8836, #8842, #8846, #8851) Qt Client Fixed a 4.1.0 crash when parsing some RPC responses from older Transmission servers. (#8618) Fixed a 4.1.0 bug that saved both deprecated and current settings names to settings.json. (#8623) GTK Client Fixed a 4.1.0 bug that did not show translated logging level strings. (#8611) Fixed a 4.1.0 crash when toggling alternative speed limits. (#8709) Web Client Fixed a 4.1.0 bug that displayed timestamps in some dropdowns as 6.75:45 instead of 6:45. (#8624) Fixed a bug that could show incorrect torrent status when reconnecting to the server after a lost connection. (#8780, #8783) transmission-remote Improved transmission-remote console output for JSON-RPC 2. (#8799, #8805) Download: Transmission 64-bit | Qt 5 Setup ~20.0 MB (Open Source) Download: Transmission 32-bit | Qt 5 Setup Links: Transmission Homepage | Other OSes | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • One Month Later
      B2Proxy earned a badge
      One Month Later
    • One Year In
      MadMung0 earned a badge
      One Year In
    • Week One Done
      jefred earned a badge
      Week One Done
    • Apprentice
      JoeyNeo went up a rank
      Apprentice
    • Week One Done
      oliviaexpo earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      485
    2. 2
      PsYcHoKiLLa
      228
    3. 3
      Skyfrog
      70
    4. 4
      FloatingFatMan
      58
    5. 5
      neufuse
      56
  • Tell a friend

    Love Neowin? Tell a friend!