Yesterday Microsoft posted this new information regarding NAV 7 in PartnerSource:

With the release of Microsoft Dynamics NAV ‘7’ the primary readiness objective is to prepare you, the partner community, to successfully sell, implement, support and upgrade customers to this new release.

Since the content is for partners only, I can do no more but provide you the link:

Getting Ready for NAV ‚7‘

Gestern hat Microsoft etwas neues zu NAV ‚7‘ im PartnerSource online gestellt:

With the release of Microsoft Dynamics NAV ‘7’ the primary readiness objective is to prepare you, the partner community, to successfully sell, implement, support and upgrade customers to this new release.

Da der Inhalt ‚partner confidential‘ ist, kann ich hier leider nur den Link zum Artikel weitergeben:

Getting Ready for NAV ‚7‘

Als ich mal wieder meine virtual business cards auf den neuesten Stand gebracht habe ist mir aus dem Augenwinkel ein kleiner Link aufgefallen.

Egal wen ich gefragt habe, niemand hatte bis jetzt etwas davon bemerkt. Das Microsoft Certification Programm wird 20 Jahre alt.

20 Ways You Can Help the Next Generation

Celebrate Microsoft’s first 20 years of Certification with 20 Years|20 Ways, a year-long effort that lets you grow your career and seed opportunity for the next generation. By working together, we can help IT pros, developers, and students around the world have a better career and a better life. We’ll share new ways throughout the year. Click a tile to get started!

Ich werde hier nicht groß erzählen was Microsoft sich überlegt hat um das zu feiern, da es wohl einfacher und aktueller ist diesen Link zu nutzen:

http://www.microsoft.com/learning/en/us/certification/20yrs20ways.aspx

While updating my virtual business cards I found something I nearly missed.

Nobody I told about it had noticed until now. Microsoft Certification Programm is getting 20.

20 Ways You Can Help the Next Generation

Celebrate Microsoft’s first 20 years of Certification with 20 Years|20 Ways, a year-long effort that lets you grow your career and seed opportunity for the next generation. By working together, we can help IT pros, developers, and students around the world have a better career and a better life. We’ll share new ways throughout the year. Click a tile to get started!

I won’t tell you much about the things Microsoft is doing for celebration, the easiest way is to follow this link to the official homepage:

http://www.microsoft.com/learning/en/us/certification/20yrs20ways.aspx

Currently I am modifying the C#/Powershell-project for NAV-Services from the MS Dynamics NAV Team Blog.
(http://blogs.msdn.com/b/nav/archive/2011/09/19/using-powershell-to-configure-dynamics-nav-services.aspx)

While adding some more functionality I realized that it is not quite easy to create new services on a remote computer using powershell.
After some days of searching and testing I succeded using this small piece of code. (It is based on the linked project)

private void btn_CreateService_Click(object sender, EventArgs e)
{
    string StartType = "Manual";
    string DefinitionScript = "$service = [wmiclass]('\\" + ComputerName + @"\ROOT\CIMV2:Win32_Service')";
    string Script = "$service.Create("+txtName.Text+","+txtDisplay.Text+","+txt_ApplicationPath.Text+",16,0,"+StartType+",'false')";

    using (Runspace runSpace = RunspaceFactory.CreateRunspace())
    {
        runSpace.Open();
        Pipeline pipeLine = runSpace.CreatePipeline();
        pipeLine.Commands.AddScript(DefinitionScript);
        pipeLine.Commands.AddScript(Script);
        pipeLine.Invoke();
    }
}

See this MSDN-article for definition of parameters and other StartTypes.

Derzeit bin ich damit beschäftigt das C#/Powershell-Projekt für NAV-Services des MS Dynamics NAV Team Blog’s für mich anzupassen und zu erweitern.
(http://blogs.msdn.com/b/nav/archive/2011/09/19/using-powershell-to-configure-dynamics-nav-services.aspx)

Während einiges schnell umgesetzt werden kann, hat sich das Anlegen von Diensten, gerade über Remote-Zugriffe als nicht so trivial erwiesen. Das Hauptproblem für mich war das ich keine Beispiele online finden konnte. 😉
Nach einigen Tagen suchen und testen habe ich es mit wenigen Zeilen Code geschafft. (Dieser Codeschnipsel ist Teil des oben verlinkten Projektes, alle nicht hier definierten Objekte sind dort zu finden)

private void btn_CreateService_Click(object sender, EventArgs e)
{
    string StartType = "Manual";
    string DefinitionScript = "$service = [wmiclass]('\\" + ComputerName + @"\ROOT\CIMV2:Win32_Service')";
    string Script = "$service.Create("+txtName.Text+","+txtDisplay.Text+","+txt_ApplicationPath.Text+",16,0,"+StartType+",'false')";

    using (Runspace runSpace = RunspaceFactory.CreateRunspace())
    {
        runSpace.Open();
        Pipeline pipeLine = runSpace.CreatePipeline();
        pipeLine.Commands.AddScript(DefinitionScript);
        pipeLine.Commands.AddScript(Script);
        pipeLine.Invoke();
    }
}

Schaut euch diesen MSDN-Artikel für eine Definition der Parameter und weitere Starttypen an.