def remove_feature(feature, remove_payload=False, image=None, restart=False):
 cmd = ['DISM', '/Quiet', ('/Image:{0}'.format(image) if image else '/Online'), '/Disable-Feature', '/FeatureName:{0}'.format(feature)]
 if remove_payload:
  cmd.append('/Remove')
 if (not restart):
  cmd.append('/NoRestart')
 return __salt__['cmd.run_all'](cmd)

def remove_feature ( feature , remove_payload = False , image = None , restart = False ) : cmd = [ 'DISM' , '/Quiet' , ( '/Image:{0}' . format ( image ) if image else '/Online' ) , '/Disable-Feature' , '/FeatureName:{0}' . format ( feature ) ] if remove_payload : cmd . append ( '/Remove' ) if ( not restart ) : cmd . append ( '/NoRestart' ) return __salt__ [ 'cmd.run_all' ] ( cmd )
disables the feature .