A coworker has sent a script file she wrote for Windows OS based systems. She said it was a PowerShell script and it has a .bat file extension. When you run the script you receive several errors immediately. What is most likely the issue?

  • Extension should be .ps1
  • PowerShell is not compatible with Windows OS
  • Run the file as administrator first
  • Extension should be .bat1 or .bat2

CompTIA Security+ SY0-601
  • Attacks, Threats, and Vulnerabilities
  • Architecture and Design
  • Implementation
  • Operations and Incident Response
    • This question is filed here
  • Governance, Risk, and Compliance