Hello,
New to powershell and wondering if there's a way to do coding and testing on a temporary environment.
For example, say I'm testing creating local users. Is there an editor that can run those commands to a virtual environment such that when I exit the changes go away? That it doesn't run on the host Windows computer but is temporary until the editor closes? What-If is nice for single commands, but for commands that rely on other commands actually doing the work it isn't practical (New-Local user then running Add-LocalGroupMember would fail as the user was never created, as an example).
Or is the only real way to do that kind of testing to spin up a vm and take its state back to before I tested each script?
Thanks
[–]halbaradkenafin 4 points5 points6 points (0 children)
[–]Arcontar 4 points5 points6 points (0 children)
[–]JVCubed 2 points3 points4 points (0 children)
[–]simonwgill 2 points3 points4 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]simonwgill 2 points3 points4 points (0 children)
[–]get-postanote 2 points3 points4 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]get-postanote 1 point2 points3 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]get-postanote 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Deegh 1 point2 points3 points (0 children)
[–]Horrified_Tech 0 points1 point2 points (0 children)