I want to get list of Images from a WDS Server (Windows Deployment Services) remotely.
I'm using the PowerShell command Get-WdsInstallImage
and it needs the highest privileges.
I'm tried the below commands, but they don't work:
Invoke-Command -ComputerName "<computer name>" -Authentication Kerberos -Credential $(Get-Credential) -ScriptBlock {Get-WdsInstallImage}
Invoke-Command -ComputerName "<computer name>" -ScriptBlock {Start-Process PowerShell.exe Get-WdsInstallImage -verb runAs}