Monday, February 4, 2019

Windows 10 Sysprep Full Unattended Setup

At work I tend to deal with creating the image we use for distribution of our computers. Windows 10 was a rather unique challenge of anything that could go wrong, did. We use Windows 10 Professional. Here's just a quick list of versions:
  • 1609 - Works, but updates can get stuck, requires different UAC on a domain
  • 1703 - Skipped, updating to worked fine, requires same UAC settings same as 1609
  • 1709 - Skipped, updating sometimes broke the system files, UAC settings same as 1609
  • 1803 - Could not get to work, updating to it broke permissions making searching impossible unless you were a pre-existing admin
  • 1809 - Works, requires slightly different Unattend, works with domain settings and UAC used for Windows 7
(UAC settings need Admin Approval mode enabled and all Admins to run in Admin approval mode)

Common issues I ran into included:
  • Users logged in were unable to use search features
  • The very first login may appear okay, but any after that break
  • Warnings about running programs as an administrator (UAC settings in domain can fix this)
  • Unable to apply all group policies without numerous attempts
  • Creating the .clg file needed has only worked for me once
  • Enabling .NET 3.5 in Windows features
  • Shutdown not working correctly
Currently I am trying to only work on a 64 bit image, we're in the process of phasing out 32 bit. So now let's do a walk-through and with any luck someone will find this helpful, maybe even help me fix problems I've come across. I'll be doing the most recent at the time, 1809.
So the first and obvious step, install Windows 10. After installed and gets ready for setup, press Ctrl+Shift+F3. Get into Windows and get it started on updates. After that, you can install any software you need to. I personally try to install everything through Chocolatey, and I may include setting that up in another post.
So let's talk about enabling .NET 3.5. To do this, you need the Windows 10 installation disc in, and let's assume that it's the D drive (adjust to your needs). You then use the command:

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:D:\sources\sxs

After that, your .NET 3.5 should be enabled.

Now at this point, we should direct our attention to the unattend file. On another computer, install the Windows ADK (make sure the computer is the same architecture). From what I've read, some say to create an unattend using the install.wim on the iso, others say turn a blank Windows 10 installation to a wim and then use that. Both fail when creating the .clg file for it after a while of sitting there trying. One day after it said it failed, a .clg file magically appeared. Why or how, I don't know. Rather than walk anyone through the process, I'll just include the .wim and .clg file. If anyone knows why it fails making the .clg file, let me know.

WIM
CLG

So here's the bear minimum settings I found I needed to get the installation to go through. Keep in mind, it still flashes the setup for a moment, I think it's just because the network takes a minute to figure itself out. Open up Windows System Image Manager and create a new Unattend using the WIM file. Then add these settings at minimum:

  • amd64_Microsoft-Windows-Security-SPP_neutral -> Pass 3 Generalize
    • SkipRearm set to 1
  • amd64_Microsoft-Windows-Deployment_neutral -> Pass 4 Specialize
    • ExtendOSPartition
      • Extend set to true
    • Delete other options that appear
  • amd64_Microsoft-Windows-Shell-Setup_neutral -> Pass 4 Specialize
    • ComputerName set to *
    • Set your product key
    • Set your timezone
    • Do NOT put in anything for copy profile, that breaks the search feature for users setup after the installation
    • Delete all the other sub pieces that show.
  • amd64_Microsoft-Windows-International-Core_neutral -> Pass 7 oobe System
    • InputLocale set to 0409:00000409 for en-US
    • SystemLocale set to en-US
    • UILanguage set to en-US
    • UserLocale set to en-US
  • amd64_Microsoft-Windows-Deployment_neutral -> Pass 7 oobe System
    • AutoLogon should be set if you need any of that set with enabled to true and logoncount to 2
      • Set a password if you want it to autologon
    • FirstLogonCommands is where you are going to set any Post-SysPrep stuff that should supercede a logon, add as many as you need with whatever you need
    • Under OOBE you need all of these to skip the setup:
      • HideEULAPage true
      • HideLocalAccountScreen true
      • HideOEMRegistrationgScreen true
      • HideOnlineAccountScreens true
      • HideWirelessSetupInOOBE true
      • ProtectYourPC 2
    • UserAccounts needs at least the administrator password to skip past the login
      • You can either set the AdministratorPassword or right-click on LocalAccounts and create one if needed
After that is done, you should be ready to load what you need on the computer to create an image with and get that going. So let's talk about that.

First we need to copy over our unattend.xml file we so painstakingly made. I copy this to C:\. Now there is a cleanup we can do, using the SetupComplete.cmd that will get ran automatically after. So do that, we need to create the directory C:\Windows\Setups\Scripts. Then let's create a file called SetupComplete.cmd in that folder and open it with notepad. We need the following commands for a decent cleanup:

DEL /Q /F C:\Windows\System32\sysprep\unattend.xml
DEL /Q /F C:\Windows\panther\unattend.xml
DEL /Q /F C:\unattend.xml
DEL /Q /F C:\Windows\Setup\Scripts\SetupComplete.cmd

This will remove all the traces of our unattend file and then itself. With that being setup, we need to run the sysprep. So do this, just run the command:

"C:\windows\system32\sysprep\sysprep.exe" /generalize /oobe /reboot /unattend:c:\unattend.xml

Word of caution, this will reboot the computer, not shut it down. I've had to use reboot because shutdown does not shut down Windows properly, it hibernates. That means after you boot back up, it just drops you back where you were until you tell it to restart. At one point shutdown worked, but I had other issues around then and I think it was because I changed the shutdown procedure.

Anyway, that's a rough guide for setting up a Sysprep of Windows 10 x64 version 1809 to install and skip past the setup. Hope it helps anyone having issues with this.

Monday, December 24, 2018

Preparing and Taking a Certification Test

Despite how many people hate it, we judge education and skills with standardized tests most of the time. As a result, most certification tests are standardized tests. Of course there are exceptions, but in most cases you will run into standardized tests. Personally, I've always had poor test taking skills. Despite this, I've passed all but one certification on the first try and the one I failed was in the beta phase anyway. So here's my advice on how to pass.

Now the first obvious thing to do is study. Today you have a huge selection of options to choose for studying. You can choose between instructor-taught courses to self-study. In my opinion, instructor taught courses are over priced and offer very little added benefit for anyone who is at least a hobbyist in the subject matter. That is not to say you shouldn't try it out, I just think most of them are fairly expensive for what you are getting and co-workers that use it do not seem to have any more of a leg up. Then of course there are books you can buy and study guides you can download.

I've done all of my certifications through CompTIA so far and I use the Certmaster tool. I find there are two main benefits. The first is that since it is made by the people that make the test, it covers almost all the material necessary. The second thing is they also word the questions in a similar manner, so it mentally prepares me to be able to read and understand the questions on the test. The wording of questions is the big thing, because I wonder if English is their first language or somewhere down the line a fifth of sixth.

Study guides and topic outlines are also useful to read over. They often can include things you can do your own research into. For me, this research leads to tools and techniques to actually try.

Actually trying the techniques, tools, and methods that you are studying is probably the best way to hammer the ideas into your head, coupled with an understanding of the practical application involved. Say you read about nmap and have never tried it before, simply do some googling and then try out the tool. In some instances, it's hard because you might not have access to the tool or program or have a setup to try the technique. In those cases, you may still have a way to set it up with some virtual machines or maybe find demos and screenshots online. Anything to further familiarize yourself with the content.

Books. I like having physical books. Problem is, they eventually go out of date. Make sure if you buy a book that it is a version that is useful to you. Check the publication date, any reviews, and any information that indicates that they are worth reading. Then make yourself a library. Knowledge is power.

Time. Take your time studying. Study a little bit every day.

Refresh earlier information as you go. Read acronyms as the words they represent. Take practice quizzes and try to answer without looking at the multiple choice answers. Try to teach others around you what you've learned, even if they yell at you to shut up or keep saying they have no idea what you're talking about.

So now you are prepared to take the test. How can you take a test any different to optimize your chances? The first thing is to go through the whole test, even questions you are not sure of. When you come across a question you are not sure of, first eliminate all the answers you know are wrong, then guess with the remainder. Make sure you pay attention as you go, as one question may have an answer for another question in it. I've had questions where after I eliminate all possibilities I know are wrong, I have one answer left which helped me answer another question by eliminating one of the two options I had narrowed it down to.

Okay, so you got through the test, and look! Still time on the clock. Do not end the exam yet, go back to the beginning and start over. More often than not, I find questions that when I'm on my second run, I look at the answer I picked and realize that I had misread the question. So go through and look for errors, look for answers other questions gave you, look to find what you did wrong.

Now you made it through again. Maybe there's still time on the clock. Use it. Go through again and again until that time runs out. Maybe you're just clicking next and not changing anything, but each time you go through you should be more certain of your answers than the next.

Times up, exam ended. You passed? Great! You failed, don't fret. If you do fail, even after all that work, try to keep all the questions you can remember. Go home, try to get the right answer. Go through all your study material with all the questions of that test in mind, then try again.

There's no magic method that will make you always pass, no perfect study material. You just have to be willing to try.

Saturday, December 22, 2018

Getting Certified for Beginners in IT

For those just starting out in IT, to those looking to change careers, getting certifications is a great place to start. From my experience, employers love certifications. Whether or not the certification is actually as useful as people think is an entirely different story. Now getting a certification is not a magic key for a job, but it can be some heavy leverage. It's a piece of paper that specifically says that you can do that type of job and are backed by an industry standard that you are indeed capable by there standings. So where to begin?

Every job I applied to, and the job I currently work, consider the CompTIA A+ the starting point of being an IT Specialist. Sure people get hired without it, but at my place of employment, they expect you to either acquire or have supplemental experience/education with credible proof. I will say that the CompTIA IT Fundamentals is as useful as toilet paper, so try to start with the A+. There are other companies with other certifications, but the A+ is the go to. So what does an A+ mean? Well, it's pretty much a basic understanding of computers, operating systems, and troubleshooting. Pretty much the job description of IT, the only thing you need to add on is that you're good with Office suites like Microsoft Office, and maybe tack on some free ones like Libre Office and OpenOffice.

Despite the A+ being a job description for IT work, like a help desk, it's just saying you meet expectations. In the day of the Internet, networking is something every IT person should at least understand. This includes things like the OSI model, different technologies used, network services, and the like. When it comes to networking, there are two routes you can go. CompTIA Network+ is the normal go to if you're not wanting to go heavy into networking, but the Cisco certifications like the CCNA are held in high regard. Even if you don't use a Cisco network, their certifications are held very high when it comes to networking.

Once you cover these two areas, you should have the proof you need that you can IT. After that you can branch out into quite a few different areas. They include Security, Infrastructure (Cloud and/or Server), and Networking to name some. Those of course branch off into more specific groups.

When looking at security, there's the CompTIA Security+, CySA+, PenTest+, and CASP+. There's also other companies such as SANS with the GIAC stuff, EC-Council with their well known CEH (certified Ethical Hacker) to get you started, and Offensive Security (who brings Kali Linux to the table) with a certification that shows you can penetration test in the real world. There are so many good options here, especially with everyone trying to get into the penetration testing stuff.

With networking, your best bet is to get into Cisco's certifications. To be honest, I don't recall seeing much else asked for outside of Cisco certs beyond the minimum of a Network+. It's also a good start with so many companies emulating what Cisco does and the way they do things, so you still are quite versatile.

Infrastructure is a unique area because it often requires some advanced networking, security knowledge, and a million and one tools and commands to pull out of thin air. When it comes to the cloud stuff, I have never really looked at it. When it comes to the server stuff, there's of course some that CompTIA have, like the Server+. Other options worth exploring are the certifications offered by Microsoft themselves. Let's face it, they're everywhere. There are of course other things out there that can be just as important, or even more so. In steps Linux. CompTIA does have the Linux+, but I think the Redhat certifications are a better bang for your buck. Redhat and CentOS seem to be the heavy hitters in the Linux world that actually require some knowledge. Every Ubuntu based server I've delt with at work was either shipped pre-configured or just a script you ran and called it quits. I manage the CentOS servers we use for mass image deployment across our locations. We have security cameras that use Ubuntu servers, but those are already setup and our camera guy is usually only running updates or wget and a shell script. There's a few other places that offer certifications, but none spring to mind.

