Collections:
Other Resources:
Invoke Object Methods in Windows PowerShell Scripts
How to invoke methods of an object in Windows PowerShell scripts? I know the method name in Windows PowerShell scripts.
✍: FYIcenter.com
If you know the method name of an object, you can invoke and run the method
using the "." operator.
For example, if you run the following script:
$today = Get-Date $tomorrow = $today.AddDays(1) "Today is "+$today.DayOfWeek "Tomorrow is "+$tomorrow.DayOfWeek
You will get something like:
Today is Saturday Tomorrow is Sunday
⇒ Comparison Operations in Windows PowerShell Scripts
⇐ Access Object Properties in Windows PowerShell Scripts
2016-11-02, ∼2930🔥, 0💬
Popular Posts:
What is the "World Wide Web Publishing Service (W3SVC)" system service on Windows Server 2012? Can I...
How to increase the remote login limit on Windows 10? By default, Windows 10 only allows 1 remote lo...
Can I disable Windows service "Apache Tomcat" to speedup my computer? Third party service "Apache To...
What is the scheduled task "\Microsoft\Windows\Mobi lePC\HotStart"on my Windows 7 computer? "\Micros...
How to open a Web Archive (.mht or .mhtml) file correctly in Firefox browser? I converted a word doc...