This works perfectly from a command line
powershell (Get-Content c:\uc4\agents\windows\bin\UCXJWX6.ini.item)[0]
I get the first line of the file.
but gets the following from preview in a backend
Error: U02000172 Command with RunID '14427931' ended on return code '1'. Command:
'powershell (Get-Content c:\uc4\agents\windows\bin\UCXJWX6.ini.item)[0]'.
adding CMD gets a response, but the wrong one
Microsoft Windows [Version 6.1.7601] | Microsoft Windows [Version 6.1.7601] |
Copyright (c) 2009 Microsoft Corporation. All rights reserved. | Copyright (c) 2009 Microsoft Corporation. All rights reserved. |
C:\uc4\Agents\Windows\bin> | C:\uc4\Agents\Windows\bin> |
adding CMD /c gets
Error: U02000172 Command with RunID '14427931' ended on return code '1'. Command:
'cmd /c powershell (Get-Content
c:\uc4\agents\windows\bin\UCXJWX6.ini.item)[0]'.
So what am I missing? Is powershell missing from the server? is there a config / vara setting in UC4 that I need?