Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Powershell VirtualMachinePlatform

Hi, I try to deploy this command but it never work:

Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform

I always have this error:

Windows PowerShell n'est pas en mode interactif. La fonctionnalité de lecture et d'invite n'est pas disponible.
Au caractère C:\WINDOWS\AdminArsenal\PDQDeployRunner\service-2\exec\Error Handling Wrapper.ps1:58 : 2
+     Throw $_.Exception.ErrorRecord
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation : (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : InvalidOperation

 Could you help me me this please ?



Date Votes
  • When I've gotten that error in the past, I've made my script a ps1 file and called the file instead instead of having the script directly run in PDQ.

  • Hi, thanks for your quick answer. I've created ps1 files instead and placed them in my PDQ package. It worked fine. Thanks for your help !