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


Execute function in remote Computer

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

Git first steps in Windows

This is the software used in Windows to have 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 winrm service is running. Full name is Windows Remote Management (WS-Management)
  • Execute winrm quickconfig
  • Enable-PSRemoting -Force command on server.
  • Get-ExecutionPolicy -List to check that you can execute…
  • 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=”5985″}
  • Check Windows Firewall is not blocking port.
  • Check that choosen port (5985 or 81) is open (Cryping, NMap)
  • Check TrustedHosts list
  • Test with Invoke-Command -ComputerName SERVER -Port 5985 -ScriptBlock {“C:\Program files” |  Get-ChildItem}
  • Test Invoke-Command with Credentials


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