hi
i've been trying almost every way i know to execute wdsutil in a remotely executed script. wdutil commands not accessing the configuration (/? /help,..) are working from a remote machine using psexec, PowerShell {Invoke-Command} or even in a remote PSsession. But as soon as i query or add something in WDS, the following Error occurs:
[wds01]: PS C:\> wdsutil /get-allservers /show:all
Windows Deployment Services Management Utility [Version 6.1.7600.16385]
Copyright (C) Microsoft Corporation. All rights reserved.
An error occurred while trying to execute the command.
Error Code: 0x6E
Error Description: The system cannot open the device or file specified.
--> same behavior using psexec or invoke-command.
The only way, i found this working, is using psexec with the option to execute the command as nt authority\system. (PsExec.exe \\WDS01 -s wdsutil /get-allservers /show:all) which isn't very useful, as i would need to execute commands which require higher privileges in the remote script.
Do you know other ways of executing wdsutils in a remotely executed script, or any solution to this?
thank you