How to Define Classes in PowerShell

05. September 2016 PowerShell 0
PowerShell 5 comes with a new capability to define classes in the same way we define in C#. In this tutorial we are going to see how to define a simple class with constructor, properties, and methods. Please check the Windows PoweShell Tutorial to learn the PowerShell basics. Development Tool In this tutorial I am ...

Windows PowerShell Tutorial

06. December 2013 PowerShell, Tutorial 3
In this tutorial the basics of Windows PowerShell is explained with examples. Only read this article if you need a fast going-through Windows PowerShell basics and if you don’t have time to read the great tutorial by Jesse Hamrick on PowerShell Pro which this article is mostly based on. This article is mostly useful from ...

How to Call a WCF Service from Windows PowerShell

01. December 2013 PowerShell, WCF 1
You can call your WCF operation from PowerShell. What you need is to use New-WebServiceProxy cmdlet. New-WebServiceProxy will create a proxy object in order to communicate with the service. Look at the example below: $uri = \"http://192.168.0.1/SampleService.svc?wsdl\" $srv = New-WebServiceProxy -Uri $uri -UseDefaultCredential $result = \"false\" $resultSp = \"false\" $date = (Get-Date).ToString(\"yyyy/MM/dd hh:mm:ss\") $ srv.NotifyStatus(\"Type ...