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, ∼2917🔥, 0💬
Popular Posts:
Can I register my computer later? I don't want to register my computer during the initial Windows 7 ...
What is Microsoft Research Extra Toolbar Button and Extra Tools Menu Item for Internet Explorer (IE)...
What files are stored in the "C:\Windows\Downloaded Program Files" folder? Can I delete them? Files ...
Why I am getting this "Microsoft Silverlight Update" pop up window? If you have Silverlight 2.0 inst...
What are required to use wireless routers to connect to the Internet? If you want to connect to the ...