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, ∼3239🔥, 0💬
Popular Posts:
What files are stored in the "C:\Users\<userid >\AppData\LocalLo w"folder? Can I delete...
What is "Net Driver HPZ12" in my Windows 7 service list? And how is "Net Driver HPZ12" service relat...
What is the "Server (LanmanServer)" system service on Windows Server 2012? Can I disable "Server"? "...
Can I remove startup application "ApacheMonitor.exe - Monitor Apache Servers" to speedup my computer...
How to view services with the System Configuration tool "msconfig.exe" on Windows 7? System Configur...