Stop/kill a hung service [SOLVED]

Occasionally you will come across a hung service

Most likely when you are updating, upgrading or restarting a section of a program. Exchange is a prime culprit of this, hanging information stores and the likes. So;

To kill the service you have to know its PID (Process ID). Finding this is easy in an administrative command prompt:

1: lookup the process ID

sc queryex *service name*

(Hint: you can find the service name by loading up services.msc and then opening the services properties dialog)

Step 2: Identify the PID
Halfway down the list will be the services associated PID

Step 3: kill the process with the taskkill command

taskkill /f /pid *PID*

This will force kill the hung service, which you can then re-start in services.msc

Change message size limits in exchange 2016

There is the odd occasion that you may need to change the allowed message size limits in exchange, either to send or to receive – below we look specifically at self hosted Exchange 2016

First, open up Exchange powershell, and and enter any required domain credentials.

Next we are going to view the current message limits on the server by the following multiline command:

get-transportconfig | ft maxsendsize, maxreceivesize
get-receiveconnector | ft name, maxmessagesize
get-sendconnector | ft name, maxmessagesize
get-mailbox Administrator |ft Name, Maxsendsize, maxreceivesize

Once armed with this information we can proceed to string together a command in order to get the desired messages allowed through the system. The main command is the below:

get-transportconfig | Set-TransportConfig

This calls the transport layer configurations and allows you to pipe changes to it. Next we have the different set commands for different limits;

-maxsendsize 30MB -maxreceivesize 30MB; get-receiveconnector | set-receiveconnector -maxmessagesize 30MB; get-sendconnector | set-sendconnector -maxmessagesize 30MB; get-mailbox | Set-Mailbox -Maxsendsize 30MB -maxreceivesize 30MB

From the above, you can pick and choose what you need to change the message size limits, as in the example, this will set ALL connectors ingoing and outgoing to 30MB. The full command will look something like the below:

get-transportconfig | Set-TransportConfig -maxsendsize 30MB -maxreceivesize 30MB; get-receiveconnector | set-receiveconnector -maxmessagesize 30MB; get-sendconnector | set-sendconnector -maxmessagesize 30MB; get-mailbox | Set-Mailbox -Maxsendsize 30MB -maxreceivesize 30MB

Hydrocoptic Marzel Vane – A script for the modern techie

OK, so its not a script like you are thinking.  Nope, no command line switches here! Instead a Hydrocoptic marzel vane is part of the fictional ‘Turbo Encabulator’ machine. 

Well thanks for that, now what am i supposed to gain by knowing this information!?
Simply put, this is a technical jargon inside joke – and something that we can learn a couple of lessons from,

  1. When speaking to your customers, keep your jargon to a minimum! 
    No-one wants to really know how power is generated by “the relative motion of conductors and fluxes, it is produced by the modial interaction of magneto-reluctance and capacitive diractance” – You will save your time and effort in having to explain, and then re-explain. You are most probably not paid to give a detailed explanation of every detail of an issue. Focus on your customer service instead.
  2. When a customer knows a little bit and insists on ‘more information’ – give it to them in full. A study found that out of 21 engineers and Physicist’s were asked to imagine what this fictitious device actually did, not one of them came out with the same answer. Basically put, sometimes you are never going to satisfy the curiosity of someone who thinks they know it all, therefore, this is a great way to put an end to a discussion, practice and rehearse all your best jargon to them, not only will it baffle hem, but it will also prove to them that you may just know something more than them and are well versed in the area and problem you are currently solving.

Video here:

Full transcript below:

“For a number of years now, work has been proceeding in order to bring perfection to the crudely conceived idea of a transmission that would not only supply inverse reactive current for use in unilateral phase detractors, but would also be capable of automatically synchronizing cardinal grammeters. Such an instrument is the turbo encabulator.

Now basically the only new principle involved is that instead of power being generated by the relative motion of conductors and fluxes, it is produced by the modial interaction of magneto-reluctance and capacitive diractance.

The original machine had a base plate of pre-famulated amulite surmounted by a malleable logarithmic casing in such a way that the two spurving bearings were in a direct line with the panametric fan. The latter consisted simply of six hydrocoptic marzlevanes, so fitted to the ambifacient lunar waneshaft that side fumbling was effectively prevented.

The main winding was of the normal lotus-o-delta type placed in panendermic semi-boloid slots of the stator, every seventh conductor being connected by a non-reversible tremie pipe to the differential girdle spring on the “up” end of the grammeters.

The turbo-encabulator has now reached a high level of development, and it’s being successfully used in the operation of novertrunnions. Moreover, whenever a forescent skor motion is required, it may also be employed in conjunction with a drawn reciprocation dingle arm, to reduce sinusoidal repleneration.

Further information is available about this great device is available here on its own Wikipedia page: Turboencabulator Transcript is from TheChiefStoryteller.

Posted in