Powershell screen
- I am using scheduled tasks and put command "C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe" "C:\WINDOWS\system32\windowspowershell\v1.0\examples\UnlockUID.ps1"
Now, i have one question i.e. is it possible that DO NOT show running screen of powershell. Of course, when script running done; it also close screen. But i do not want user to see it.
Thanks,
glaziz
Antworten
- One way is to wrap your PowerShell code in VBScript:
http://blog.sapien.com/index.php/2006/12/26/more-fun-with-scheduled-powershell/
In v2, PowerShell.exe has a new flag that provides this as a built-in feature.- Als Antwort markiertMarco ShawMVP, ModeratorDienstag, 23. Juni 2009 14:17
- Als Antwort vorgeschlagenMarco ShawMVP, ModeratorFreitag, 19. Juni 2009 11:41
- Or, use inline C# code
http://www.vistax64.com/powershell/84599-invisible-windows.html
Look for Bruce Payette's post from August 15th, 2007 (set-console)
Karl- Als Antwort markiertMarco ShawMVP, ModeratorDienstag, 23. Juni 2009 14:17
Alle Antworten
- One way is to wrap your PowerShell code in VBScript:
http://blog.sapien.com/index.php/2006/12/26/more-fun-with-scheduled-powershell/
In v2, PowerShell.exe has a new flag that provides this as a built-in feature.- Als Antwort markiertMarco ShawMVP, ModeratorDienstag, 23. Juni 2009 14:17
- Als Antwort vorgeschlagenMarco ShawMVP, ModeratorFreitag, 19. Juni 2009 11:41
- Hi,
It’s possible to run background PowerShell scripts. For detailed information, please refer to the following article.
Background "jobs" and PowerShell
http://jtruher.spaces.live.com/blog/cns!7143DA6E51A2628D!130.entry
Thanks.
This posting is provided "AS IS" with no warranties, and confers no rights. - Or, use inline C# code
http://www.vistax64.com/powershell/84599-invisible-windows.html
Look for Bruce Payette's post from August 15th, 2007 (set-console)
Karl- Als Antwort markiertMarco ShawMVP, ModeratorDienstag, 23. Juni 2009 14:17

