Add-Type
Add-Type keyword lets us use the .NET framework to compile C# code containing Win32 API declarations and then call them.
Last updated
Add-Type keyword lets us use the .NET framework to compile C# code containing Win32 API declarations and then call them.
Last updated
Using Add-Type to compile C# assembly, the source code will temporarily be written to disk.
The GetUserName function retrieves the name of the user associated with the current thread.