howto://launch a webpage from a batch file

So there is a class I am trying to get into, and apparently it’s so full that the waitlist is massive. They sent an email blast out for the first open seat on a "first to respond wins" basis. I wasn’t first. If they happen to send another email blast though, I will win that time, because this is what I am doing.

  1. Create a rule in Outlook to launch an app when the next email arrives. I used the "Subject contains" rule since it is definitely unique.
  2. Create a register.cmd file that contains the following
    START "" "c:\scratch\reg.html"
  3. Create "c:\scratch\reg.html" to include the following
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
          < html>       
      <head>
       <title>#WINNING</title>
      </head>
      <body>
       <meta http-equiv="Refresh" content="0; url=http://theurloftheregistrationlink" />
      </body>
    < /html>
  4. Make sure I leave Outlook open since this is a client-side rule.

If you use the START command in a batch file, you can specify the title of the window that is open. Since I am trying to invoke my browser, I need to specify a blank title else it will just create a cmd prompt with that URL as the title.

If the URL was a little more straightforward, I could invoke it directly from the START, but in this case the URL has some interesting bits that just make it easier to keep in a separate page.

If all goes well, victory will be mine! And if not, I still learned something cool today, hence the share. Hope this helps someone else (just not anyone going for the same class as me!)

Direct link…http://youtu.be/0FmPg4lrBKc

I bet you were expecting a Charlie Sheen video, weren’t you?

howto://register the schema dll in 2012r2

As a follow up to upgrading AD to 2012R2, I wanted to transfer all the roles off the legacy DC. When I went to register the schema management.dll using regsvr32 in a run dialog box, like this…

regsvr32.exe schmmgmt.dll

I got spanked with this.

image

The module “schmmgmt.dll” was loaded but the call to DllRegisterServer failed with error code 0×80040201.

User Account Control (UAC) doesn’t let us do this directly from a run dialog. To do this and get it to work, you need to run this from an administrative command prompt.

Running the same command this way

image

gets this

image

and more to the point, lets you run the Active Directory Schema Management console.

Do You Really Need Patch Management?

I work with a variety of customers in my role as a consultant, from sole proprietorships employing only a few tens of users to enterprise organizations with a few tens of thousands of employees spread around the globe. Large or small, non-profit or Fortune 500, at some point their IT manager (or owner!) asks themselves a seemingly simple question-“Do I really need patch management?” For many reading this article, the answer is obvious. “Of course you do. Duh!” But for others, especially those who asked themselves and their search engine this same question, the answer is not as clear. In this article, I want to help you understand why the answer to that question is so clear to others, and show you what patch management offers you. Large or small, record profits or just squeaking by, every business with computers needs patch management. Here’s why.

Continue reading

howto://upgrade Active Directory to 2012R2

Alternate title, DCPROMO is dead! Long live some little yellow triangle! 

It being past time for me to upgrade Active Directory at home to DCs running 2012R2, I wanted to put together this little walkthrough for others looking for a procedure doc to cover schema and perms, or maybe even where the hell dcpromo went! If you’d like a 20K foot overview of what you need to do in order to add a 2012R2 DC to your domain, here’s what you need to know.

Continue reading

howto://fix the hardware on the destination computer is not compatible

I’m in the middle of upgrading my Hyper-V servers at home from 2012 to 2012R2. To keep things up and running, I live migrated (shared NOTHING) the VMs from the first server to be rebuilt to the second. That worked just fine. I flattened the first server, installed 2012R2, added the Hyper-V role, and tried to move a VM back to it, only to be spanked with Continue reading

lest the tubes become overfull…