An open API service indexing awesome lists of open source software.

https://github.com/dsccommunity/xinternetexplorerhomepage


https://github.com/dsccommunity/xinternetexplorerhomepage

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

[![Build status](https://ci.appveyor.com/api/projects/status/2f73cnimuofa6v20/branch/master?svg=true)](https://ci.appveyor.com/project/PowerShell/xinternetexplorerhomepage/branch/master)

# xInternetExplorerHomePage

The **xInternetExplorerHomePage** modules contains the **xInternetExplorerHomePage** resource, enabling you to set one or more IE home pages.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

## Contributing
Please check out common DSC Resources [contributing guidelines](https://github.com/PowerShell/DscResource.Kit/blob/master/CONTRIBUTING.md).

## Resources

### xInternetExplorerHomePage

* **StartPage**: Specifies the home page of Internet Explorer.
* **SecondaryStartPages**: Specifies the secondary home pages of Internet Explorer.
* **Ensure**: Ensures that the IE home page is Present or Absent.

## Versions

### Unreleased

* Update appveyor.yml to use the default template.
* Added default template files .codecov.yml, .gitattributes, and .gitignore, and
.vscode folder.

### 1.0.0.0

* Initial release with the following resources
* xInternetExplorerHomePage

## Examples

### Set the Internet Explorer home page

```powershell
Configuration SetIEHomePage
{
Param
(
#Target nodes to apply the configuration
[String[]]$NodeName = $env:COMPUTERNAME,

#Specifies the URL for the home page of Internet Explorer.
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[String]$StartPageURL,

#Specifies the URL for the secondary home pages of Internet Explorer.
[Parameter()]
[String]$SecondaryStartPagesURL,

#Set the value as 'Present'/'Absent', it indicates the IE home page is configured/unconfigured.
[Parameter(Mandatory)]
[ValidateSet('Present','Absent')]
[String]$SetEnsure
)

Import-DSCResource -ModuleName xInternetExplorerHomePage

Node "localhost"
{
xInternetExplorerHomePage IEHomePage
{
StartPage = $StartPageURL
SecondaryStartPages = $SecondaryStartPagesURL
Ensure = $SetEnsure
}
}
}

SetIEHomePage -StartPageURL "www.bing.com" -SetEnsure 'Present'
Start-DscConfiguration -Path .\SetIEHomePage -Wait -Force -Verbose
```

### Set the Secondary start page

```powershell
Configuration SetIEHomePage
{
Param
(
#Target nodes to apply the configuration
[String[]]$NodeName = $env:COMPUTERNAME,

#Specifies the URL for the home page of Internet Explorer.
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[String]$StartPageURL,

#Specifies the URL for the secondary home pages of Internet Explorer.
[Parameter()]
[String]$SecondaryStartPagesURL,

#Set the value as 'Present'/'Absent', it indicates the IE home page is configured/unconfigured.
[Parameter(Mandatory)]
[ValidateSet('Present','Absent')]
[String]$SetEnsure
)

Import-DSCResource -ModuleName xInternetExplorerHomePage

Node "localhost"
{
xInternetExplorerHomePage IEHomePage
{
StartPage = $StartPageURL
SecondaryStartPages = $SecondaryStartPagesURL
Ensure = $SetEnsure
}
}
}

SetIEHomePage -StartPageURL "www.bing.com" -SecondaryStartPagesURL "www.google.com" -SetEnsure 'Present'
Start-DscConfiguration -Path .\SetIEHomePage -Wait -Force -Verbose
```