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, ∼2830🔥, 0💬
Popular Posts:
Can I disable Windows service "Remote Procedure Call (RPC)" to speedup my computer? Windows service ...
Can I disable Windows service "HTTP SSL" to speedup my computer? Windows service "HTTP SSL" - This s...
Can I disable Windows service "Network Location Awareness (NLA)" to speedup my computer? Microsoft a...
Can I disable Windows service "OracleJobSchedulerXE" to speedup my computer? Third party application...
How to configure Mozilla FireFox to use Notepad to edit Web page source code? By default, when you u...