howto://add the Telnet client to Windows 10

Just a quick reminder to myself on how to enable the Telnet Client in Windows 10, since I always seem to forget.

  1. Open an administrative command prompt.
  2. Run this command
    dism /online /enable-feature /featurename:telnetclient
  3. Done. It will be immediately available, even in existing, non-admin command prompts you already have open.

If you want to test it out, try this! telnet://towel.blinkenlights.nl/

howto://disable hibernation in Windows

In case you don’t ever plan to have your computer hibernate, and would like to buy back the disk space wasted reserved by hiberfil.sys, it’s pretty simple to fix this.

  1. Open an administrative command prompt
  2. Run this command
    powercfg /hibernate off
  3. Profit 🙂

howto://set a Windows Server 2016 Hyper-V host to use SNTP for time sync

TL;DR
set your server to sync to NTP by running these commands.

w32tm /config /syncfromflags:MANUAL /manualpeerlist:pool.ntp.org /reliable:yes /update

net stop w32time && net start w32time

So I’m in the process of (re)setting up my lab, using a pair of multi-proc servers running Hyper-V to host my VMs. These will be member servers, which would normally get their time from a PDC in their domain. Of course, DCs normally need to get their time from a reliable time source, but as VMs, mine would get their time from the host servers on which they run. I could have changed the DCs of course, but instead opted to make those physical systems more reliable. That’s what this post is all about. Continue reading “howto://set a Windows Server 2016 Hyper-V host to use SNTP for time sync”

howto://fix Outlook’s Autocomplete Cache

Problem

Outlook 2013 autocomplete stops working. Outlook works fine otherwise.

Cause

Probably nickname cache corruption.

Fix

You can use NK2Edit to fix a corrupt nickname cache file.

  1. Have Outlook open.
  2. Download and install NK2Edit from http://nirsoft.net/utils/outlook_nk2_edit.html
  3. When prompted run it. It will automatically open your nickname cache file and prompt you about the total entries versus good entries.
  4. Close Outlook.
  5. Save your nickname cache file (default save.)
  6. Reopen Outlook and confirm your autocomplete now works.

howto://automatically delete conversation history in Office 365

no

One of the most useful parts of Lync is that it automatically saves conversations in a mailbox folder called “Conversation History.” I probably refer to content in there three or four times a day-what did my boss ask for? What what that URL Tim sent me? Who did I promise to send something to? Which customer wanted to do X? When you’re a hardcore multitasker and don’t have an eidetic memory, Conversation History can be a lifesaver. But if it is in your mailbox, then it becomes discoverable, and there are some companies (or rather, some legal departments in some companies) that think users will spill the beans in an IM, so they want to make conversation history go away. IF you don’t want to save Conversation History at all, for any user, with any client, then you can use Lync Online remote PowerShell to do that. This is not that blog post.

Continue reading “howto://automatically delete conversation history in Office 365”

Why’s my 50 GB mailbox only 25 GB?

2018-01-29 edit-the same principle applies today with the 100GB mailbox limits if your are still seeing 50GB on older mailboxes.

bigmailbox

Office 365 recently upgraded all enterprise customers mailboxes from 25 GB to 50 GB, but some users may find that they are still seeing only 25 GB of storage. If you find yourself in this situation, here’s a couple of quick fixes to set your users up for their new massive mailboxes.

Existing Users

If you have existing users whose mailboxes are still showing 25 GB limits, but you’ve been upgraded to the new 50 GB size, you just need to adjust those users. Here’s what you can do.

    1. Confirm that your mailbox databases have been upgraded. They should be by now, but best to make sure before you proceed. Open a remote PowerShell session to Office 365 and run this command
      get-mailboxplan | fl displayName, *quota
      If your quotas still show 25GB limits, open a support case.
    2. Run this command to increase the mailbox quotas for the 50 GB limits
      get-mailbox -resultsize unlimited | set-Mailbox -IssueWarningQuota 48.5GB -ProhibitSendQuota 49GB -ProhibitSendReceiveQuota 50GB
    3. Profit.

New Users

If you want to ensure that new users are automatically provisioned with the 50 GB limits, you want to update your mailbox plan defaults. You will have to do this for each mailbox plan in your tenant.

1. Remote PS to your tenant.

2. Get-MailboxPlan to get the plan(s) in your tenant.

3. Run this command, substituting your plan name. Command is one line that wraps.

set-mailboxplan ExchangeOnlineEnterprise-fdeba728-963d-40df-8ff3-9a6b7a751ab2 -IssueWarningQuota 48.5GB -ProhibitSendQuota 49GB -ProhibitSendReceiveQuota 50GB

4. Rinse and repeat if you have more than one, or you could do a “get-mailboxplan | set-mailboxplan…” to nail them all at once, as long as you don’t mind getting an error for any plans, like K, that cannot go that high. It won’t hurt anything to do it that way, but some folks hate to see red text.

And with that, you have some really big mailboxes for all your users. They won’t need to delete anything for years to come, unless of course they use their mailbox as a file system, and subscribe to every DL and newsfeed they’ve ever seen. Even then, if they want it all, they can have it all!

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!)

Where in the blue hell is sysprep?

Are you trying to sysprep a Windows Server 2012 R2 box but can’t find sysprep.exe? Have you dropped to an administrative command prompt, typed sysprep /… like you have done for years and years only to be spanked with a

sysprep is not recognized as an internal or external command, operable program or batch file.

Did you fear that Microsoft pulled the utility that you have used for generations? Me too, on all counts. I both Binged, and then broke down and Googled and could not find anyone who pointed out what is obvious in retrospect. The sysprep utility is now in its own subdirectory, and therefore no longer in your path.

From your admin cmd prompt, cd into C:\Windows\system32\Sysprep and you will find what you’re looking for.

Oh look, there it is! c:\windows\system32\sysprep

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://upgrade Active Directory to 2012R2”