April 8, 2025

Magenta Construction

9:09AM - 7:43PM (10 Hours 34 Minutes)

11:58AM

It's a small problem installing the printer. I'm gonna change the script to make it more dynamic, and just make it work better, I guess. And that way we'll have print drivers stored online and everything as well, so we can update them.

1:00PM

I'm just making some changes in some back-end code here that I need to make this work.

1:01PM

yeah I needed to redo the module installer on the server side because I need to install modules that may be nested deeper so I don't know why I didn't do this the first time maybe I was going too quick but I I didn't use the global autoloader and I wonder why I didn't there must have been a reason for that but anyways I tweak the install all modules like I also tweak the module installer class I'm gonna delete the old one here so I don't get confused and fix a problem with enums in the module installer and I verify now that the module installer works which is good because I was missing something so now I'm gonna continue with the print script because that's what we're gonna need

1:03PM

I think everything is working, so now I could do the install module for the printer, which will be nice. And then that way we could have drivers somewhere online, and we could download them and use them so I won't have to create new scripts all the time, which is going to be great, because I'll just be able to include them, download the package, and install it with a specific name.

7:15PM

Alright, I'm going to finish for today. I was talking to Alejandro earlier. He needed some PDF tool to do stuff with. So I added PDF Gear to Intune, made it available for him. The printer didn't install on his computer, so I rewrote that script which took a good portion of the day. But, I made it better now, so now we're just going to have one Win32 app. We'll have one Intune Win file, which will be to install, uninstall, and the text and script will be in there anyways. But it'll be one, and then we'll just be putting in parameters, so this way if we get another network printer, we won't have to create a whole new Win32 app. The script will just take the parameters from the Win32 app and feed it in, and it will work like magic. I also created a script to set the user default printer, because that's done in user context, not system context, which is for the whole machine. So I have to make a detection script for setting the default printer, but I would like to finish it now, but I really have to take a shit. Oh, fuck it, I'm going to finish it. No, I can't. Oh, fuck. Okay, I'm just going to create a new file, just detect user default printer dot ps1. And actually, fuck it, I will... I'll just put my rough idea in here for the code. So... No. See, the detection won't fucking work now. Because the detection script has to be unique. But... But... No, we can't. I need to do this shit. Okay, well, one script that has to be changed, then. But we don't have to recompile the whole Win32 package, which is nice. Damn, actually, that sucks. And you know what? That really sucks, because... Ah, that sucks, because I can't even set a registry key, because if I set a registry key... And the user changes a default printer... I guess I could set a registry key. Has it been set? And if the user changes away from the default printer, then that's... That'll be better, actually, because then we're not forcing a default printer in case we get another one and people want to change. So I'm going to do that. I'm just going to...

7:15PM

Oh yeah, I started a Wi-Fi script because we need to get that Wi-Fi going. Well, I started the documentation for it.

7:29PM

All right, I think I did it. I will create the Win32 for tomorrow. So I just changed the set default user printer to create a registry key under HKeyCurrentUser, Magenta assets, software Magenta assets printers with a property name, default printer set, value one as a D word, and then we can just do a simple Intune detection script. Which will just run it once and allow them to change it because maybe they want to use like Adobe PDF printer or something by default. And so the install network printer should be good and the uninstall should be good. And the detection for that is gonna be registry key as well under local machines, that should be good. So tomorrow I'll package that and I'll see if it works because today I can't even test anyways if it's gonna work or not. And then one thing that I need to do tomorrow as well is I need to, please, fuck, I was just thinking about it. What did I need to do? Something for Alex? Was it something for Alex? I mean, there's a wifi thing that needs to be done. Then what else was there? There was also, oh yeah, the OneDrive. I'm gonna make a note of that because I'm gonna forget about that, the OneDrive. Why is OneDrive not, not doing what it's supposed to be doing? I think I know why and I'm gonna go in and check it right now.

7:43PM

I've tried to make one change anyways. We'll see if that works tomorrow and then I'll deploy the printer up tomorrow and then I can do the Wi-Fi stuff as well and then that should be good and I should update the icon as well or geez I gotta create some way to take notes hmm sticky notes okay Alex if printer works after adding to Intune. Alex check OneDrive deployment and what did I just say? I really gotta take a shit. Deployment website. Fuck me! Default printer script Intune and what else did I want to check here? Wi-Fi maybe but that's already on my mind. There was something small that existed. Oh yeah. I just want to upgrade the icon for the PDF here.