Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Using PowerShell
>
General PowerShell
Remote wdsutil.exe invoke-command
Last Post 17 Dec 2009 02:08 AM by
LANTZ Franck
. 0 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
LANTZ Franck
New Member
Posts:2
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.
Using PowerShell
--General PowerShell
--Books, Tools, and Videos
--Exchange Server
--Active Directory
--System Center Family
--Non-Microsoft Products
--SharePoint
--SQL Server
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Using PowerShell
>
General PowerShell
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2