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, 1799🔥, 0💬
Popular Posts:
What is Java Console Extra Tools Menu Item for Internet Explorer (IE) browsers? Java Console Extra T...
How to use sc.exe command to start and stop an existing service? If you want to start or stop a serv...
How set up "live tv" in Windows Media Center on Windows 7? If you have TV tuner installed on your co...
Where to find tutorials on using Windows PowerShell? I want to learn everything about Windows PowerS...
How do I know which version of Internet Explorer (IE) is on my computer? If you want to know which v...