Diary of a Network Geek

The trials and tribulations of a Certified Novell Engineer who's been stranded in Houston, Texas.

10/9/2020

Office 365 Management via PowerShell

Filed under: Geek Work,GUI Center,MicroSoft,Never trust a Network Admin with a screwdriver,The Day Job — Posted by the Network Geek during the Hour of the Hare which is terribly early in the morning or 6:30 am for you boring, normal people.
The moon is Waning Gibbous

Not quite DIY DevOps for Office 365, but a good start.

So, it’s been a while since I posted professional geek content on any of my blogs, so I figure I’m overdue. I’ve had a lot of titles over the years, but, at heart, I’ll always be a system administrator. Back in the olden days before any marketing genius came up with the idea of calling hosted services “the cloud” or calling system administration automated with scripts “DevOps”, guys like me were automating routine tasks. I’ve used everything from batch files to bash scripts to Perl, but, on Windows servers, I’ve learned to use PowerShell. It’s powerful and there are a lot of resources for the neophyte to learn, so I’ve applied myself to it to make my life easier.
For instance, I wrote a script that removes users that are disabled and haven’t logged on in more than 90 days, which I shared in a comment on r/PowerShell. Naturally, I started with someone else’s script and modified it for my own purposes, and added in the email feature from another script. Then, I added that to the scheduled processes to run once a month, just to keep Active Directory cleaner. The other day, I was on r/sysadmin and read about someone having a problem on Office 365 with stolen credentials. I hate to say it, but it’s becoming a more and more frequent issue with everyone working from home. The only way to fix it, really, is to get some kind of multi-factor authentication. But, in that thread, someone referenced a script from Microsoft’s GitHub repository for Office 365 scripts meant to quickly help remediate the breach and close the hole left by the compromised credentials. It’s pretty slick, though I think I’d modify it to accept a command-line variable with the username instead of coding that in, but it’s a pretty slick script that can mean the difference between a few spam emails and hundreds. Also, it automates a lot of the standard stuff we do by hand when a breach occurs.
If you’re a sysadmin, it’s definitely worth a look and the rest of that GitHub repository has scripts to do all kinds of things with Office 365 by way of PowerShell. It’s a great place to start building your own scripts and automating your workflow.

So, that’s my geeky PSA for the professional geeks among us.
Enjoy!

7/24/2020

Programming Widgets

Filed under: Better Living Through Technology,Fun,Fun and Games,GUI Center,On Creativity,The Day Job — Posted by the Network Geek during the Hour of the Hare which is terribly early in the morning or 6:30 am for you boring, normal people.
The moon is Waning Gibbous

I’m anything but a professional programmer, but occasionally, I make stuff.

Sometimes, in my day job, I have to solve a particular problem and the only way I can manage that is via some small bit of programming. Usually, it’s just a little script of some kind; PowerShell or Perl, mostly. I taught myself Perl seventeen or eighteen years ago, in an attempt to stay busy at a job that severely underutilized my talents. Demonstrated, I think, by teaching myself Perl in my downtime. A lot of techs I knew would have just scrolled a news site or played solitaire or some other useless thing. I tried to expand my portfolio of skills. I learned a long time ago, though, that I need a project to guide my learning. It almost doesn’t matter what the project is, as long as it gives me problems to solve and obstacles to overcome. Solving those problems, with the new thing I want to learn, is what teaches me. Granted, I don’t always learn the best way to accomplish my task, or at least not the most commonly accepted way, but I still learn the skills involved in a way that embeds them pretty deeply.

