Multiple Shells


So far, we've been working with the "default" PowerShell shell that cannot be modified that includes the PowerShell binaries and cmdlets. However, you can build a new shell shortcut that pre-loads any additional snap-ins you obtain or create. For example, this allows you to create a shell that's specific for a particular job task in your environment, ensuring that all related cmdlets stay packaged together. It also helps protect the integrity of the original default shell so you don't mess it up by accident.

The Export-Console cmdlet lets you create a new shell shortcut. You can run Help Export-Console to obtain a complete list of the cmdlet's parameters optional parameters. Of course, making a new shell shortcut isn't the only way to add snap-ins or providers, and you can also simply place calls to Add-PSSnapin into your profile script to have snap-ins load automatically when you launch a new shell session.



Windows PowerShell. TFM
Internet Forensics
ISBN: 982131445
EAN: 2147483647
Year: 2004
Pages: 289

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net