@marvell2 Im working on a command level batch utilizing powershell commands to make a batch file update itself and any other apps remotely; which is along the same lines of what you are trying to accomplish... But doing things recursively in dos; is much harder than with workflow type languages like C, powershell native, etc.... Ill admit, I havent touched the project in a while, and need to get on it. When its finished, it will all be public use code; so ill give you a heads up when it reaches something that I consider worthy of sharing.
The ability to remotely install a miner from scratch on a machine would be nice; and I think it could be done using the $C type shares as long as you have login credentials for the machine you are sending it to. Since Windows 7, they have locked down the "$" shares; but over the past few months I have been able to get into them again.... so I think its very possible to do it.... You just have to make sure the machine when it has its OS clean installed, to have network file share access enabled; and you have Admin rights in tat machine's user credentials you use to connect with.
If im not mistaken, you are tying to automate the setup of the miner on the machine in this way, right?
@JaredKaragen yup that was my first line of attack , powershell scripts and such , my brother is a windows admin and i asked him to help me with it but like all admins hes lazy af so basically six months nothing to show for it , so the last few weekends me being
a 10 year .NET guy with very minimal experience with administrator stuff I decided to tackle it from an application side instead of pure scripting since I like user interfaces and buttons that just do stuff rather than command line.
-Regarding shares thats what he recomeded as well but I didnt want to do all that I wanted to be able to access the root \\c$ or whatever driver UNC shares using the local admin account via username and password and I have pretty much got all that done
the only real challenge left is opening ports in windows firewall via script rather than doing it manually the way I have to do it right now on every machine. Or just disabling windows firewall completly which i do not want to do.
-Yes im mostly automating the setup of the pools and and changing the current pool on the remote machines, lol I never considered 1 click deployment of new machines
, I suppose I can add that as a feature , right now all I am doing is the following
-stopping the current miner exe file.
- replacing the config.txt, start.bat , dpools.txt and epools.txt on the remote box with the local copy from the machine my tool is running from
- creating a new shortcut if it does not exist to the startup folder, I do this so that its generic and you can pick any startup file name , since other miners have different bat files etc
I could easily expand this to copy down the whole folder instead of specific files , that is probably actually easier than what I am doing lol
- want to also be able to start the miner directly without having to reboot , not had much time to work on that.
-rebooting the machine after all this is done , since sometimes you get crashes when you switch from equihash to eth or
- one big thing i will do too is have the miner also start cpu mining in the background , right now i have to start the CPU miners manually , and alot of times i forget
@citronick
thanks , its already saved me some time so I'm sure other windows users will find it when I can work out the bugs