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, 1949🔥, 0💬
Popular Posts:
What is the difference between a Web page and a filtered Web page? Word 2007 supports 2 Web page for...
Can I disable Windows service "EvtEng" to speedup my computer? Windows service "EvtEng" - Intel Even...
How to dump the list of all processes that are running on my Windows 7 system? I want save names of ...
What happens if you entered the wrong Passkey on your cell phone? If the Passkey you entered on your...
What is smss.exe process - Windows NT Session Manager? Process smss.exe is part of Windows system. I...