Hey everyone! I'm looking to get more familiar with PowerShell since I primarily use a MacBook Air M4. I've already got Visual Studio Code set up because I really like its features and visual layout. My main question is: how do I actually test my PowerShell scripts on macOS? I don't want to switch over to Windows just for that. For those of you who also use a Mac, what's your process for testing scripts? Do you connect to any modules or run everything directly? Any tips you have would be greatly appreciated!
2 Answers
Honestly, running PowerShell on macOS works fine for general scripting! If you're getting messages about stuff being incompatible, it might be because you’re trying to use features or modules only available on Windows. But for basic PowerShell tasks, you shouldn’t have much trouble running them right from your Mac!
I use PowerShell on my Mac, and when I need to run scripts that are Windows-specific, I just create a local Windows VM and use PowerShell Remoting over SSH to run my commands from VS Code on my Mac. It works pretty well!
That’s really reassuring to hear, thanks!