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 ?

0

Comments

2 comments
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.

    0
  • 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 !

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post