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, ∼3315🔥, 0💬
Popular Posts:
Where to find information about what system services are running on Windows Server 2012? I want to k...
Can I remove startup application "ssdiag.exe - Diagnostic Traces Sonic Shared Driver Component" to s...
What is "Pml Driver HPZ12" in my Windows 7 service list? And how is "Pml Driver HPZ12" service relat...
How to setup a HP laptop computer? I want to buy the new HP laptop computer on sale at Best Buy for ...
Can I remove startup application "DLG.exe - Modem Digital Line Detection" to speedup my computer and...