Office 2019 Install

https://msguides.com/microsoft-software-products/office-2019.html

Download & Install Office 2019 http://officecdn.microsoft.com/pr/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/media/en-us/ProPlus2019Retail.img

Open command prompt with admin rights and type

cd /d %ProgramFiles%\Microsoft Office\Office16

or

cd /d %ProgramFiles(x86)%\Microsoft Office\Office16

then each of the following lines individually

for /f %x in ('dir /b ..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%x"
cscript ospp.vbs /setprt:1688
cscript ospp.vbs /unpkey:6MWKP >nul
cscript ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
cscript ospp.vbs /sethst:kms8.msguides.com
cscript ospp.vbs /act

Outlook 2010, 2013 & 2016 Wont Archive Emails Fix

Problem;-
Outlook will not let me archive old emails to a .pst file. The reason I want to do this is to free up space in my exchange online mailbox as it’s nearing it’s limit. I can tell it to do an archive, specify a date etc but it does nothing and all the old emails I told it archive are still there.

Solution;-
Outlook for some reason decides to archive based on modified date not sent or received date that you would expect. To remedy this you must first make sure that if you are using Outlook 2010 then you have applied the following hotfix first (not needed for 2013 or 2016) then add the following entry to the Registry.

Key for Outlook 2010: 
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Preferences
Key for Outlook 2013: 
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Preferences
Key for Outlook 2016: 
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Preferences

Value name: ArchiveIgnoreLastModifiedTime
Value type: REG_DWORD
Value: 1

You must restart Outlook after you add the ArchiveIgnoreLastModifiedTime registry.

Archiving should now work as expected.

How to Check Index Fragmentation on Indexes in a SQL Database

Firstly I would like to point out that the following article was copied from here so all credit goes to them. I found it while tying to find out why one of our databases was incredibly slow!

Issue

SQL Queries taking longer than normal to complete.

Environment

SQL Server 2005, SQL Server 2008 R2, SQL Server 2012, SQL Server 2014, SQL Server 2016

When a database is frequently updated via INSERT, UPDATE, or DELETE statements we can expect it to become fragmented over the time.

If database indexes are fragmented, the SQL Server query optimizer may chose a non-optimal execution plan when using an index to resolve a query.

This will affect the overall query performance and you may notice a query behaving slower than normal.

Resolution

**Warning: Irreparable database damage can occur. This procedure should only be performed by users familiar with SQL Server Management Studio. Databases should be backed up prior to performing this procedure.**

The following is a simple query that will list every index on every table in your database, ordered by percentage of index fragmentation.

SELECT dbschemas.[name] as 'Schema',
dbtables.[name] as 'Table',
dbindexes.[name] as 'Index',
indexstats.avg_fragmentation_in_percent,
indexstats.page_count
FROM sys.dm_db_index_physical_stats (DB_ID(), NULL, NULL, NULL, NULL) AS indexstats
INNER JOIN sys.tables dbtables on dbtables.[object_id] = indexstats.[object_id]
INNER JOIN sys.schemas dbschemas on dbtables.[schema_id] = dbschemas.[schema_id]
INNER JOIN sys.indexes AS dbindexes ON dbindexes.[object_id] = indexstats.[object_id]
AND indexstats.index_id = dbindexes.index_id
WHERE indexstats.database_id = DB_ID()
ORDER BY indexstats.avg_fragmentation_in_percent desc

This query can be modified to focus on specific tables by append the table name to the ‘where’ clause:

WHERE indexstats.database_id = DB_ID() AND dbtables.[name] like '%%'

In order to reduce fragmentation we will have to reorganize or rebuild the indexes. Choosing between reorganizing or rebuilding depends on the query results.

For heavily fragmented indexes a rebuild process is needed, otherwise index reorganisation should be sufficient.

The following info summarises when to use each one:

Reference Values (in %): avg_fragmentation_in_percent > 5 AND < 30
Action: Reorganise Index
SQL Statement: ALTER INDEX REORGANIZE

Reference Values (in %): avg_fragmentation_in_percent > 30
Action: Rebuild Index
SQL Statement: ALTER INDEX REBUILD

Learn morse code the easy way

I stumbled across this nifty little Morse code learning tool today whilst browsing the Experiments with Google site. I know what you’re thinking… “why do i need to learn Morse code”? Well… it’s highly unlikely that you would ever need to know, but the idea behind this trainer is to make learning Morse code fun and encourage people to keep at it.

Why not give it a try… https://morse.withgoogle.com/learn/ 

Publish current files shortcut key Visual Studio 2017

I know this is unbelievely basic but to publish the currently selected file in Visual Studio 2017 whether it’s the current file you’re working on or one you have selected in the solution explorer all you have to do it press the following…

Hold Alt, then press ; then press P

The reason for this post is that Visual Studio displays the shortcut key as Alt+;,Alt+P which I found a bit confusing and after a bit of ‘googling’ I found that many others out there thought the same too!

Stop Windows Server 2012 from automatically restarting after login

Let’s imagine… you’ve just logged in to your server and you are presented with “Your PC will restart in 15 minutes”. In some cases, this may cause you to panic, especially if you know the server is being used by lots of “important” users.

Fortunately there is a quick fix for this to stop the countdown and avoid a reboot.

  1. Open an Administrative command prompt.
  2. Type NET STOP WUAUSERV to stop the Windows Update service.

This will stop the windows update service and stop the countdown timer until the server is rebooted manually at a more convenient time.

P.S. If you are reading this article you may already have found people suggesting you type “shutdown -a” from a command prompt. This does not work!

Windows update not working, stuck at 0%

I found a solution to my problem when Windows would search for updates, but then when it started downloading it would stay at 0% forever. I started by stopping the Windows Update service (in my case the service proved to be frozen so I restarted my computer and disabled the service before it starts) and the Application Experience service. After that I went to the C:\Windows\SoftwareDistribution folder and pressed ctrl+a and shift+delete to empty its contents. Mine contained more than 70,000 files so it took a while. I started Application Experience and enabled Windows Update. I let it check for updates and try to download them. It worked perfectly.

Do not worry about deleting important windows files in this case. The contents of SoftwareDistribution is used as a cache and data for Windows Update. When Windows Update starts again it rebuilds the cache repopulating it with up-to-date versions of the files and chewing up a ton of hard disk space again.

Original article can be found here

How do I enable the Windows 10 administrator account?

To enable the Windows 10 administrator account do the following:

  1. Tap on the Windows-key. This should open the start menu or bring you to the Start Screen interface depending on how Windows 10 is configured on the system.
  2. Type cmd and wait for the results to be displayed.
  3. Right-click on the Command Prompt result and select “run as administrator” from the context menu.
  4. Run the command net user to display a list of all user accounts on the system.
  5. To activate the inactive administrator account, run the command net user administrator /active:yes
  6. If you want to enable the guest account as well run the command net user guest /active:yes
  7. The administrator account is active now which means that you can sign in to the system using it. It is not password protected by default which means that anyone with access to the system can use it to sign in to it.

It is highly recommended to protect it with a password. This can also be done on the command line:

  1. Type net user administrator * and hit enter.
  2. You get a password prompt. Type the desired password and again when you are asked to type it a second time for confirmation.

To disable accounts at any time, use the following command:

  1. On an elevated command prompt: net user administrator /active:no

Other commands of interested are:

  1. Net user administrator – Displays information about the user account on the command line.
  2. Net user username /delete – Deletes username on the system. This does not work with built-in accounts.

This article was originally found here

Mailchimp’s CSS Inliner Tool

Formatting HTML emails to look great in email clients can sometimes be a real pain. Some email clients strip out <head> and <style> tags from emails, so it’s best to have your CSS written inline within your markup. We all know that writing inline CSS is time consuming and repetitive, so Mailchimp built a conversion tool to automatically inline your email’s CSS.

Mailchimp’s CSS Inliner Tool

You just paste your email’s HTML, click Convert, and you’ll get a more email-friendly version that’s ready to send. If your email’s CSS includes media queries for responsive styling, don’t worry – the inliner tool will leave those rule sets alone.

Thanks Mailchimp 🙂