How to convert .cs file to a PowerShell cmdlet?

后端 未结 3 1105
离开以前
离开以前 2021-02-06 09:21

Can anyone help me to convert a C# .NET program to PowerShell cmdlet? I am very new to this area. Please help me to get out of this checkpoint!

Regards,

Arun

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-06 09:41

    First of all, you should convert your .cs file into a DLL using PowerShell template. Then by using pssnapin and getproc you can convert it into a DLL.

提交回复
热议问题