Simulator to test powershell scripts

lipotech
lipotech used Ask the Experts™
on
Hi Experts

I want to test my powershell AD scripts in a 2012 R2 simulated environment before running in my production environment.  Is there a downloadable/online simulator you can recommend?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
the best idea is create a VM of the your production server , mount it on seperate machine and test it... all the best
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
I want to test my powershell AD scripts in a 2012 R2 simulated environment before running in my production environment.  Is there a downloadable/online simulator you can recommend?
Spin up a server in a trial Azure account or even on your own laptop/desktop, separate from your production environment

the best practice is create a VM of the your production server , mount it on seperate machine and test it... all the best
Please quote where it is referenced as a best practice
the best idea is create a VM of the your production server , mount it on seperate machine and test it... all the best

Best practice is to have a fully working pre-production environment that replicates your production environment. I run with 3 environments.

Production
100% uptime and a 100% physical server environment, no VM DC's. Changes are migrated here through from our UAT environment after being vetted and thoroughly tested.

UAT Pre-production
This is where application coexistence testing happens and where I test Active Directory changes, patches, schema updates and so on. This is a stable environment with some expected errors from time to time due to rapid changes and testing. Mixture of physical and VM DC's. Everything about this environment is production like except that it is a completely separate forest. This extends to all applications and services. Separate Azure AD/O365 tenants, separate AWS accounts, the lot is all duplicated due to Govt. regulations.

SYS Pre-production
This is a destructive environment. Fully VM. This where I test obscure changes, schema updates before UAT. This environment is basically empty and volatile and only used for AD related testing.

Is there a downloadable/online simulator you can recommend?

Build a test lab, everyone should have an AD test environment.
Beating a dead horse here, Building a test environment for changes and pre-production modifications is a must in any corporate or enterprise environment. If you don't have a test platform I HIGHLY recommend that you build one. Redundancy such as Clustering, HyperVisors, and ImageLevel backups can only go so far when it comes to insuring uptime. YOU MUST have a test environment in order to maintain reasonable uptime and high availability in a corporate environment.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial