Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax security further to allow everyone write access to the WMI interface #29

Merged
merged 2 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions IntelliMouse.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Must be run with admin privileges

# Get IntelliMouse WMI object
# HW drivers reside in the "root\wmi" namespace (https://learn.microsoft.com/en-us/windows/win32/wmicoreprov/wdm-provider)
$mouse = Get-CimInstance -Namespace root\WMI -Class TailLightDeviceInformation
Expand Down
Binary file modified TailLight/TailLight.inx
Binary file not shown.
6 changes: 0 additions & 6 deletions flicker/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ int main(_In_ ULONG argc, _In_reads_(argc) PCHAR argv[]) {
bool bAdjustLight = false;
ULONG lightSetting = 0;

if (!IsUserAnAdmin()) {
_tprintf(_T("ERROR: Admin privileges missing.\n"));
return -1;

}

if (argc == 2) {
if (argv[1][0] == '-') {
if ((argv[1][1] >= '0') && (argv[1][1] <= '2')) {
Expand Down