Jump to content

Setting A Password To Access Certain Windows Applications

Hi all! I want to add a password to prevent access to certain windows applications.

 

I've got a digital wellness/detox app that blocks selected software at certain times or after a set time allowance. I've also got it to lock my PC after midnight to make sure I don't stay on until like 4am (gotta love the ADHD struggles). The problem is that I can use a cmd/powershell time command to set an earlier system time, preventing it from locking the PC. I've tried blocking cmd but it opens for 1/2 seconds before the software kills the process, giving me enough time to paste the command.

 

Do you know of any way that I can set things up so I require a password to launch cmd (and powershell)? Then I could just set a long, random string, write it down and then give it to somebody. Then I wouldn't be able to circumnavigate the blocks, since I won't remember the password. I would need it to be a separate password to my main user account password though, as I'll still need admin privileges.

Any suggestions would be really helpful, thanks! 

Link to post
Share on other sites

Okay, THAT is some serious addiction. I would *first* strongly recommend a therapist. You're currently treating a symptom of mental illness, therapy will help address the root cause. I've been there. It sucks. I'm very, *very* sorry, but it can get better.

Now that's out of the way, I have several potential solutions. I see you need admin, but if you don't need CMD/PS, you can set a group policy to disallow it. Another option would be to set up a scheduled task that just runs the "update time from time server" command every minute 

w32tm /resync

8fkuh.png.793bea7343975f57fd5119298da55b7c.png

You can also require a password for CMD/PS using this method
https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-require-a-password-to-open-command-prompt/425f405f-6ba3-4edb-b8a1-d6af70d32fbe

But ultimately, you're just putting up roadblocks, you aren't actually fixing the problem. You need actual help which we cannot provide. 

5950X/4090FE primary rig  |  1920X/1070Ti Unraid for dockers  |  200TB TrueNAS w/ 1:1 backup

Link to post
Share on other sites

2 hours ago, BatchTheBrit said:

Hi all! I want to add a password to prevent access to certain windows applications.

 

I've got a digital wellness/detox app that blocks selected software at certain times or after a set time allowance. I've also got it to lock my PC after midnight to make sure I don't stay on until like 4am (gotta love the ADHD struggles). The problem is that I can use a cmd/powershell time command to set an earlier system time, preventing it from locking the PC. I've tried blocking cmd but it opens for 1/2 seconds before the software kills the process, giving me enough time to paste the command.

 

Do you know of any way that I can set things up so I require a password to launch cmd (and powershell)? Then I could just set a long, random string, write it down and then give it to somebody. Then I wouldn't be able to circumnavigate the blocks, since I won't remember the password. I would need it to be a separate password to my main user account password though, as I'll still need admin privileges.

Any suggestions would be really helpful, thanks! 

I would give admin rights to a trusted friend, mentor, family member.

 

Then you wouldn't be able to overwrite?

"Do what makes the experience better" - in regards to PCs and Life itself.

 

Onyx: AMD Ryzen 7 7800x3d / ASRock Taichi 7900xtx OC / Gigabyte B650 AORUS Pro AX / G. Skill Flare X5 6000CL36 64GB (4x16GB) / Samsung 980 1TB x3 / Super Flower Leadex V Platinum Pro 850 / EK-AIO 360 Basic / Fractal Design North XL (black mesh) / AOC AGON 35" 3440x1440 100Hz / Mackie CR5BT / Corsair Virtuoso SE / Cherry MX Board 3.0 / Logitech G502

 

7800X3D - PBO -30 all cores, 4.90GHz all core, 5.05GHz single core, 18286 C23 multi, 1779 C23 single

 

Sage Ryzen 7800X3D - Gigabyte B650 Gaming X V2 - ASRock Steel Legend 7900GRE - G. Skill Flare X5 CL6000CL32 32GB - TeamGroup MP44L 2TB - Super Flower Leadex Platinum SE 1000w - NZXT H5 Elite

 

Emma: i9 9900K @5.1Ghz - Gigabyte AORUS 1080Ti - Gigabyte AORUS Z370 Gaming 5 - G. Skill Ripjaws V 32GB 3200CL16 - 750 EVO 512GB + 2x 860 EVO 1TB (RAID0) - EVGA SuperNova 650 P2 - Thermaltake Water 3.0 Ultimate 360mm - Fractal Design Define R6 - TP-Link AC1900 PCIe Wifi

 

Raven: AMD Ryzen 5 5600x3d - ASRock B550M Pro4 - G. Skill Ripjaws V 16GB 3200Mhz - XFX Radeon RX6650XT - Samsung 980 1TB + Crucial MX500 1TB - TP-Link AC600 USB Wifi - Gigabyte GP-P450B PSU -  Cooler Master MasterBox Q300L -  Samsung 27" 1080p

 

Plex: AMD Ryzen 5 5600 - Gigabyte B550M AORUS Elite AX - G. Skill Ripjaws V 16GB 2400Mhz - MSI 1050Ti 4GB - Crucial P3 Plus 500GB + WD Red NAS 4TBx2 - TP-Link AC1200 PCIe Wifi - EVGA SuperNova 650 P2 - ASUS Prime AP201 - Spectre 24" 1080p

 

GF Rig: Steam Deck 512GB OLED, Vizio 43" 4K TV

 

OnePlus Ecosystem: 

OnePlus 11 5G - 16GB RAM, 256GB NAND, Eternal Green

OnePlus Watch 2 - Radiant Steel

OnePlus Buds Pro 2 - Eternal Green

 

Other Tech:

- 2021 Volvo S60 Recharge T8 Polestar Engineered - 415hp/495tq 2.0L 4cyl. turbocharged, supercharged and electrified.

Lenovo 720S Touch 15.6" - i7 7700HQ, 16GB RAM 2400MHz, 512GB NVMe SSD, 1050Ti, 4K touchscreen

MSI GF62 15.6" - i7 7700HQ, 16GB RAM 2400 MHz, 256GB NVMe SSD + 1TB 7200rpm HDD, 1050Ti

- Ubiquiti Amplifi HD mesh wifi

 

Link to post
Share on other sites

2 hours ago, OddOod said:

Okay, THAT is some serious addiction. I would *first* strongly recommend a therapist. You're currently treating a symptom of mental illness, therapy will help address the root cause. I've been there. It sucks. I'm very, *very* sorry, but it can get better.

Thanks for the thoughtful reply, really appreciate the advice! Yeah, it's bad right? Surprisingly, this is actually part of the work I'm doing with my therapist! We've been working on the root causes with a lot of success but, as I have ADHD, I often do these things without fully thinking about the ramifications. When life is going well, this problem doesn't sprout up often. However, when things get stressful the ADHD symptoms are more severe and I start reverting back to old coping mechanisms. This is explicitly an exercise in damage limitation while I'm still learning, definitely not the only thing I'm working on! I appreciate you starting with this point though, therapy would have been the answer if I wasn't already on that journey ❤️ 

 

2 hours ago, OddOod said:

Now that's out of the way, I have several potential solutions. I see you need admin, but if you don't need CMD/PS, you can set a group policy to disallow it. Another option would be to set up a scheduled task that just runs the "update time from time server" command every minute 

w32tm /resync

8fkuh.png.793bea7343975f57fd5119298da55b7c.png

You can also require a password for CMD/PS using this method
https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-require-a-password-to-open-command-prompt/425f405f-6ba3-4edb-b8a1-d6af70d32fbe

Thanks for the suggestions. Having the time resync every minute is a really elegant solution actually, as then I'd still be able to access cmd if I need it. Is there a way for me to prevent changes to that task once I've set it up? Same question with disallowing it through a group policy; wouldn't I be able to just give myself the permission again if I've still got admin? 

 

The regedit solution you linked looks like it may work but that's specifically for preventing it from opening in safe boot. I've been unable to find the location for cmd settings in regedit but I'll have a look through and find it. Either way, thanks for the suggestions, gives me some paths to go down! 

Link to post
Share on other sites

1 hour ago, Dedayog said:

I would give admin rights to a trusted friend, mentor, family member.

 

Then you wouldn't be able to overwrite?

I've considered it but would prefer to keep admin if possible. I'm constantly tinkering and doing things that require admin, would be a real pain to keep contacting them for the password. I'd probably also just remember it over time if I'm asking for it a lot. I'd much prefer an option where I'm interacting with the backend of the solution as infrequently as possible as I think it'd be more sustainable! 

Link to post
Share on other sites

14 minutes ago, BatchTheBrit said:

I've considered it but would prefer to keep admin if possible. I'm constantly tinkering and doing things that require admin, would be a real pain to keep contacting them for the password. I'd probably also just remember it over time if I'm asking for it a lot. I'd much prefer an option where I'm interacting with the backend of the solution as infrequently as possible as I think it'd be more sustainable! 

No offense but this sounds like an excuse.

 

You have an issue, one that seems fairly intense and life consuming, as you put it.

 

The obvious answer is to take the ability to circumvent your own safety mechanism out of your hands.  Yet you want to "tinker".

 

As long as you have the ability to ignore the obstacles you put in place, it isn't going to help you.

 

Best of luck with however you go forward.

"Do what makes the experience better" - in regards to PCs and Life itself.

 

Onyx: AMD Ryzen 7 7800x3d / ASRock Taichi 7900xtx OC / Gigabyte B650 AORUS Pro AX / G. Skill Flare X5 6000CL36 64GB (4x16GB) / Samsung 980 1TB x3 / Super Flower Leadex V Platinum Pro 850 / EK-AIO 360 Basic / Fractal Design North XL (black mesh) / AOC AGON 35" 3440x1440 100Hz / Mackie CR5BT / Corsair Virtuoso SE / Cherry MX Board 3.0 / Logitech G502

 

7800X3D - PBO -30 all cores, 4.90GHz all core, 5.05GHz single core, 18286 C23 multi, 1779 C23 single

 

Sage Ryzen 7800X3D - Gigabyte B650 Gaming X V2 - ASRock Steel Legend 7900GRE - G. Skill Flare X5 CL6000CL32 32GB - TeamGroup MP44L 2TB - Super Flower Leadex Platinum SE 1000w - NZXT H5 Elite

 

Emma: i9 9900K @5.1Ghz - Gigabyte AORUS 1080Ti - Gigabyte AORUS Z370 Gaming 5 - G. Skill Ripjaws V 32GB 3200CL16 - 750 EVO 512GB + 2x 860 EVO 1TB (RAID0) - EVGA SuperNova 650 P2 - Thermaltake Water 3.0 Ultimate 360mm - Fractal Design Define R6 - TP-Link AC1900 PCIe Wifi

 

Raven: AMD Ryzen 5 5600x3d - ASRock B550M Pro4 - G. Skill Ripjaws V 16GB 3200Mhz - XFX Radeon RX6650XT - Samsung 980 1TB + Crucial MX500 1TB - TP-Link AC600 USB Wifi - Gigabyte GP-P450B PSU -  Cooler Master MasterBox Q300L -  Samsung 27" 1080p

 

Plex: AMD Ryzen 5 5600 - Gigabyte B550M AORUS Elite AX - G. Skill Ripjaws V 16GB 2400Mhz - MSI 1050Ti 4GB - Crucial P3 Plus 500GB + WD Red NAS 4TBx2 - TP-Link AC1200 PCIe Wifi - EVGA SuperNova 650 P2 - ASUS Prime AP201 - Spectre 24" 1080p

 

GF Rig: Steam Deck 512GB OLED, Vizio 43" 4K TV

 

OnePlus Ecosystem: 

OnePlus 11 5G - 16GB RAM, 256GB NAND, Eternal Green

OnePlus Watch 2 - Radiant Steel

OnePlus Buds Pro 2 - Eternal Green

 

Other Tech:

- 2021 Volvo S60 Recharge T8 Polestar Engineered - 415hp/495tq 2.0L 4cyl. turbocharged, supercharged and electrified.

Lenovo 720S Touch 15.6" - i7 7700HQ, 16GB RAM 2400MHz, 512GB NVMe SSD, 1050Ti, 4K touchscreen

MSI GF62 15.6" - i7 7700HQ, 16GB RAM 2400 MHz, 256GB NVMe SSD + 1TB 7200rpm HDD, 1050Ti

- Ubiquiti Amplifi HD mesh wifi

 

Link to post
Share on other sites

23 minutes ago, Dedayog said:

No offense but this sounds like an excuse.

 

You have an issue, one that seems fairly intense and life consuming, as you put it.

 

The obvious answer is to take the ability to circumvent your own safety mechanism out of your hands.  Yet you want to "tinker".

 

As long as you have the ability to ignore the obstacles you put in place, it isn't going to help you.

 

Best of luck with however you go forward.

I think I worded my reply incorrectly. I am more than happy to remove admin perms if it's the only way this can work. I'm not trying to make an excuse, I'm trying to find a balance. 

 

I've already given a number of unmemorable passwords to others to enforce blocks, I've even done so for my bios. The blocks on cmd and ps are also set with a password I don't know, but the software doesn't act fast enough. This is the final thing I need to implement before the blocks are cemented and, unless I'm mistaken, I should be able to restrict access to two applications without revoking all of my admin perms. If that is truly the only way, then I'll be revoking the perms and sending the password elsewhere, but I wanted to know what my options were before proceeding. 

Link to post
Share on other sites

2 hours ago, BatchTheBrit said:

Is there a way for me to prevent changes to that task once I've set it up?

You could probably have the wellness app prevent you from opening Task Scheduler. 
But ultimately, you have physical access; nothing's gonna stop you from just reinstalling windows or running a linux liveUSB. 
 

 

Other things you can do:

Have a scheduled task that has CMD throw up a message on the screen during "bedtime":

msg * "go to bed"

Or even more fun, have it just straight shut down the computer:

shutdown /sg /t 0 /f

 For that I'd consider having the task run a script that checks time and if it's bedtime do the shutdown in order to simplify the triggers. Sadly windows doesn't have anything as powerful as CRON 

5950X/4090FE primary rig  |  1920X/1070Ti Unraid for dockers  |  200TB TrueNAS w/ 1:1 backup

Link to post
Share on other sites

10 minutes ago, OddOod said:

You could probably have the wellness app prevent you from opening Task Scheduler. 

Aaaand that's the solution. I've set up the time synchro and it works great, I'll just block Task Scheduler and that should be it! Thank you ❤️

 

11 minutes ago, OddOod said:

But ultimately, you have physical access; nothing's gonna stop you from just reinstalling windows or running a linux liveUSB. 

That's true, but they're significantly more in-depth circumventions that I wouldn't have the motivation to do in the evening. If I'm so far gone that I reinstall Windows then I'd just sell my PC at that point lmao.

 

Anyway, this setup will break me away from the PC and give me some time for mindfulness. That will make it significantly easier to make the right decision and just go to bed. Thanks for the advice, I think this will work perfectly ❤️ 

Link to post
Share on other sites

20 minutes ago, BatchTheBrit said:

Anyway, this setup will break me away from the PC

Fingers crossed for you bud. Here's hoping it's just SAD (hard plug for a daily dose of 5000IU of Vitamin D, massively reduced my symptoms) 
You can also use task scheduler to pop up messages (with msg * "the message") throughout the day with whatever mindful phrase you want like "do box breathing" or "do a meditation" or "say out loud what you are feeling right now"

Good luck!

5950X/4090FE primary rig  |  1920X/1070Ti Unraid for dockers  |  200TB TrueNAS w/ 1:1 backup

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×