Skip to content

Updates configurations.md #1855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions dsc/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Configuration MyDscConfiguration {
}
}

MyDscConfiguration
```

Save the script as a .ps1 file.
Expand Down Expand Up @@ -62,7 +61,6 @@ Configuration MyDscConfiguration {
}
}

MyDscConfiguration
```

In this example, you specify the name of the node by passing it as the **ComputerName** parameter when you compile the configuraton. The name defaults to "localhost".
Expand Down Expand Up @@ -99,7 +97,7 @@ MyDscConfiguration
Directory: C:\users\default\Documents\DSC Configurations\MyDscConfiguration
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 10/23/2015 4:32 PM 2842 TEST-PC1.mof
-a---- 10/23/2015 4:32 PM 2842 localhost.mof
```

If the configuration takes a parameter, as in the second example, that has to be provided at compile time. Here's how that would look:
Expand Down Expand Up @@ -140,7 +138,6 @@ Configuration DependsOnExample {
}
}

DependsOnExample
```

## Using new resources in Your configuration
Expand Down