Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: killerelite on April 02, 2017, 06:21:41 PM



Title: Need to Pasword Protect My Windows Mining Rig
Post by: killerelite on April 02, 2017, 06:21:41 PM
Guy I want my windows pc to auto start miners on reboot but also want to password protect it so no one can stop them


Title: Re: Need to Pasword Protect My Windows Mining Rig
Post by: dagarair on April 02, 2017, 08:18:03 PM
put them somewhere no one screws with them.  Everyone knows that even if my machine was on fire to leave them alone.


Title: Re: Need to Pasword Protect My Windows Mining Rig
Post by: killerelite on April 03, 2017, 02:11:08 AM
Well I cant do that for now ;
I need some software that asks for a password or pin on startup but still run the startup apps in the background


Title: Re: Need to Pasword Protect My Windows Mining Rig
Post by: not.you on April 03, 2017, 02:13:17 AM
Assuming you already have the computer setup with a password and autologin what you need is to lock it.  So set a scheduled task to run a couple minutes after startup to run a batch file.  The batch file runs a visual basic script.

 
Code:
Start cscript LockComputer.vbs

This vbs script will lock the computer.

Code:
Set objShell = CreateObject("Wscript.Shell")
objShell.Run "%windir%\System32\rundll32.exe user32.dll,LockWorkStation"

I haven't tested this but theoretically as long as you started the miner program first then it should still run on the locked workstation.


Title: Re: Need to Pasword Protect My Windows Mining Rig
Post by: jwarren81 on April 03, 2017, 03:26:15 AM
VBScript or Powershell are your best bet.  Set a login script to run that starts up your mining software, makes sure it's running, then locks the computer.  You may need to add pauses in after starting the mining software as I'm not sure if you can start up interactive applications while a computer is locked.  You would need to do some testing.


Title: Re: Need to Pasword Protect My Windows Mining Rig
Post by: chup on April 03, 2017, 06:14:00 AM
Assuming You know how to set autologin Windows with user/pass, one bat - file in startup folder that is starting screensaver (previously set up screensaver to ask for password) and miners. Works for me.


Title: Re: Need to Pasword Protect My Windows Mining Rig
Post by: slim87 on April 03, 2017, 12:03:27 PM
just create a windows service for your mining software and you don't need to login anymore at all ;) There are a couple of software out where you can convert a normal exe to a windows service (yes also with paramters)


Title: Re: Need to Pasword Protect My Windows Mining Rig
Post by: chup on April 04, 2017, 07:52:00 AM
just create a windows service for your mining software and you don't need to login anymore at all ;) There are a couple of software out where you can convert a normal exe to a windows service (yes also with paramters)

Most GPU miners do not work when started as a service.


Title: Re: Need to Pasword Protect My Windows Mining Rig
Post by: slim87 on April 04, 2017, 09:02:30 AM
Claymore does pretty well, as well as sgminer. This is not a matter of which miner, its more which software u are using to create a service.


Title: Re: Need to Pasword Protect My Windows Mining Rig
Post by: chup on April 04, 2017, 02:40:20 PM
Claymore does pretty well, as well as sgminer. This is not a matter of which miner, its more which software u are using to create a service.

Well, what is the name of "the software for creating service", because with windows task scheduler I did not have success in creating services with GPU miners?


Title: Re: Need to Pasword Protect My Windows Mining Rig
Post by: not.you on April 04, 2017, 06:39:27 PM
Claymore does pretty well, as well as sgminer. This is not a matter of which miner, its more which software u are using to create a service.

Well, what is the name of "the software for creating service", because with windows task scheduler I did not have success in creating services with GPU miners?

Never tried this with a GPU miner but I have used this to setup a service for an exe.

https://nssm.cc/