1.0.3 • Published 8 years ago

@mh-cbon/win-uac v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

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

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago