Asked by:
Issue with DSC Script

Question
-
Just trying to create a script to install IIS and Management Tools and getting the error below, any idea what could be the cause of it?
Configuration iis_dsc_file { # Import the module that contains the resource we are using. Import-DSCResource -ModuleName PsDesiredStateConfiguration Import-module servermanager # The Node statement specifices which targets this configuration will be applied to. Node localhost { # Code to ensure IIS feature is enabled WindowsFeature WebServer { Ensure= "Present" Name= "Web-Server" } WindowsFeatures IISManagementTools { Name= "Web-Mgmt-Tools" Ensure= "Present" IncldueAllSubFeature= $True LogPath= "C:\ServerLogs\IIS-Installation-Log.txt" } } }
I get the below error message:
The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to S"prettyprint" style="">
- Edited by AzureLearner2018 Friday, September 21, 2018 1:38 AM Update
Friday, September 21, 2018 1:29 AM
All replies
-
Please read the error you posted. It is corrupted with HTML tags.
Turn off Grammarly. It has known issues with this and other sites. Contact Grammarly for an update to fix this.
\_(ツ)_/
Friday, September 21, 2018 1:34 AM -
My post is been flagged as spam, it is not spam. It is legit. I'm blocked and cannot investigate what is the issue without further assistance from community. ThanksFriday, September 21, 2018 1:42 AM
-
Your post is not marked as spam. That is a message you will get when you try to edit the original message and your account has not yet been verified. You can still add replies to the thread.
\_(ツ)_/
Friday, September 21, 2018 2:20 AM -
This happens for new account that have not yet been verified. You can expedite verification by replying to this thread with your request.
https://social.msdn.microsoft.com/Forums/en-US/054fddac-7164-4412-a077-f57ba5dd9e5d/verify-your-account-38?forum=reportabug
Sticky located at top of Forums Issues (not product support) forum
https://social.msdn.microsoft.com/Forums/en-US/home\_(ツ)_/
Friday, September 21, 2018 2:25 AM -
I am not able to reply there, seems an old post. Cannot see an active "Reply" button.Friday, September 21, 2018 3:20 AM
-
I am not able to reply there, seems an old post. Cannot see an active "Reply" button.
You just replied.
\_(ツ)_/
Friday, September 21, 2018 4:06 AM -
The links to the site I gave are having issues with the site. Try again later.
\_(ツ)_/
Friday, September 21, 2018 5:14 AM