Since I’m mostly self-taught in IT, which is my chosen professional field, I’ve had to find ways to keep learning on my own interesting. Having personal projects is one of them. So, projects are how I teach myself new things. As I work toward a larger goal, whatever that may be, I find problems and solutions to those problems and my knowledge extends into new areas. I did that with Perl a number of years ago. First I tried to teach myself Perl for extending MoveableType, the blogging software that I used to use before their licensing debacle. But, that was a bit too arcane and involved a place for me to start. So, several years later, I found some simpler scripts that did some language processing and were useful for another low-key hobby of mine; conlanging. (That’s constructed language making, for the less geeky.) And, so, I had a project to work with that was within my skill level. In the end, I made those scripts something that could run on a webpage and it drove massive traffic to my site. It was sweet! But, it crashed the server because it was so popular and it drove TOO much traffic to that site. Ultimately, I had to take them down. By then, though, not only had I learned Perl pretty well, but I had moved my blog to WordPress and started looking at this fancy new language for the web called “PHP”. That mostly ran in a way that didn’t put a strain on the servers, so it was better for high-traffic sites. The only problem was, I couldn’t move the functions from the Perl scripts to PHP easily. So, I started looking around for projects to teach myself PHP.

The project I found to let me dig into PHP was a random generator. No, not some random piece of electronic equipment, but a little web toy that randomly generated things. It’s pretty simple, really. You have something, like a title or a sentence that has variables, like nouns and adjectives, like Mad Libs. Those variables become, well, variables in the program. So, I just need to list a bunch of whatever that variable is into the program which randomly chooses those and fills them into the sentence or title and then gives me the result. Sounds simple, right? Okay, it kind of is, which is why I started with that. But, then I went about making it complicated. I added more variables and started reading them in from external sources and getting fancy with the output formatting. But, what it did was let me learn, bit by bit, PHP. You can see a bunch of those at my World Building page at Fantasist.net. When I got good enough at it, I dug back into WordPress and started looking at ways to use my new PHP skills to modify WordPress. What I came up with was the Dale Reckoning Calendar Plugin. For its time, it was pretty good. Now, I look at it and, well, I’m not quite embarrassed by it, but I’m not as proud of it as I was. It does work, but it requires the user to modify their theme and, essentially, become a bit of a coder themselves. That never sat well with me. And, I wanted to have something that would randomly, or semi-randomly, conjure up weather conditions for a particular day. Why? Because, if you’re gaming in a big campaign, things like weather start to matter a little. And, it was fun. It let me use old skills and old code and extend them to something new and stretch my learning even more. So, that’s why I kept coming back and eventually came up with the Forgotten Realms Weather Widget. It works better as a widget in the sidebar than as a daily update on posts. Though, I may still revisit the idea and see if I can’t improve my old plugin to not require the end-user to modify their theme to make it work. Again, for no real reason other than it’s fun to me and it would make my brain work more on something technical, which I’m already good at, but not for my day job. Mostly, though, because it would be fun to me. Oddly, it wouldn’t be fun if I had to do it for a paycheck. By the way, in moving some of the code from the old plugin to the new widget, I did find some ways to tighten the code a bit. I’d still be a little embarrassed to have a professional coder look too closely at it, but at least I’m improving.

And, I’ll keep working on it, though I’ll need to set some better boundaries so that I don’t get so obsessed that I miss much more sleep working on it. In any case, you can see the results for yourself at Forgotten Realms Weather Widget.
It’s free and only for WordPress and there may be bugs that I haven’t seen yet, so let me know if you use and find any. I can’t promise when I’ll fix them, but I promise that I’ll work on them.

This post originally appeared on Use Your Words!  And, that’s where you should leave any comments or bugs you might find.

7/17/2020

Still Time for a Course Correction

Filed under: GUI Center,Marginalia and Notes from the Editor,Personal Care — Posted by the Network Geek during the Hour of the Hare which is terribly early in the morning or 6:30 am for you boring, normal people.
The moon is Waning Gibbous

There’s still time to fix some mistakes.
Since the COVID-19 lockdown started, I put on at least fifteen pounds. Working from home, literally steps from my kitchen, combined with a little stress eating really did a number on me. Especially because I’ve crossed that magic metabolic barrier that means if I look at chocolate cake I instantly gain a pound, but taking that pound back off takes weeks. Middle age is hell, kids, and don’t let anyone tell you different. I often joke that I don’t know what I’m doing because I didn’t plan on living past forty. Not that I expect to die, necessarily, but I just didn’t make plans for being older than forty. I guess I thought I’d have my shit together by now. Turns out, not as much as I was hoping. Hence the weight gain. But, it’s still not too late. My wife and I started the “keto diet” about two weeks ago, and I’ve already lost four pounds. That means just eleven more until I’m back to my pre-COVID weight and thirty-six until I hit my goal weight. And, I’ve been rowing three times a week for twenty minutes at a time for a little over two months now. I can definitely feel the change. I might be anxious before my workout, but afterward, I’ve burned off that nervous energy and feel fine. It’s definitely helped my mental health, too. One thing we did was get a whipped cream maker, so that we can have real whipped cream. Turns out that you can have pretty much as much whipped cream as you want on the keto diet and I’ve been loving that.
I haven’t felt too inspired to write, though I have been keeping up with my morning writing exercises. Some days, though, it’s been dreadfully hard to focus enough to do those. I suppose that’s mostly the craziness in the world today. Between COVID-19 and the political upheaval, I just don’t have a lot of extra bandwidth to write. I did start working on teaching myself some PHP programming again, but I don’t count that as writing, per se. I’ve had bits and bobs of PHP code floating around for things and I’ve been meaning to make it into a WordPress plugin or a widget for some time. It’s going to be slow going, as the first two pages of “example code” for making a basic widget were just dead wrong or broken. Either way, having a goal to reach gives me a direction in my self-directed learning.
And, I suppose some of this wanting to be healthier and teach myself something new has to do with my father’s ninety-first birthday being this week. He celebrated by coming home from the hospital where he was treated for some heart issues. He’s doing fine now and getting some strength and energy back, but it was a closer call than I think anyone in the family, including my father or I, want to admit. So, I need to definitely get on track with my health, both physical and mental. There’s still time for me to course correct a little and learn from the mistakes that Dad made in not eating better sooner. I’ve said it before, but this is probably my last chance at staving off diabetes and I’ve seen first hand how challenging dealing with diabetes can be. But, hey, the great thing about the COVID-19 lockdown getting extended everywhere is that all that stuff we didn’t think we’d have time to do has just had their deadlines extended.

In any case, that’s all I’ve got for you this week. It’s not much, but, hey, it’s a post.
Hopefully, I’ll have more energy next week.

This post originally appeared on Use Your Words!  My other blog at JKHoffman.com

7/19/2019

Free Windows 10 Tools

Filed under: Better Living Through Technology,Fun,Geek Work,MicroSoft — Posted by the Network Geek during the Hour of the Hare which is terribly early in the morning or 6:30 am for you boring, normal people.
The moon is Waning Gibbous

Two free utilities to help tame Windows 10.

Y’all know I love free stuff and share it with you often here, especially on Friday. Actually, I pretty much exclusively post and share anything at all on Fridays, but, still, you get my point. In any case, virtually all consumer laptops and desktops are sold with Windows 10 now, but most of us are still trying to get all the settings and configurations locked down the way we like. Or maybe that’s just the professional geeks like me. Either way, with the goal of taming Windows 10 just a little bit more, I have two utilities from the same company to share with you this week. Both are free for home (ie. non-commercial) users.
First there’s O&O ShutUp10, which lets you get tighter control over what parts of Windows 10 communicates with Microsoft and advertisers. You don’t even need to install it. Just download it and run it. It will give you suggestions and hints on locking down location services and privacy settings so that you aren’t leaking information you don’t want to share.
The other is O&O AppBuster which lets you remove the automatically installed apps that Microsoft includes with Windows 10, whether you want them or not. It also lets you remove the hidden apps that seem like they’re part of the operating system but really aren’t. So, for instance, if you wanted to get rid of all the XBOX 360 cruft on your Windows 10 laptop, since you don’t play games but are writing the great American novel, this app would let you do that. Also, just like the last one, it’s free and doesn’t need to be installed to run and do its magic.