I should also add that there are certifications for virtualization that can be valuable for Networking and Infrastructure. There's plenty of information on it if you go check out VMWare and their certification path.

So how do you decide which way to go? Well, start with the A+ and Network+. Figure out an industry you want to work in or type of area. Then just take the more general varieties and narrow it down as you go. So... Good luck!

Wednesday, November 14, 2018

Game Review: Fallout 76

I don't normally get games right when they come out anymore, however fallout was a game I fell in love with when first playing Fallout 3. It was my first introduction to the game series. I still say Fallout New Vegas is my favorite. Even though I wasn't as big of a fan of Fallout 4, I still played it a lot. You see my problem with Fallout 4 is the lack of just anything going. I couldn't kill my way to victory without teaming up with the brotherhood and the minute men were just there no matter what I did. Not to mention, settlement building seems like nothing more than a novelty. Sure I would have ideas and try to make them happen, but in the end it was just a frustrating extra I spent the majority of time avoiding.

Now we have Fallout 76. I set my expectations as low as I could for this without just outright hating it. Multiplayer in Fallout sounds cool, but I don't often play with people online anymore and in the Fallout world, it just seems incompatible. Building comes back with camps and workshops. I actually like the camp ideas and have not stepped foot on a workshop because just no. The world is huge. Things have changed. The short story... the game isn't bad, but it's just not good. I have it right now ready to go in my PS4, just got it in today and I just don't have any desire to play it. I also got the power armor edition, so the helmet came in with it. Cheap. Broken. Plastic. The harness so it can be worn is missing and the part it clips to is broken. The voice modulator would be better from a dollar store. The plastic feels brittle and cheap. It's a display piece you stand about 10 feet away from so it looks somewhat nice.

So let's start with positives about Fallout 76. It functions as a FPS. It's not the greatest FPS, but it works.

CAMPS are a cute idea that can be helpful. They aren't a focal point, but they can be fun when you find places they can actually bet setup.

It's Fallout-ish. It feels like a Fallout-skinned spin-off which is okay if you like the look and feel of fallout.

That's about the best I got for it, so buckle up for everything I don't like about the game. It's gonna be bumpy. Ready? Let's do this...

I can't sell ammo. I have hundreds of rounds of ammo that is now just useless junk. I'm not gonna hunt down someone to trade my useless ammo to because most people only use a handful of different weapons anyway.

The fact that I need to eat and drink starts out okay, until you realize that you now need to find places to hide to access some menu or another to eat and drink.

Stimpaks are now the right d-pad, when every game before used up. SERIOUSLY, THIS IS ANNOYING AND I CAN'T SEEM TO CHANGE IT.

Weapon wheels suck for console. I just want stimpaks and 3 weapons (4 d-pad buttons) I always do a melee, a short range, and a sniper. Since left on the d-pad only brings up the previous weapon, it's just a toggle for two weapons. Why the hell do I need another menu to bring up like 30 item slots? It's gonna take just as long going through the damn Pip-Boy.

There are no local maps. None. Good luck.

The map is huge and I spend more time just running around than anything else. Run, maybe run into an area with enemies, clear it out in a minute or two, run for another ten minutes. FALLOUT RUNNING SIMULATOR 76. Run, eat, drink, then take a shit while digging through all the menus to access everything else.

Weapon levels. Strength for shotgun perks. Slow firing weapons do more damage because reasons. Just give me a chinese assault rifle, they should be all over the place since it's just 20 years after the war. Or are we just never gonna bring that gun back?

Food goes bad. Thanks. Not like I don't already deal with that in real life, now I got leftovers I forgot to through away in game, too? Seriously, just piss off with this.

According to the guide, super mutant behemoths are in the game as well? How can they be when they are supposed to be very old super mutants. You're now telling me there are 25 year old super mutant behemoths? Really?

Only feral ghouls. Wasn't the idea they go feral more so over time and initially most weren't? No, screw normal ghouls that are coherent, let's make a new enemy called scorched, which are basically the same thing only they just don't live past this game and you've never heard of them before because reasons.

