Comments (13)
PowerShell Direct won't work for older operating systems that someone might need to set up.
from ps-autolab-env.
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.
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.
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.
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.
Can we read it in from the PSD1?
from ps-autolab-env.
@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.
Would using PowerShell Direct instead avoid having to touch the Trustedhosts setting?
from ps-autolab-env.
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.
I would vote KISS and assume this is only for a lab env.
from ps-autolab-env.
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.
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.
As discussed in #76 -- I agree -- closing this to have discussion there
from ps-autolab-env.
Related Issues (20)
- Unable to configure PSAutolab HOT 1
- Powershell lab servers don't come up but DOS-prompt HOT 1
- Get-PSAutoLabSetting HOT 1
- Unable to setup labs HOT 9
- Upgrading to v4.20.0 and later
- Implementing Active Directory Certificate Services in Windows Server 2016 - lab configs Pluralsight Course HOT 1
- Unable to wipe lab HOT 1
- Failing to Validate Lab: Should allow PSSession but got an error HOT 4
- PowerShell Error - 'Cannot build MOF files from the configs' HOT 10
- Installation of PS-AutoLab-env HOT 2
- PS-Autolab-env HOT 2
- MOF Errors HOT 9
- .\Setup-Host.ps1 results in an error HOT 2
- Setup-Host Exception HOT 2
- Get-NetNat is not working HOT 11
- Supported version mismatch for PSDesiredStateConfiguration HOT 13
- NetConnectionProfile is unknown HOT 3
- NetConnectionProfile is unknown HOT 2
- `Wipe-Lab -RemoveSwitch` only removes NetNat, but not Switch
- Check for client updates HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ps-autolab-env.