Hello All, I have run into an issue with Powershell updating what is recognizes as system settings.
So I have built out a script which performs the following actions:
- Install IIS and Features - Working
- Remove default website and apppool - Working
- Restore IIS settings using Restore-WebConfiguration - Working
- Change IIS AppPool Identities - NOT Working
My question: Is there a way to sort of reset PowerShell to get it to see changes such as this within the same script or have I perhaps made a mistake?
Work Around: I suppose I could execute the script with parameters. Step 1 would be to install everything and once completed execute another instance of the script with a parameter to begin Step 2 which would configure the rest. This just seems like it would not be the proper method.
Any advice? Thanks