So, not quite as exciting as free games or stories, but maybe more useful.
Enjoy!

This post originally appeared on Use Your Words!

6/7/2019

PowerToys 2019

Filed under: Better Living Through Technology,Geek Work,MicroSoft,The Day Job — Posted by the Network Geek during the Hour of the Hare which is terribly early in the morning or 6:30 am for you boring, normal people.
The moon is Waning Gibbous

Some reboots are better than others.

Sometimes, I talk about really geeky things here, mostly because I AM a geek, but also because I am a professional geek. This is one of those times.
Back in the days of Windows 95 and Windows XP, Microsoft made a whole set of little tools that fankly should have been included in the operating system to begin with. Things like TweakUI that let you change almost every aspect of the look and feel of Windows, including where some system folders resided. There were other tools, too, like things thta would let you synchronize folders and autoplay CDs and, one of my favorites, Command Prompt Here that let you open, you guessed it, a command prompt in any folder from the Windows FileManager. Those little tools sort of fell off in popularity after those versions of Windows, but hard-core users and oldsters like me still remember them fondly.
Well, according to Lifehacker, Microsoft is bringing PowerToys back! What’s more, they’re making them open source, so you’ll be able to download the source code and write your own! Of course, they don’t have TweakUI in this batch of goodies, yet, but I’m sure some enterprising, young programmer will dive into the Microsoft GitHub PowerToys repository, and figure out a way to make all our old favorites. In any case, it’s a good space to watch for new utilities that may be useful to you. And, of course, it’s free, which is why I’m sharing it with you on a Friday.
Enjoy!

This post originally appeared on Use Your Words!

5/17/2019

Quick Photoshop Tutorial

Filed under: Art,Fun,GUI Center,The Tools — Posted by the Network Geek during the Hour of the Hare which is terribly early in the morning or 6:30 am for you boring, normal people.
The moon is Waning Gibbous

Selecting edges is hard!

As a professional computer geek and an amateur photographer, everyone expects me to to know Photoshop like a graphic designer. The truth is, though, I enjoy photography because it gets me out from behind the computer. I really spend more time making the photo in the camera than I do editing it afterwards. Oh, sure, I do pull all my images into Lightroom to clean up the exposure and colors a bit, but I rarely do more than that. Unless it’s a little cropping.
But, a couple of jobs ago, I did find myself doing a significant amount of editing for the company website. Usually, that meant cutting out some one of the company products and putting on a better background or no background at all. I hated it. I hated it because selecting fine edges was incredibly hard for me. It was super tedious and if I ever hit something like hair, well, let’s just say I was glad to be working in a mostly industrial environment.
Of course, the truth is that I wasn’t using all the selection tools to their greatest effect. If only I had been following PetaPixel back then, so that I could have possibly found their 1 minute tutorial on using Photoshop’s refine edge brush! Wow! What a huge help that would have been!
So, in the spirit of helping my fellow geeks, because who else would be reading this blog on a Friday, enjoy!
Seriously, it really is only a minute and it will help you tremendously with your selections in Photoshop. And, if you like that, there’s a whole Definitely worth checking out.

This post originally appeared on Use Your Words!

4/23/2019

Throw Away Drives

Filed under: Advice from your Uncle Jim,Never trust a Network Admin with a screwdriver,The Dark Side,The Day Job — Posted by the Network Geek during the Hour of the Rooster which is in the early evening or 7:00 pm for you boring, normal people.
The moon is Waning Gibbous

Please, be careful.

We tend to treat USB thumb drives as essentially disposable these days, which, considering their low cost, they basically are.  At least, in one sense.  The problem is, those cheap, little drives still store an awful lot of data.  I recently read an article titled “You left WHAT on that USB drive?!” where the authors talk about several studies, formal and informal, where researchers scooped up random USB drives, either from eBay or the lost and found, to see what was on them.  The results are a little terrifying.  According to the article, “…about two-thirds of second-hand USB memory sticks bought in the US and the UK have recoverable and sometimes sensitive data. In one-fifth of the devices studied, the past owner could be identified.”  What’s more, in the case of one study, out of 200 drives, only 34 of them had been properly wiped out.  That’s just 17% of the drives.  Several had been formatted, but still had data that could be recovered off them.  Yes, that’s right, even reformatting the drives does NOT guarantee that they will be properly wiped out.

What’s more, the data that was left behind was of a very sensitive nature in many cases.  Everything from tax information to naked photos to photos of a soldier on deployment and at home, including the soldier’s address.  And, again, reformatting is not enough.  At least 8 drives out of the 200 examined had been reformatted, but had data on them that could still be recovered!  So, what can be done?
Personally, I tend to use USB drives until they absolutely don’t work at all any more, and I try not to put personal data on them in any case.
One solution is to get a USB drive that can be encrypted.  I’ve used several versions of the LaCie Imakey that includes an encrypted partition and utilities to manage it, but that doesn’t seem to be available any more.  A replacement might be the Kingston Digital Data Traveler Locker, which lets you set a password to restrict access, as well as doing hardware encryption of some kind and even backing up to the cloud in case the drive gets lost.  Granted those drives can get a little pricey, but how much does it cost to deal with the potential identity theft that lax personal security might bring?

If you have drives, USB or otherwise, that you’re looking to get rid of, then at least sanitize them before they go.  There are a lot of articles and utilities available to help you with that.  One that covers pretty much every drive you might have is How to securely erase external hard drives, SD cards, or flash drives, which details the steps as well as suggesting utilities to help you.  Now, for the most part, I assume that if you read this blog, as opposed to my other blog, Use Your Words, then you’re a geek like me and can handle more than consumer-grade procedures and software.  If that’s the case, or you’re feeling particularly brave, one great utility I’ve used is Darik’s Boot and Nuke aka DBAN.  It’s a free ISO you can download to make a bootable disk/drive that will let you securely wipe a drive before disposing of it.  It’s simple to use and free, but if you’re not comfortable burning an ISO to a disk or thumbdrive, then I’d recommend getting a more consumer-friendly product.

Either way, it’s a scary world out there to let your precious data roam free without a keeper, so be careful with those cheap, “throw away” drives.  If you’re not careful how you use them, they could get pretty expensive.


Advice from your Uncle Jim:
"Whether one believes in a religion or not, and whether one believes in rebirth or not, there isn't anyone who does not appreciate kindness and compassion."
   --Dalai Lama

2/15/2019

A Change of Scenery

Filed under: Art,Better Living Through Technology,Fun,GUI Center,MicroSoft — Posted by the Network Geek during the Hour of the Hare which is terribly early in the morning or 6:30 am for you boring, normal people.
The moon is Waning Gibbous

This time of year, a change of scenery is a good idea.

Even if you can’t afford to travel, because, let’s face it with rising costs and fewer raises, who can afford to travel much? Still, after being cooped up all Winter long, right about now, as things start to thaw out, I start to think about a different view than the same, grey city. I try to escape in a good book, but even the books I’m reading these days are a little grey and bleak. As a computer geek, that leaves me just a few options. The easiest is just changing my Windows desktop background.
Thankfully, in my old links, I found a desktop background changer that Lifehacker had recommended; Chameleon. You don’t need to install it. Just hit that link, download the 32-bit or 64-bit version and run it. Then, pop open the settings and choose your location and it will change your wallpaper based on your local weather conditions, or your battery life, or time of day or any of several more specific variables. Also, when you hit that link, be sure to grab the “wallpaper pack”. In fact, I recommend doing that no matter what. And, if you plan on using Chameleon, unzip them to a folder before you run the program. Then you can select the appropriate photos in the setup. It’s really pretty straight-forward. And, when you’re tired of it running, just close it. Nothing to uninstall or remove. Just exit the program.
Simple, free and a beautiful change of very local scenery that’s very welcome this time of year.
Enjoy!

