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, ∼2914🔥, 0💬
Popular Posts:
What is the "CmRcService.exe" process on windows 7? Is the "CmRcService.exe" process a virus? Can I ...
Can I disable Windows service "usnsvc.exe: Messenger Sharing USN Journal Reader Service" to speedup ...
Where does Mozilla FireFox 2 store download files? When you download files from Websites, Mozilla Fi...
What is "WMI Performance Adapter" in my Windows 7 service list? And how is "WMI Performance Adapter"...
How to create a command button to run my macro in slide show view? I have created a macro that displ...