Magenta Construction
7:32AM - 8:56PM (13 Hours 23 Minutes)
8:44PM
Alright, I'm just finishing now, I'm just finishing now, it was a slow day, I definitely feel slower than usual, but I tried to work through it, I'm fucking, I'm tired man, I'm hungry, I didn't eat, oh I didn't eat all day, and I didn't go to the washroom either, I feel like crap, so anyways, we got quite a bit done, figured out a big problem that I was having, why it wasn't working and registering stuff, and finally figured that out, should document that at some point in time, but I don't think that, no, it's not really going to be an issue, I don't know I guess, I don't know, I'm really hungry, I feel like puking, I did quite a bit and not a lot at the same time, I tidied up the registration script and I started from step one moving on, I had a problem with post data being converted into get data, and I had to figure that out because it couldn't be sent as a URL form and coded, it wouldn't work, there would be too much data, so I had to get the post to work.
8:45PM
The end result, what was holding me back, is that I'm using a development server to build this on, but I'm using Magenta's real domain. So I'm using mdm.magentaconstruction.com as the endpoint and then I'm forwarding requests, but I was forwarding with a 301 and a 301 apparently disregards post data, making it not possible to send post data. That's why the get was working. So I changed that to 307 redirect and it works. There's also the option to do a proxy, but I don't think the plan here is once I develop it that I could push it to a Magenta server and then Troy has full ownership or Magenta has full ownership of it. So we won't need to use a proxy or any kind of forwarding or reverse proxy or anything like that.
8:47PM
I also fetched a lot of the computer information, got the password script updated because we're going to need to authenticate and send a service token back and forth so that the system doesn't get abused. And I did that. I did a couple of tests. I wrote a couple of classes for computer manufacturer user and Windows Pro licensing data types. I did a format function in the morning as well. I'm going to have to do one tomorrow to best guess manufacturers, although that's not really important right now. I could store it all as text and then convert them manually later, I guess. I do have to take a look at the name template system. And then the rest of the work I did was in PowerShell scripts today. So oobe.ps1. Looks like it's pretty good. Creates directories. It downloads files as needed. Ouch. And then it runs them automatically. And if it was already run before, then it picks that up and it won't redownload the files. All of that kind of works as expected.
8:49PM
Then I did the, that was OOBE, then I did run, so run's still under construction. I have to move a lot of variables into there to organize things. But I listed out the run files, and it automatically loops through them and includes them one by one to run them. That's pretty much done, I just have to add variables in there. And then run1deviceinfo is where I was finishing off, and so I have it getting the hardware hash serial number. And collecting additional system information. And that will eventually be synchronized. And I have it sending the data to do the registration. And once it does the, well, that's the other part that I was working on as well is the registration, the server-side registration of it, so I still have quite a bit to do. I did the registration if the computer is found and there's only one computer found. And I did the registration if there's nothing found by either the hardware hash or the serial number. I think I need to expand on this a little bit more, to add more data in. Like I need to get the MAC addresses for Ethernet and LAN, and find out if they're enabled. Got the GPUs in, got the RAM in, got the model, manufacturer, CPU, serial number, hardware hash. But I do need to add a couple more parameters in there. And then I need to create one more, if there's multiple found, to narrow it down.
8:53PM
--- Transcription Unavailable ---
8:55PM
--- Transcription Unavailable ---