E
egarcia
Guest
Hello, The message that you are seeing seems to happen because cmd.exe (%ComSpec%) is processing two commands: 1) powershell.exe Get-ADUser -LDAPFilter '(displayName=John Doe)' -Properties Department 2) Select Name, Department You would need to change your command to be a single command for powershell.exe. Example: DEFINE VARIABLE cCommand AS CHARACTER NO-UNDO. cCommand = 'powershell.exe "Get-ChildItem C:\w* | Select Name"'. OS-COMMAND VALUE(cCommand). I hope this helps.
Continue reading...
Continue reading...