3 ms·
> You can even mix powershell and C# together in the same script. What feature are you referring to?
by lostmsu 7y ago
> You can even mix powershell and C# together in the same script.
What feature are you referring to?
- deleted 7y ago[deleted]
- snypox 7y agoYou can load a .NET dll in a Powershell script and invoke it. https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/add-type?view=powershell-7 https://docs.microsoft.com/en-us/powershell/module/microsoft...
- lostmsu 7y agoOh, that's not exactly have C# in the same script.
- orthoxerox 7y agoDepends on whether this is allowed by your GPO or not.
- tjalfi 7y ago[0] has an example of inline C# code. [0] https://dandraka.com/2018/11/12/powershell-how-do-you-add-inline-c/ https://dandraka.com/2018/11/12/powershell-how-do-you-add-in...