ember-cli-windows icon indicating copy to clipboard operation
ember-cli-windows copied to clipboard

Ember-cli-windows error on Console

Open riliwanrabo opened this issue 9 years ago • 6 comments

I have this error each time i run ember-cli-windows

Configuration Error: Get-Command : The term 'Set-MpPreference' is not recognized as the name of a cmdlet, function, scr ipt file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try

Configuration Error: again. At C:\Users\Riliwan\AppData\Roaming\npm\node_modules\ember-cli-windows\powershell\setup-defender.ps1:95 char:9

  • if (Get-Command Set-MpPreference) {
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (Set-MpPreference:String) [Get-Command], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand

Automatic Defender configuration is only available on Windows 8 or newer.

riliwanrabo avatar Jan 04 '16 02:01 riliwanrabo

Hey, thanks for reporting! Which version of Windows are you running on? As the error message says, automatic Defender configuration is only available on Windows 8 or newer.

felixrieseberg avatar Jan 04 '16 09:01 felixrieseberg

@felixrieseberg I run windows 10. Could it be a disk problem ?

riliwanrabo avatar Jan 08 '16 15:01 riliwanrabo

Interesting - do you have Windows Defender running? The script should give you a pretty message if defender is disabled, but what you're seeing might just mean that defender isn't running.

felixrieseberg avatar Jan 08 '16 21:01 felixrieseberg

ok. I have it running, I turned it off manually and it still throws the error. I used to have a smart disk error too. So i changed the disk recently after backup and it works in my new OS. I have no idea why this is. I f you do pls explain otherwise this issue can close. cheers.

riliwanrabo avatar Jan 09 '16 15:01 riliwanrabo

Same issue here, but Defender is not in use. Running Trend Micro on Windows 10.

ghost avatar Jan 25 '16 12:01 ghost

I have the same issue on win 8, because I turned off Defender... but as I saw on the code that the script excludes the path from Defender, so I guess that this part and error has no incidence since the defender is turned off, so already is not working on this path, am I all right?

crsepulv avatar Oct 18 '16 19:10 crsepulv