Powershell code

I came across these type of code on a powershell script



System.Drawing.Size(1069, 809)


what type of codes are they and where I can learn more about them?
Kelly GarciaSenior Systems AdministratorAsked:
Who is Participating?
QlemoConnect With a Mentor Batchelor, Developer and EE Topic AdvisorCommented:
It is very similar to what you would have to do in C# or VB (?), so the answer should be "yes".
Guy Hengel [angelIII / a3]Billing EngineerCommented:
I presume you come from here:

this is some code to draw some application windows from script, eventually dynamically etc.
QlemoBatchelor, Developer and EE Topic AdvisorCommented:

Open in new window

is the old way of loading a .NET assembly. With PowerShell 2.0 and above you usually say
Add-Type -Assembly System.Windows.Forms

Open in new window

After loading an assembly you are able to use the classes defined in that assembly. In this particular case, as Guy stated correctly, it's code to create a Windows dialog with some labels and  buttons and the like, set the size and position etc, in short all the stuff you have to do to build a Windows Form "manually".
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Kelly GarciaSenior Systems AdministratorAuthor Commented:
these codes are from the .net framework right?
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
yes, exactly. the .net framework is integral part of the windows installation ...
Kelly GarciaSenior Systems AdministratorAuthor Commented:
I c, so if learn .net I can use those codes in powershell?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.