Team Ai
Datasetpublic

MegaBites-AI/Windows-powershell

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes372downloads
1// Copyright (c) Microsoft Corporation.2// Licensed under the MIT License.3 4using System;5using System.Collections.Generic;6using System.ComponentModel;7using System.Diagnostics;8using System.Management;9using System.Management.Automation;10using System.Runtime.InteropServices;11using System.Text;12 13namespace Microsoft.WSMan.Management14{15    #region SnapIn16 17    /// <summary>18    /// Create the PowerShell snap-in used to register the19    /// WsManPSSnapIn cmdlets. Declaring the PSSnapIn class identifies20    /// this .cs file as a PowerShell snap-in.21    /// </summary>22    [RunInstaller(true)]23    public class WSManPSSnapIn : PSSnapIn24    {25        /// <summary>26        /// Create an instance of the WsManSnapin class.27        /// </summary>28        public WSManPSSnapIn()29            : base()30        {31        }32 33        /// <summary>34        /// Specify the name of the PowerShell snap-in.35        /// </summary>36        public override string Name37        {38            get39            {40                return "WsManPSSnapIn";41            }42        }43 44        /// <summary>45        /// Specify the vendor for the PowerShell snap-in.46        /// </summary>47        public override string Vendor48        {49            get50            {51                return "Microsoft";52            }53        }54 55        /// <summary>56        /// Specify the localization resource information for the vendor.57        /// Use the format: resourceBaseName,VendorName.58        /// </summary>59        public override string VendorResource60        {61            get62            {63                return "WsManPSSnapIn,Microsoft";64            }65        }66 67        /// <summary>68        /// Specify a description of the PowerShell snap-in.69        /// </summary>70        public override string Description71        {72            get73            {74                return "This is a PowerShell snap-in that includes the WsMan cmdlets.";75            }76        }77 78        /// <summary>79        /// Specify the localization resource information for the description.80        /// Use the format: resourceBaseName,Description.81        /// </summary>82        public override string DescriptionResource83        {84            get85            {86                return "WsManPSSnapIn,This is a PowerShell snap-in that includes the WsMan cmdlets.";87            }88        }89    }90 91    #endregion SnapIn92}93