@mh-cbon/win-uac
Should Enable / Disable UAC on windows
Last updated 4 years ago by mh-cbon .
MIT · Original npm · Tarball · package.json
$ cnpm install @mh-cbon/win-uac 
SYNC missed versions from official npm registry.

win-uac

Should Enable / Disable UAC on windows.

If you are windows admin guru, feel free to comment.

Api

Install

npm i @mh-cbon/win-uac --save

Usage

var uac = require('@mh-cbon/win-uac');

uac.enable(function (err) {
  err && console.error('Nop it did not work')
})
uac.disable(function (err) {
  err && console.error('Nop it did not work')
})

uac.modify(uac.settings.ALWAYS_NOTIFY, function (err) {
  err && console.error('Nop it did not work')
})
uac.modify(uac.settings.ALWAYS_NOTIFY_WITH_BG, function (err) {
  err && console.error('Nop it did not work')
})
uac.modify(uac.settings.ALWAYS_NOTIFY_WITHOUT_BG, function (err) {
  err && console.error('Nop it did not work')
})
uac.modify(uac.settings.DISABLED, function (err) {
  err && console.error('Nop it did not work')
})

Binary

Install

npm i @mh-cbon/win-uac -g

Usage

$ uac             # defaults to disable
$ uac disable     # disable uac
$ uac enable      # enable uac
$ uac with-bg     # enable uac with background support
$ uac without-bg  # enable uac without background support
Changes applied, please reboot.

$ uac wtf
The changes were not applied properly.
Incorrect argv argument
Use one of enable, disable, with-bg, without-bg

Notes

You still need to run this module within an elevated command line. See this

Notes²

You still need to reboot windows to make changes effective.

Tests

Tests are not implemented as I was not able to find a relatively simple way to test those behavior changes.

It was manually tested..

Read more

Current Tags

  • 1.0.3                                ...           latest (4 years ago)

3 Versions

  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |