Sign in
|
Join PowerShell.com!
|
Help
Home
PowerTips
Ask the Experts
Forums
Webcasts
Blogs
eBookV2
Script Library
Twitter Grid
Modules
QuickClick
Scripts
Snippets
Videos
Library
»
Snippet Library
»
PowerShell Internals
»
Slideshow
PowerShell Internals Slideshow
Share
|
Browse Library
Module Library
QuickClick Library
Script Library
Snippet Library
ADSI
Comparison
Conditions and Loops
.Net
Exception Handlers
Files and Folders
Functions
Headers
Includes
Network
Pipeline
PowerShell Internals
Registry
Samples
Script Functions Templates
Security
SQL Server
Templates
User Management
WMI
Video Library
Members Only
Tags
Search Help
Set-Alias
Show Profile
Snapin
Snippet
Write-Debug
View more
Load all available snap-ins
<?
xml
version
=
"1.0"
?>
<CodeSnippets xmlns
=
"http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"
>
<CodeSnippet Format
=
"1.0.0"
>
<Header>
<Title>Load all available
snap-ins
<
/
Title>
<Shortcut
/
>
<Description>loads all
snap-ins
that are registered (available) but not yet loaded<
/
Description>
<Author>Dr. Tobias Weltner http:
//
www.powershell.de
<
/
Author>
<SnippetTypes>
<SnippetType>Expansion<
/
SnippetType>
<
/
SnippetTypes>
<
/
Header>
<Snippet>
<Code Language
=
"PowerShell"
Kind
=
"3"
><
!
[CDATA[
$available
=
Get-PSSnapin
-Registered
$loaded
=
Get-PSSnapin
|
Where-Object
{
$_
.
isDefault
-eq
$FALSE
}
Compare-Object
$available
$loaded
|
ForEach-Object
{
Add-PSSnapin
$_
.
InputObject.Name
}
]]><
/
Code>
<
/
Snippet>
<
/
CodeSnippet>
<
/
CodeSnippets>
Loading...
Load all available...
List registered...
List additional...
Show Profile
Search Help
Write-Debug
Create new...
View all files
Copyright 2011 PowerShell.com. All rights reserved.