September 24, 2017

Ubuntu 17.04 with XEN 4.8 and ZFS

# Update packages
apt update && apt upgrade

# Install XEN hypervisor.
apt-get install xen-hypervisor-amd64

# Modify GRUB and reboot.
dpkg-divert --divert /etc/grub.d/08_linux_xen --rename /etc/grub.d/20_linux_xen
update-grub

# Check that Domain-0 is up and running.
xl list

September 13, 2017

PowerShell - get Process ID of running service

How to get a Process ID of running service using PowerShell?

Get-WmiObject -Class win32_service | where {$_.Name -eq "Service Name"}

Example below will show a Process ID of “Task Scheduler” service:
Get-WmiObject -Class win32_service | where {$_.Name -eq "Schedule"}
ExitCode  : 0
Name      : Schedule
ProcessId : 11900
StartMode : Auto
State     : Running
Status    : OK

Or use more convenient way through Caption property:
Get-WmiObject -Class win32_service | where {$_.Caption -eq "Task Scheduler"}

Want to kill Task Scheduler process?

September 4, 2017

PowerShell - Sea Battle Game

Create 5 submarines and play against computer. Computer generates unique moves and ship placement every new game. Also there is a cheat mode available via (-EnableCheats) parameter to see computer's table.

September 1, 2017

Exchange 2013 - MaxHitsForFullTextIndexSearches

There is Microsoft Exchange 2013 bug, which limits search results by 250 items in Outlook.  

Possible fix can be achieved by amending Microsoft.Exchange.Store.Worker.exe.CONFIG file in BIN folder of your Exchange installation directory. Put the code below after </runtime>: