code: def restart_apppool(name):
      '''
      Restart an IIS application pool.
  
      .. versionadded:: 2016.11.0
  
      Args:
          name (str): The name of the IIS application pool.
  
      Returns:
          bool: True if successful, otherwise False
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' win_iis.restart_apppool name='MyTestPool'
      '''
      ps_cmd = ['Restart-WebAppPool', r"'{0}'".format(name)]
  
      cmd_ret = _srvmgr(ps_cmd)
  
      return cmd_ret['retcode'] == f restart_apppool(name):
      '''
      Restart an IIS application pool.
  
      .. versionadded:: 2016.11.0
  
      Args:
          name (str): The name of the IIS application pool.
  
      Returns:
          bool: True if successful, otherwise False
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' win_iis.restart_apppool name='MyTestPool'
      '''
      ps_cmd = ['Restart-WebAppPool', r"'{0}'".format(name)]
  
      cmd_ret = _srvmgr(ps_cmd)
  
      return cmd_ret['retcode'] == 0
docs: Restart an IIS application pool.
  
      .. versionadded:: 2016.11.0
  
      Args:
          name (str): The name of the IIS application pool.
  
      Returns:
          bool: True if successful, otherwise False
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' win_iis.restart_apppool name='MyTestPool'