@mh-cbon/win-uac

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i @mh-cbon/win-uac

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • mh-cbon