File size: 2,373 Bytes
8c763fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Management;
using System.Management.Automation;
using System.Runtime.InteropServices;
using System.Text;

namespace Microsoft.WSMan.Management
{
    #region SnapIn

    /// <summary>
    /// Create the PowerShell snap-in used to register the
    /// WsManPSSnapIn cmdlets. Declaring the PSSnapIn class identifies
    /// this .cs file as a PowerShell snap-in.
    /// </summary>
    [RunInstaller(true)]
    public class WSManPSSnapIn : PSSnapIn
    {
        /// <summary>
        /// Create an instance of the WsManSnapin class.
        /// </summary>
        public WSManPSSnapIn()
            : base()
        {
        }

        /// <summary>
        /// Specify the name of the PowerShell snap-in.
        /// </summary>
        public override string Name
        {
            get
            {
                return "WsManPSSnapIn";
            }
        }

        /// <summary>
        /// Specify the vendor for the PowerShell snap-in.
        /// </summary>
        public override string Vendor
        {
            get
            {
                return "Microsoft";
            }
        }

        /// <summary>
        /// Specify the localization resource information for the vendor.
        /// Use the format: resourceBaseName,VendorName.
        /// </summary>
        public override string VendorResource
        {
            get
            {
                return "WsManPSSnapIn,Microsoft";
            }
        }

        /// <summary>
        /// Specify a description of the PowerShell snap-in.
        /// </summary>
        public override string Description
        {
            get
            {
                return "This is a PowerShell snap-in that includes the WsMan cmdlets.";
            }
        }

        /// <summary>
        /// Specify the localization resource information for the description.
        /// Use the format: resourceBaseName,Description.
        /// </summary>
        public override string DescriptionResource
        {
            get
            {
                return "WsManPSSnapIn,This is a PowerShell snap-in that includes the WsMan cmdlets.";
            }
        }
    }

    #endregion SnapIn
}