Hi,
I’m trying to run a PowerShell command with “Guest Script Manager” and the “Run Script in Guest” workflow, the host is a windows 10 workstation with RSAT and RemoteSignExection set to unrestricted.
I get the following error –
[2016-05-23 18:38:57.028] [E] trap
{
Write-Error $_
exit 1
}
Add-DnsServerResourceRecordA -ComputerName "DNS-Server" -Name "hostname" -ZoneName "test.lab" -IPv4Address "172.50.50.50"
[2016-05-23 18:38:57.032] [E] /C powershell -OutputFormat text -NoProfile -NonInteractive -ExecutionPolicy unrestricted -f C:\Windows\TEMP\vmware206\vco_vmware251.ps1 > "C:\Windows\TEMP\vmware206\vco_vmware219"
[2016-05-23 18:38:57.542] [I] cmdANSI.exe already exist on vCO server : /var/lib/vco/app-server/temp/cmdANSI.exe
[2016-05-23 18:39:26.293] [I] C:\Windows\TEMP\vmware206\vco_vmware251.ps1 : The term
'Add-DnsServerResourceRecordA' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep
tion
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
n,vco_vmware251.ps1
when I run the command manually on the workstation its works fine…