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, 1774🔥, 0💬
Popular Posts:
I have several computers. How can I share my Internet Explorer favorites between two computers? Favo...
Why HelpSvc.exe Is Causing Windows XP to Stop Responding - Using High CPU and Memory? Many users hav...
What is the "McClientAnalytics.exe" process on windows 7? Is the "McClientAnalytics.exe" process a v...
Can I remove startup application "BascsTray.exe - Broadcom Advanced Control Suite" to speedup my com...
What is CLI.exe - Process - ATI CLI Application (Command Line Interface)? Process CLI.exe is the ATI...