Using Powershell - two 2013/2015 instances with diff. builds

Cyberghost
Member Posts: 46
Hi
I've been looking into using Powershell to set up our customers systems, using the Example-1VM etc. examples.
Ideally, I want to set up any customer with a live and a test system. These would both have their own instances and importantly, the instances would be run from a different folder to each other. Initially, the instances would be the same build but as CU's are released, different builds would be able to be tested before going into the live setup.
I can see how to set up another instance using Powershell, but cannot work out how to create another instance based on a different Service folder. Does anyone know of a way of doing this and hopefully have an example?
Thanks in advance,
Chris
I've been looking into using Powershell to set up our customers systems, using the Example-1VM etc. examples.
Ideally, I want to set up any customer with a live and a test system. These would both have their own instances and importantly, the instances would be run from a different folder to each other. Initially, the instances would be the same build but as CU's are released, different builds would be able to be tested before going into the live setup.
I can see how to set up another instance using Powershell, but cannot work out how to create another instance based on a different Service folder. Does anyone know of a way of doing this and hopefully have an example?
Thanks in advance,
Chris
"When you eliminate the impossible, whatever remains, however improbable, must be the truth" - Sherlock Holmes
"God and developers are in a constant battle. Developments to make their applications more idiot-proof, and God to produce bigger idiots!"
"God and developers are in a constant battle. Developments to make their applications more idiot-proof, and God to produce bigger idiots!"
0
Comments
-
Hi,
Interesting idea.
I would use combination of PowerShell and batch files.
For example from PowerShell you can call this batch command to create a NAV Instance in a particular folder.SC CREATE "MicrosoftDynamicsNAV$NavFrCronus7" binpath= "C:\Program Files\Microsoft Dynamics NAV\70\Service CronusFR\Microsoft.Dynamics.Nav.Server.exe" DisplayName= "Microsoft Dynamics NAV Server NAV_FR_CRONUS"
in powershell$CMD = 'SC CREATE' $arg1 = 'MicrosoftDynamicsNAV$NavFrCronus7' $arg2 = 'binpath= "C:\Program Files\Microsoft Dynamics NAV\70\Service CronusFR\Microsoft.Dynamics.Nav.Server.exe"' $arg3 = 'DisplayName= "Microsoft Dynamics NAV Server NAV_FR_CRONUS' & $CMD $arg1 $arg2 $arg3
This will create the instance after that you can use standard NAV powershell commandlets to do what you want.
I hope this helps.
Thanks.1 -
Thanks"When you eliminate the impossible, whatever remains, however improbable, must be the truth" - Sherlock Holmes
"God and developers are in a constant battle. Developments to make their applications more idiot-proof, and God to produce bigger idiots!"0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions