Just a quick one about PS1 RRS feed

  • Question

  • I am learning more about PowerShell every day thanks to you guys on here. I have made a few simple scripts that call various things like WMI, Netsh, and native powershell commands.... it seems very versatile that I can pretty much put any command in here and it will work..... is PS1 kind of like a container file where many different commands can be run? is this the acceptable/intended way to use a ps1 file?

    I havent tried it yet but would I be able to put vbscript in there or is more restricted to powershell and other commands?


    Monday, July 28, 2014 8:30 PM


  • A ps1 file is a PowerShell script file.

    You can't put other languages in it. It can contain only PowerShell commands/code.

    -- Bill Stewart [Bill_Stewart]

    Monday, July 28, 2014 8:32 PM

All replies