Magenta Construction
5:28AM - 7:33PM (14 Hours 4 Minutes)
7:59AM
Setting up a new app registration for Autopilot. I'm doing this in Azure.
8:03AM
Added the permissions, device management, service config, device management, managed devices, device management, configuration, group and group member. I've signed read-write permission for all.
9:04AM
Finishing up the Autopilot function migration.
10:06AM
All right, I added into Azure, I created an Active Directory group that I could assign the autopilot script devices to, which will help with onboarding and keeping track of which ones are used from the script. I think the script is pretty much done. I need to test it to make sure that it works. I have to do a bit of cleanup right now. I'm checking the endpoints. I have to make the endpoints work still and look up the information from databases and stuff so that it actually is automated. That's going to be easy because that's in my favorite language anyways. And as an interim thing, now that I have the script at least done, on the backend, I will temporarily set the information to register this new computer. So I'll manually set it to automatically respond with that information just to get this computer set up for this guy. And then once I deliver this computer to the guy, then I will come back and I will work on the server side portion of it. So hopefully I can get that done today. But by the time I drop the computer off and come back, I've already been working for quite a while. So I think that's going to be a tomorrow thing, but at least I'll be able to finish tomorrow because all the hard work should be done. Hopefully. We'll see if it works now. That's going to be the big question.
11:06AM
Working on the license key registration.
12:08PM
Just testing something. I think it's all done and working. I'm just trying to do a test registration in a sandbox so that if it doesn't work it doesn't break everything. And if it does work, I'll go ahead and register the new computer and everything should be fine if that's the case. Just running into a code error here. And delete the assets folder. Control-C. It's running. Downloading assets. Fuck you. Error registering with the server. Press any key. I've not found a serial number. What? Unknown column in where clause. Oh, you fucker. Hardware hash.
12:12PM
Alright, testing one more time again, deleting all files, cancelling this, making it run, kbc123, oh for fuck's sake, downloading assets again, fuck again, are you fucking kidding me, doesn't have a default value, oh for fuck's sake man, you have to fucking end the whole fucking script, all of these don't have a fucking default value, are you fucking kidding me, oh my god, next it's gonna say that they're too fucking, too long, hostname, name, location, status, windows, key, hardware hash, there's no, there's, make, model, ok, so, with selected, change, just fucking nullify you all then, alright, all of them have a default value now, for fuck's sake man, alright, once again, ctrl c to exit, ok, delete all assets, run, why is it not fucking working, there we go, service password, now it should fucking work, discovering, oh, no computer name can be fucking generated, why, no computer name can be generated, why, more debugging,
12:46PM
It takes a long time to do this, because I am developing it on one computer, which is pushing it to a server, and then I'm using a virtual environment on a sandbox in my work computer to test it, because if I do it on my computer and it causes damage, or if I do it on the work computer and it causes damage, then the whole computer could be screwed and I'll be down for days while I fix it, so I'm using a sandbox. And every time I make a change to the code, I have to delete everything and re-download everything onto the sandbox all over again, so it becomes a bit of a time-consuming process to do that. But I think it's working now, I'm just testing everything, and it looks to be working okay.
1:14PM
Alright, I'm on step 4 or 5, no, 3 of 5 for the Windows edition now. It's throwing some kind of a general error.
1:41PM
I think it's done. I tested it and everything seems to work. All right, now I'm trying it on the tablet to see if it will work. I'm just resetting the computer and I will see how this works. I'll pull up my instructions that I made. Nope, that's the wrong one. I guess I could close down a lot of these windows now. 1, 2, 3, 4, 5, 6, 7, fuck, like a dozen of them. Another. Probably I could close these down. Security groups, I need that. Another three. I can clear the error log. Looks like another ten. iCals is working. Another three. Okay. Help me back, help me back, help me back, help me back, help me back, help me back, help me back. All right, one minute left. I can consolidate. Airlock here. The project management. Okay. Close this. And close this. Okay. Yeah. Wow. Okay. Wow, it's like fucking a hundred windows closed. All right. And let's consolidate these. Here. Here. But I have no Intune. Open Existing.log because I didn't design it here, I did it on the work computer. Okay, I can close Sandbox. That's all done. Here we go. Okay, single command line in the, ah, great. Fuck. I got it documented in Hadoop. Okay. Fuck. Processes passwords. Setting up a new computer. Initiate all being perfect. Except I gotta update this. Because... I changed that command. And... Edit. Initiate. PowerShell command, invoke web request URI. Yeah, that looks pretty good. Out file, yeah. Env temp, yeah. Uh-huh. Start process, file path PowerShell. Why is it doing it that way? Okay. Okay. Huh? Okay. Let's... Whoa. Line code. PowerShell. Paragraph and line code. And save. Uh-huh. And... I will need, as well, password for Wi-Fi. Oh, it's cold. It's cold. What's it called again? Fucking Wi-Fi thing. Amara. Ah, fuck. Sixteen three percent. Fuck. Ah. Mm-hmm. Mm-hmm. Mm-hmm. Uncertainty, uncertainty. 20 milligrams. Okay. Okay. Okay.
1:41PM
Oops, I kept recording there. It's at 63%, so I'm just waiting for the computer to clear itself. Updated some documentation in Voodoo. And yeah, okay.
2:41PM
I almost have it done, it's just a registration error that I'm getting with Intune itself.
3:36PM
Alright, looks like it registered in Autopilot, there's a lot of errors going on over and over, so I'm going to wait until it times out, and try to see what the error actually is. I have something that I can debug, I just don't know where to start, what is calling it, get autopilot device, get autopilot device, seems to be here, ID, 373, 373, 373, 373, 373, what's this, if assign, get autopilot, if deployment, so what's it saying, the input object cannot be bound to any parameter, the input object cannot be bound to any parameters for the command, either because the command does not take pipeline input, or the input and its properties do not match any of the parameters that take pipeline input, I'm not doing a pipeline, devices, get autopilot, device, expand, okay, so I'm putting in a dash ID, you cannot call, you cannot call a method on null value expression, you cannot call on null value expression, referencing files function, autopilot registration 221, autopilot, invoke autopilot registration on 221, line 221, if device deployment, so what can I do, you cannot call a method on a null value expression, you cannot call a method on a null value, okay, so that's because get ID, okay, that's fine, so I understand that, imported device, try, if imported device pass registration initiated, device ID, so it should be okay, oh, fuck, there's a lot of errors, okay, starting device, K device, hardware, serial, hardware retrieve, K, registering device autopilot, device registration initiated, device ID, so it has the ID, imported device dot ID, it gets it, so what seems to be the issue, get autopilot device dash ID, what, imported device state, it should just be getting the ID, fucking idiot, why, import, get, get device, what is it called again, get autopilot, pilot device, see in this one it's getting 430, it's just using the ID, but here, it's doing this, so the problem is actually very simple I think, in autopilot, registration, here, whoops, we should not be using, because we are doing this for...
3:53PM
Alright, so it looks like it's showing up in the autopilot, in an Intune, but for some reason it's not signing in, there's an issue looking at your account, sign in options, I shouldn't be doing this, domain join instead, it should already be domain joined. Jesus fuck, I just locked the fucking regular keyboard. Oh my god. For fuck's sake man. Okay, fucking sign in.
7:33PM
Alright, I just realized that it's 7.30 and last time I ate breakfast was at 3.30 or 4 in the morning. So, I'm going to go eat something. So, where I ended off. I got the whole script working but there's something going on with autopilot, I'm gonna have to check. I don't know if maybe there's another guy there. I forgot his name, it's been a long day. I don't know if maybe the other guy, by any chance, he changed some things with the enrollment to make it work for the Android phones and maybe they're conflicting with autopilot. I don't know it seems like autopilot v2 is trying to be trying to be trying to be used, but we don't have a v2 policy. And that's done by design because v2 doesn't do what I want it to do. I mean it could an emergency situation. But I don't really want to go creating another whole configuration profile for that replicating everything and besides we need to have IDs of the devices in there so you might as well just do autopilot v1 because it automates everything right from the beginning but anyways. I got something stuck in my nose, blood clots and mucus. I'm getting a headache now. So, I'm going to stop. Tomorrow I'll have to look over the registration but I did get the device into autopilot, which is, that was the whole hard part. I'm just going to figure out on the surface, how to reset the device because it's not, it's not listening to the autopilot settings. Makes me think that it also almost has to be done. Could almost be done. Before rebooting the computer. It has to be done very first thing and I didn't know that you had to press shift FN F10 on a surface while clicking somewhere in the background to open up the command prompt. There's no keyboard on this one. I don't mind as much. I gotta stop for today. I'll wake up. I don't know if I'll be able to wake up early we'll see. I'll try to wake up early and get this. Get this finished so I can get that laptop in the office but it's it's 730 by the time I eat is going to be. It's gonna be like 10 o'clock. By the time I go...