Powershell script and modules

Welcome Forums General PowerShell Q&A Powershell script and modules

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
1 month, 3 weeks ago.

  • Author
    Posts
  • #167785

    Participant
    Topics: 1
    Replies: 0
    Points: 24
    Rank: Member

    Hi all, I have a question that might seem easy, but I can't seem to find the answer.
    I've recently read "Learn Windows PowerShell in a month of lunches" and " Learn PowerShell scripting in a month of lunches" and there's something I never understood during my reading.

    Where is located the controller script ?
    It is my understanding that we should separate every tasks into separate function and bundle them into a module. I get that. But what about the controller script ? Is it also in the module ? Or in a separate script that import the module with the functions ?

    Thanks,
    Jacob PC

  • #167905

    Participant
    Topics: 8
    Replies: 18
    Points: 108
    Rank: Participant

    You write the controller script yourself to carry out a task; For example, a new starter script, a new VM build Script and so on.

    I found a pretty good explanation here: https://community.spiceworks.com/topic/1915596-controller-script-examples.

You must be logged in to reply to this topic.