Windows PowerShell has strong capabilities. I have a separate computer with a big lcd screen in which I am watching regularly some web based monitoring applications. So I need those application windows switch between on a timely basis. Then I wrote this simple powershell script to achieve this. You can change it according to your needs.
On HP 3PAR Storage, disks are grouped inside magazines. So when it comes to replacing a failed disk, magazine that holds the disk has to be brought offline using a servicemag start command.
i get this error can yo help me?
ReplyDeleteShow-Window : Cannot process argument transformation on parameter 'ID'. Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.Int32".
At line:38 char:39
+ Show-Window -WindowState Restore -ID $firefox_pid
+ ~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Show-Window], ParameterBindingArgumentTransformationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Show-Window
Hi,
DeleteWhen multiple Firefox windows are opened, Get-Process command returns an array instead of a single integer pid value. Try to run single firefox instance.