none
Test-Connect error :- Error due to lack of resources

    Question

  • I am trying to find out if a machine is online, I can ping the machine but when I use " Test-Connection -ComputerName $comp ", I get the error "Error due to lack of resources"

    If I use the -Credential parameter, the error is "Cannot use credentials for local computer" . 

    Please help if you have any ideas.

    Thank you.

    Tuesday, October 26, 2010 3:52 PM

Answers

  • Is there a problem with the server? can you usually connect or is this your first attempt?
    have you tried other means of connection such as RDP?
    is it 32bit or 64bit os?

    • Marked as answer by RoshDsa Tuesday, October 26, 2010 8:40 PM
    Tuesday, October 26, 2010 4:36 PM
  • I believe test-connection works via WMI.  Can you do any wmi query against the target machine?
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
    • Marked as answer by RoshDsa Tuesday, October 26, 2010 8:40 PM
    Tuesday, October 26, 2010 4:49 PM

All replies

  • Is there a problem with the server? can you usually connect or is this your first attempt?
    have you tried other means of connection such as RDP?
    is it 32bit or 64bit os?

    • Marked as answer by RoshDsa Tuesday, October 26, 2010 8:40 PM
    Tuesday, October 26, 2010 4:36 PM
  • I believe test-connection works via WMI.  Can you do any wmi query against the target machine?
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
    • Marked as answer by RoshDsa Tuesday, October 26, 2010 8:40 PM
    Tuesday, October 26, 2010 4:49 PM
  • 64bit OS.
    Tuesday, October 26, 2010 6:24 PM