def get_service_state_name(state):
    """
    Translate a Windows service run state number to a friendly service run state name.
    """

    return {
        1: 'Stopped',
        2: 'Start Pending',
        3: 'Stop Pending',
        4: 'Running',
        5: 'Continue Pending',
        6: 'Pause Pending',
        7: 'Paused'
        }.get(state, 'Unknown')