There is no interactive dialog. Unless you want to talk to other people. I overheard a conversation that involved something along the lines of a naked picture of Harriet Tubman and saying she had a nice ass. I wish I was making that up. Give a round of applause for the classy kids on this game.

Holotapes. Narration. Robots. It's like an audiobook with periodic shooting, lots of walking, and making sure your tomogachi... I mean character, is well fed and hydrated. Fallout tomogachi? I think that might actually be more entertaining.

Lots of stuff that makes me question if the game is even lore friendly that may seem like nit-picking.

In all seriousness though, the game isn't terrible as a game. From my perspective, it's just not something I asked for or even wanted. I'm left with the feeling that Bethesda is making games for Bethesda, not the fans. A friend of mine who enjoys it described it as like GTA, but Fallout. If I wanted to play GTA, I'd just go play GTA, or RDR. I get it, other games have mechanics that people seem to think are so cool. Here's the thing, I play Fallout to play Fallout. Not GTA or Fortnite or whatever else the kids are playing these days. I don't play Fortnite or GTA or Minecraft or Rust or any of that. So why would I play a Fallout skinned version of these?

If you enjoy the game, that's great. I'm not here to say your opinion is wrong and the game sucks, I'm just saying the game isn't for me. Also, if you hate the game but were a fan of Fallout, I feel your frustrations. It's the same frustration felt when Fallout 3 first came out to those who like the gameplay style of 1 and 2. But here's where I'm at... I'm done with Bethesda for now. I may play the game just because I have it, but I'm just disappointed with Bethesda as a whole. It's like when I tried playing Rage after I picked it up on sale. It made me wonder how they ever manage to make a decent game.

Tuesday, May 29, 2018

Tech Review: EC Technology Foldable Bluetooth Keyboard (A40-BT002)

Due to work, I often find myself emailing from my phone or desperately trying to find a computer and spending the extra time to log in and get to my email just to type with a real keyboard. This is because I move around between multiple locations and am often on someone else's computer that may or may not work, and I also don't necessarily want to log into my email on someone else's account. Worst case scenario involved pecking at my phone screen or swiping around in feeble attempts to get everything spelled out correctly. Often times names, brand names, special characters, or various technobabble leads to horribly written emails with at least one typo. This is far from ideal, so I finally caved in and got a Bluetooth keyboard.

The one I settled on was the EC Technology A40-BT002. My main draw to this was the covers over the hinges. I don't like exposed ribbon cables or cables crammed into a joint as I tend to damage those quite often. The device is also cased in aluminum, so should be pretty durable and it also makes it feel like quality. The dimensions are pretty good, it is like a stockier shape of my Pixel XL in a Lifeproof case. I actually got that case to keep crap out of the ports because the rubber plugs I had purchased got lost too often. So it's a little shorter, wider and roughly the same thickness, not enough difference to notice. When it is open, it's a good size for people with normal sized hands, mine are rather large but I have to type on chromebooks from time to time and it's fairly similar. It holds itself open very well, the hinges are so low profile they are almost completely unnoticeable. All things considered, it's a really solid design.

The way it folds up, the hinges are right on the staggering of the keys, so the main part of the keyboard remains proportionate and the seem between is very easy to miss if you're not looking. It has all the keys I need, as I also like to play around with Termux on my phone. The biggest problem I have is the size of the shift key on the right and the tab key. I keep accidentally hitting the up arrow and tab is virtually non-existent compare to the other keys. I'd say it has a learning curve to get used to for full-speed typing. Luckily, I type slow normally.


To use this on a computer, you will need to use the Windows layout to use the Home, End, Page up, and Page down keys. Unfortunately, it won't let me use the Windows key as the Super key when in Virtualbox, it just uses it as the Command key on Mac. While on a Mac, switching to IOS let's me use some of the other functionality like Volume up and down.

Now I've only had it for a few days, but I am quite happy with the purchase. It looks good, feels like quality, and types well enough for a quick email or messing around with Termux. It's also nice to not lose half the screen just to type. This makes split-screen apps on Android actually useful since the screen won't resize just to type. Now I just need a solution for carrying around everything for EDC, because at work I just use my Fallout NCR messenger bag. Anyone think fanny packs are in?