Useful MarkLogic links

Useful MarkLogic links:

PowerShell function to check if MarkLogic is up

Function to quickly see if MarkLogic is up and running

Taken from my unsuccessful StackOverflow answer :-)


Function to SmartCreate Folder in Powershell

Function to create a folder in Powershell if it doesn’t exist or recreate if it exists


Powershell function to execute remote code

This is an example of how to execute PowerShell remote code and pass parameters:

How to install GIT/Stash client in Windows?

This is the software used in Windows to be a GIT Client

  1. Install latest Git version (
    Ensure to remove Windows Explorer Integration as we should use TortoiseGit.
  2. Install latest TortoiseGit version (
    Alternative to TortoiseGit is GitExtensions (No file icons in Windows Explorer, installs kdiff)
  3. Install Beyond Compare 3.0 and configure TortoiseGit to use Beyond Compare
  4. Optionally install Visual Studio Tools for Git. for Visual Studio 2012-SP3 (Visual Studio 2013 includes Git tools by default)
  5. Optionally install PoshGit to have enhanced git coloured shell
  6. Optionally install Attlasian Source Tree


Function to SmartCreate Network Share in Powershell

This is a function to create a readonly Network Share if it doesn’t exist.

How to fix PowerShell remoting not working

If Powershell remoting is not working between two servers check this:

  • Check if Windows Remote Management (WS-Management)  windows service is started
  • Execute winrm quickconfig
  • Check that winrm port is the same as listener port
    • Winrm port: winrm get winrm/config
    • Listener port: winrm enumerate winrm/config/listener
    • Change listener port by (from elevated cmd!!!):
      Winrm set winrm/config/listener?Address=*+Transport=HTTP @{Port=”81″}
  • Check Windows Firewall
  • Check that choosen port (5985 or 81) is open (Cryping, NMap)

How to fix Visual Studio 2013 default UI?

My preferred actions to fix it.

  • Change theme (Blue/Dark/Light)
    • Menu TOOLS / options / General and choose Color Theme
  • Change the menus casing from UPPERCASE to SentenceCase (reference)
    • Menu TOOLS / Library Package Manager / Package Manager Console and enter and run Set-ItemProperty -Path HKCU:\Software\Microsoft\VisualStudio\12.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1
  • Disable expanding file contents in Solution Explorer (reference)
    • Go to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0 and add a new dword value named UseSolutionNavigatorGraphProvider with a value of 0.
  • Change Icons