Giter VIP home page Giter VIP logo

Comments (13)

jdhitsolutions avatar jdhitsolutions commented on May 26, 2024 1

PowerShell Direct won't work for older operating systems that someone might need to set up.

from ps-autolab-env.

theJasonHelmick avatar theJasonHelmick commented on May 26, 2024

How about if I (or you) change it to add * to the array and not worry about other its and such?

from ps-autolab-env.

jdhitsolutions avatar jdhitsolutions commented on May 26, 2024

I think I've tried that in the past. If you already have settings, you can't concatenate *. I think you can only have the wildcard or specific settings.

from ps-autolab-env.

jdhitsolutions avatar jdhitsolutions commented on May 26, 2024

Now that I think about TrustedHosts only needs to be configured to allow access to the lab subnet and/or a list of computers like 'DC,S*'. That could be concatenated unless the user is already set to *.

from ps-autolab-env.

theJasonHelmick avatar theJasonHelmick commented on May 26, 2024

The only challenge to this is that each Author, and perhaps student, will need to modify this list. I know that different authors will use different computer names and IP address that are set in the PSD1 -- jsut don't know if I want to have another config file that needs to be modified.

from ps-autolab-env.

majst32 avatar majst32 commented on May 26, 2024

Can we read it in from the PSD1?

from ps-autolab-env.

theJasonHelmick avatar theJasonHelmick commented on May 26, 2024

@majst32 I think we should do this, but automation timing is an issue. I'm currently doing this during the initial host setup in Setup-Host -- We would have to do this in a per configuration Setup-Lab script - Maybe @jdhitsolutions can help us with a simple modification to read the psd1.

from ps-autolab-env.

benpiper avatar benpiper commented on May 26, 2024

Would using PowerShell Direct instead avoid having to touch the Trustedhosts setting?

from ps-autolab-env.

theJasonHelmick avatar theJasonHelmick commented on May 26, 2024

ok @jdhitsolutions @majst32 @benpiper @g0t4 -- I am now in a position to read this automatically from the configuration data -- a list of IP addresses -- and add them to trusted hosts. I can also clean them out when the lab is wiped --- is this something we want to add or is using * fine for a lab environement. --- remember, this is just a lab -- not production. Comments?

from ps-autolab-env.

g0t4 avatar g0t4 commented on May 26, 2024

I would vote KISS and assume this is only for a lab env.

from ps-autolab-env.

theJasonHelmick avatar theJasonHelmick commented on May 26, 2024

I vote KISS too! Thanks Wes -- Anyone else want to respond? I really don't mind adding the ability -- just not sure its really needed for something that will always be for a lab environement - Thanks to @jdhitsolutions , its only adding * to the existing array and not wiping out any original settings.

from ps-autolab-env.

benpiper avatar benpiper commented on May 26, 2024

I agree that it's okay for a lab environment. The only thing that may be worth adding is a switch that asks the user if they want to set TrustedHosts to * or just handle it themselves.

from ps-autolab-env.

theJasonHelmick avatar theJasonHelmick commented on May 26, 2024

As discussed in #76 -- I agree -- closing this to have discussion there

from ps-autolab-env.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.