Presentation is loading. Please wait.

Presentation is loading. Please wait.

09 | Script and manifest modules

Similar presentations


Presentation on theme: "09 | Script and manifest modules"— Presentation transcript:

1 09 | Script and manifest modules
Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology

2 Module Overview Putting your tools in one place
Creating a module manifest Why custom views? Creating and loading a view

3 Putting your tools in one place
Modules – names should consist of letters, number, and underscores – Microsoft modules tend to be only letters. Don’t use spaces in the name. Do not put your modules where Microsoft does, put yours in your PSModulePath. Save as a .PSM1 See demonstration!

4 Creating a Module Manifest
When our module is imported, PowerShell looks for: A module manifest – such as MyTools.psd1 – Note that file name matches the module folder name. A binary module – such as MyTools.Dll A script module – such as MyTools.psm1 New-ModuleManifest See demonstration!

5 Why Custom Views You can create your own custom views
Add your own type name to an object Create an XML view Use the Manifest –FormatsToProcess to attach the view See the Demonstration!

6 Questions or comments?

7


Download ppt "09 | Script and manifest modules"

Similar presentations


Ads by Google