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, ∼2371🔥, 0💬
Popular Posts:
Why I am getting this "Microsoft Silverlight Update" pop up window? If you have Silverlight 2.0 inst...
What is "Secondary Logon" in my Windows XP service list? And how is "Secondary Logon" service relate...
How to use .htaccess file with Apache server on Window systems? Assuming that you have installed the...
What is the installed program "Update for (KB2504637)" on my Windows 7 computer? "Update for (KB2504...
How to use sc.exe command to start and stop an existing service? If you want to start or stop a serv...