This post originally appeared on Use Your Words.

8/31/2018

WiFi Analyzer

Filed under: Better Living Through Technology,Fun,Geek Work,GUI Center,MicroSoft,The Network Geek at Home — Posted by the Network Geek during the Hour of the Hare which is in the early morning or 7:05 am for you boring, normal people.
The moon is Waning Gibbous

Now, available for Windows!

I’ve actually been using this particular program on an Android tablet for quite a long time. Come to think of it, I started out using it on a rooted Barnes and Noble nook tablet close to ten years ago, then when I upgraded, just kept using it. Often, I’d pull out my tablet, especially when on the road, to find the strongest local wifi signal to see if I could join that network. When I was in San Francisco for WonderCon in 2010, I used it to discover that the fastest wireless internet connection I could find was the yoga studio next door to the little, boutique hotel I was staying in. I also used it to tell the hotel staff what to change their wifi channel to for better performance.
More recently, I used it in my own neighborhood to tune my home wifi to the best channel so we got a stronger signal and weren’t sharing the same frequency with all the neighbors. Sure, it may be a small improvement, but I think it’s significant enough to make a few minutes spent with a free app worthwhile.
In any case, I saw recently on Lifehacker, that there’s a free Windows version of WiFi Analyzer available now. You just need to follow the links and download it. I linked to the Lifehacker article, instead of directly, because they go a great job showing you why it’s a good thing to have and use. Also, I’m too lazy to write all that out again. So, go hit their site, give them advertising revenue, and enjoy!

3/12/2018

An OS Inside An OS

Filed under: About The Author,Better Living Through Technology,GUI Center,Linux,Never trust a Network Admin with a screwdriver,The Network Geek at Home,Things to Read — Posted by the Network Geek during the Hour of the Hare which is in the early morning or 7:55 am for you boring, normal people.
The moon is Waning Gibbous

As you might have guessed from the title of this blog, I’m a geek. In fact, I’m actually a professional geek. Rumor has it, being a geek is cool now. I’ll get back to you on that.
In any case, one of the ways my geek has expressed itself is in early support for Linux.  I’ve used Linux, one way or another, for more than twenty years.  It’s hard to believe, but it’s true.  What’s more, I’ve been Linux certified for more than ten years!  Strange but true!  I don’t use Linux as my main operating system, though, because I live in the real world, not a Techno-Libertarian Utopia.  And, yes, that means, I use Windows.  At home, it’s Windows 10, because that’s what came installed on the laptops I got for my wife and I while I was a highly-paid contractor in 2016 and we were refreshing all our electronics.  But, much to my surprise, there’s a way to run both Windows and Linux, together on the same machine!  Without having a dual-boot system!  Thanks to an article from the Linux Journal, which almost went the way of the dinosaurs last year, I have activated Windows Subsystem for Linux, which is ONLY available on Windows 10, and then installed Ubuntu, which is free, from the Microsoft Store.  The little screen-shot at the top of this post is Ubuntu, running in its own, little window, on my Windows 10 laptop.

This is exciting!
Now, I can brush up my bash scripting by setting up a series of rsync jobs to keep my two Western Digital MyCloud drives in sync, essentially backing one up to the other.  From the literature, I had thought that was built into the models I got, but it wasn’t.  I tried to use SSH to get that setup directly on the MyCloud devices, since they’re running some limited *nix kernel, but something about the way they were configured made connecting one directly to the other and running rsync from working “as expected”.  This, though, should get me around all that.
Now, all I have to do sort out the syntax for properly mounting the Windows shares I’ve set up in the Ubuntu virtual machine app.  So, I’m not 100% there yet, but this is a great start!

 

Next Page »

Powered by WordPress
Any links to sites selling any reviewed item, including but not limited to Amazon, may be affiliate links which will pay me some tiny bit of money if used to purchase the item, but this site does no paid reviews and all opinions are my own.