Coder Social home page Coder Social logo

rsbginfo's Introduction

rsBGInfo

The rsBGInfo composite DSC resource module can be used to deploy BGInfo utility and accompanying configuration (.bgi) file. Only the Ensure parameter is mandatory. All other parameters come with default values, but can be overridden to suit most use-cases.

Parameters

  • Ensure: Enable/disable BGInfo. Default "Present"
  • BGInfoSrc: Source URI for BGInfo.zip file. Default: https://download.sysinternals.com/files/BGInfo.zip
  • DownloadPath: Location, where to store the downloaded zip file. Default: "C:\rs-pkgs\BGInfo"
  • InstallPath: BGInfo utility installation path. Default: "C:\Program Files\BgInfo"
  • ZipFileName: Archive file name to use locally. Default: "BGInfo.zip"
  • ConfSrc: Source URI for BGInfo configuration file to deploy for the utility. Default: https://github.com/rsWinAutomationSupport/rsBGInfo/blob/master/Config/bginfo_config_for_DOAS.bgi?raw=true
  • ConfFileName: File name to use locally for BGInfo configuration file. Default: "BGInfo.bgi"
  • ConfPath: Path to the folder that contains the configuration file to use at BGInfo start-up. Default: "C:\Program Files\BgInfo"

Versions

1.0.0

  • Initial release
    • Download and deployment of BGInfo utility from a URL
    • Download and deployment of BGInfo utility configuration file form a URL

Examples

Deploy BGInfo with default configuration:

Configuration Sample_default_BGInfo
{
	param
	(
		[string[]]$NodeName = 'localhost'
	)
	Import-DscResource -Module rsBGInfo 
	Node $NodeName
	{
		rsBGInfo DeployBGInfo
		{
			Ensure       = "Present"
		}
	}
}

Deploy BGInfo with custom configuration file in an alternate location:

Configuration Custom_confFile_BGInfo
{
	param
	(
		[string[]]$NodeName = 'localhost'
	)
	Import-DscResource -Module rsBGInfo 
	Node $NodeName
	{
		rsBGInfo DeployCustomBGInfo
		{
			Ensure       = "Present"
			ConfSrc      = "http://some_other/location/my_config.bgi"
			ConfPath     = "C:\Program Files\BgInfo"
		}
	}
}

rsbginfo's People

Contributors

leshkinski avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.