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, ∼2636🔥, 0💬
Popular Posts:
Can I disable Windows service "NICCONFIGSVC" to speedup my computer? Windows service "NICCONFIGSVC" ...
How to download and install Alexa Toolbar for Internet Explorer (IE) 7 browser? Alexa Toolbar offers...
What are the commonly used background processes on Windows systems? - Part II Continue from Part I ....
Where to find information about what services are running on Windows 8 and how to manage them? I wan...
What is "Windows Connect Now - Config Registrar" in my Windows 7 service list? And how is "Windows C...