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, ∼3364🔥, 0💬
Popular Posts:
How to dump the list of all processes that are running on my Windows 7 system? I want save names of ...
Can I remove startup application "Directcd.exe - Roxio DirectCD Application" to speedup my computer ...
How to open a Web Archive (.mht or .mhtml) file correctly in Firefox browser? I converted a word doc...
Can I disable Windows service "Infrared Monitor" to speedup my computer? Windows service "Infrared M...
What files are stored in the "C:\Users\<userid >\AppData\Local"folder? Can I delete th...