header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Remote wdsutil.exe invoke-command
Last Post 17 Dec 2009 02:08 AM by LANTZ Franck. 0 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
LANTZ FranckUser is Offline
New Member
New Member
Posts:2
Avatar

--
17 Dec 2009 02:08 AM
    Hi,

    I can't manage to execute a wdsutil.exe command remotely
    Server : 2008R2
    Client : Win 7 x64

    What i've done:
    enable-psremoting on the server

    Here's the ps1 script :
    $name=Read-Host 'Entrer Name'
    $address=Read-Host 'Entrer MAC'
    invoke-command -computer server -ScriptBlock { param($device, $mac) Invoke-Expression "'c:\windows\system32\WDSUTIL.exe /Add-Device /Device:$device /ID:$mac /ReferralServer:server'" } -ArgumentList $name, $address

    It execute wdsutil but return an error. Same command executed locally work flawlessly.

    Don't understand what happened.
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer