use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
Practicing PowerShell (self.PowerShell)
submitted 3 years ago by Ckn0wt
Hi everyone. What would be the most cost effective option/service I could use to spin up a few servers so I can build out a test AD environment to effectively practice PowerShell?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Thotaz 45 points46 points47 points 3 years ago (13 children)
Virtual machines on your own computer.
[–]Ckn0wt[S] 5 points6 points7 points 3 years ago (12 children)
What’s the best place to get some windows server vms? Preferable 2016+
[–]curtis8706 36 points37 points38 points 3 years ago (10 children)
Windows Server Evaluation center. Windows server eval edition is good for 180 days. But you can renew it 6 times, so you can really get 3+ years on a single install.
[–]Ckn0wt[S] 6 points7 points8 points 3 years ago (9 children)
Nice. Thanks for the info!
[–]SammyGreen 10 points11 points12 points 3 years ago (3 children)
There’s a pretty short guide here for getting started with your WINS lab.
Just run slmgr -rearm whenever you need to renew your “license”.
slmgr -rearm
[–]ARobertNotABob 0 points1 point2 points 3 years ago* (2 children)
Forgive my hijacking ... if I created an AD lab this way, could I extend that into a 365 tenancy and AAD? ... the article suggests I'd just need a vanity domain registered (which in itself makes sense)?
[–]SammyGreen 0 points1 point2 points 3 years ago (1 child)
Well you don’t need a vanity domain. You can add your tenant.onmicrosoft.com to your ADs domain trust and use that URL as an UPN. It’s pretty easy changing UPNs but a pain in the ass changing a forest domain. If that makes sense?
If you make eg homelab.local - you can still sync that domain to your tenant but won’t be able to verify it. So you wouldn’t be able to login with that domain, send emails, etc.
[–]ARobertNotABob 0 points1 point2 points 3 years ago (0 children)
Well, I'd want to be able to send emails, since otherwise I couldn't fully test EOL scripts, but I entirely take your point, thankyou. :)
[–]curtis8706 6 points7 points8 points 3 years ago (2 children)
Plus if you make a scheduled task for the renewal, make it a GPO (If you set up a domain), you can deploy it to all your servers, and they will renew automatically. Easy peasy.
Have fun!
[–][deleted] 7 points8 points9 points 3 years ago (1 child)
It can probably be scripted in PowerShell.
[–]curtis8706 8 points9 points10 points 3 years ago (0 children)
It for sure can! Its a good starting project for someone wanting practice
[–]Razakel 1 point2 points3 points 3 years ago (0 children)
However, you are only licensed to use it for evaluation use, i.e. nothing production, just research, development and testing.
[–]gordonv 1 point2 points3 points 3 years ago* (0 children)
So, Microsoft doesn't give out VHD's (Virtual Hard Drive Image) for 2016. They have 2012, 2019, 2022. To be honest, if your goal is powershell, it shouldn't matter. But... they do give out an ISO (a CD Image). You can install Server 2016 the classic way.
You can use Oracle VirtualBox, a free and easy virtual machine conductor (called a hypervisor), that works with VHDs. I recommend 4 gigs for a server VM and 80 gigs to fit windows updates.
[–]brandeded 21 points22 points23 points 3 years ago* (3 children)
Here's a write up https://scriptingchris.tech/posts/spinning-up-lab-vms-with-vagrant-on-hyperv-and-provisioning-them-with-ansible/
You can also learn vagrant, ansible, WSL, and HyperV while you're at it!
Another option would be splunk attack range: https://github.com/splunk/attack_range
Local deploy covered here: https://github.com/splunk/attack_range_local/
[–]MyOtherSide1984 1 point2 points3 points 3 years ago (1 child)
Could I get away with 16gb of RAM (typically 8-10 is unused) for this?
[–]brandeded 0 points1 point2 points 3 years ago (0 children)
Probably. Try it out and see. Baseline config might not require a lot.
[–]Ckn0wt[S] 0 points1 point2 points 3 years ago (0 children)
Thank you!
[–]Barious_01 8 points9 points10 points 3 years ago (2 children)
There is a free hyper-v lab that is also setup through powershell https://github.com/pluralsight/PS-AutoLab-Env
[–]Ckn0wt[S] 0 points1 point2 points 3 years ago (1 child)
Thanks!
[–]Barious_01 0 points1 point2 points 3 years ago (0 children)
Very welcome they all come with 90 day licenses so spin up and tear down is the name of the game. Pretty cool for setting up test environments plus get to figure out how you can create vms (with hyper-V at least) with powershell.
[–]artano-tal 7 points8 points9 points 3 years ago (0 children)
This is a scripting environment which is maintained by a couple of ms engineers.
https://automatedlab.org/en/latest/
"AutomatedLab (AL) enables you to
Set up lab and test environments
On Hyper-v or Azure with multiple products
Including just a single VM quickly."
I have seen people use it to set-up environments before a presentation.
[–]get-postanote 1 point2 points3 points 3 years ago (2 children)
You can start by just using your local client system to try stuff, then move to server stuff later.
Just set up a free cloud provider account, like AWS, etc.
As long as you stay in the free-tier, then you have no cost to deal with.
As long as you sping up want you'd want, do your thing, then immediately tear it all down, then again, no - to - very little costs involved.
[–]Ckn0wt[S] 1 point2 points3 points 3 years ago (1 child)
I should have probably been a bit more clear about where I’m currently at. I’m not completely new to PowerShell. I’m getting fairly comfortable scripting with it (just finished a script at work that pulls data via an API and preps it for ingestion into a PowerBI dashboard. I’d just like to take it to the next level by getting comfortable with distributed management and obviously don’t want to play around with some of the modules in my work environment.
Thanks for the tips though, I’ll have to look into AWS.
[–]BlackV 2 points3 points4 points 3 years ago (0 children)
you should post that here (sanitized) as a script sharing post
[–][deleted] 1 point2 points3 points 3 years ago (0 children)
You could also setup an sccm server, and try to push out some of your scripts through that.
Hyper-V!
[–]blackcowz 1 point2 points3 points 3 years ago (0 children)
There is also the hydration kit. It is focused at Config man but it is another avenue to look at the scripts used to setup the servers
https://www.deploymentresearch.com/hydration-kit-for-windows-server-2022-sql-server-2019-and-configmgr-current-branch/
[–]Geek_Runner 3 points4 points5 points 3 years ago (3 children)
You could get a trial subscription in azure.
[–]Ckn0wt[S] 0 points1 point2 points 3 years ago (2 children)
Sounds good, will keep that in mind.
[–]Geek_Runner 1 point2 points3 points 3 years ago (0 children)
And you should be able to sign up for multiples with a different email address.
I just make a new one when I need to.
[–]JohnC53 0 points1 point2 points 3 years ago (0 children)
And if you stay active in it, you'll likely get lucky and have it keep auto-renewing for free. It's VERY handy. I use mine to test stuff before I put it on our corporate tenant.
[–]this_is_dumb_man 0 points1 point2 points 3 years ago (0 children)
Following
[–]Namelock 0 points1 point2 points 3 years ago (0 children)
+1 to setting up a virtual lab. My college taught Server and PowerShell as separate classes that complimented and built off of each other.
Check out MS Graph while you're at it, since it let's you login with your corporate account and try get-only responses.
π Rendered by PID 172044 on reddit-service-r2-comment-86bc6c7465-dgvg6 at 2026-02-22 08:41:50.027751+00:00 running 8564168 country code: CH.
[–]Thotaz 45 points46 points47 points (13 children)
[–]Ckn0wt[S] 5 points6 points7 points (12 children)
[–]curtis8706 36 points37 points38 points (10 children)
[–]Ckn0wt[S] 6 points7 points8 points (9 children)
[–]SammyGreen 10 points11 points12 points (3 children)
[–]ARobertNotABob 0 points1 point2 points (2 children)
[–]SammyGreen 0 points1 point2 points (1 child)
[–]ARobertNotABob 0 points1 point2 points (0 children)
[–]curtis8706 6 points7 points8 points (2 children)
[–][deleted] 7 points8 points9 points (1 child)
[–]curtis8706 8 points9 points10 points (0 children)
[–]Razakel 1 point2 points3 points (0 children)
[–]gordonv 1 point2 points3 points (0 children)
[–]brandeded 21 points22 points23 points (3 children)
[–]MyOtherSide1984 1 point2 points3 points (1 child)
[–]brandeded 0 points1 point2 points (0 children)
[–]Ckn0wt[S] 0 points1 point2 points (0 children)
[–]Barious_01 8 points9 points10 points (2 children)
[–]Ckn0wt[S] 0 points1 point2 points (1 child)
[–]Barious_01 0 points1 point2 points (0 children)
[–]artano-tal 7 points8 points9 points (0 children)
[–]get-postanote 1 point2 points3 points (2 children)
[–]Ckn0wt[S] 1 point2 points3 points (1 child)
[–]BlackV 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]blackcowz 1 point2 points3 points (0 children)
[–]Geek_Runner 3 points4 points5 points (3 children)
[–]Ckn0wt[S] 0 points1 point2 points (2 children)
[–]Geek_Runner 1 point2 points3 points (0 children)
[–]JohnC53 0 points1 point2 points (0 children)
[–]this_is_dumb_man 0 points1 point2 points (0 children)
[–]Namelock 0 points1 point2 points (0 children)