Posted By

jatubio on 02/23/15


Tagged

oop PowerShell


Versions (?)

Sample of declare a simple powershell class sample


 / Published in: Windows PowerShell
 

Sample of declare a simple powershell class sample thanks to Tome Tanasovski (http://powertoe.wordpress.com)

  1. #Sample of declare a simple powershell class sample
  2. #thanks to Tome Tanasovski (http://powertoe.wordpress.com)
  3.  
  4. $webclient = new-object psobject -Property @{
  5. timeout = 10
  6. }
  7.  
  8. $webclient;
  9. $webclient.timeout=-1;
  10. $webclient;

Report this snippet  

You need to login to post a comment.