Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - how to run a script without a window

Reply
 
Old 05-16-2007   #1 (permalink)
Antti


 
 

how to run a script without a window

Hi.

Is it possible to run a scheduled script without a window? My script runs
twice an hour and the window, although it's there only for a couple of
seconds, is disturbing.

--
Antti



My System SpecsSystem Spec
Old 05-16-2007   #2 (permalink)
Marco Shaw


 
 

Re: how to run a script without a window

Antti wrote:
> Hi.
>
> Is it possible to run a scheduled script without a window? My script runs
> twice an hour and the window, although it's there only for a couple of
> seconds, is disturbing.
>
> --
> Antti
>
>


See:
http://blog.sapien.com/current/2006/...owershell.html
My System SpecsSystem Spec
Old 05-16-2007   #3 (permalink)
Antti


 
 

Re: how to run a script without a window

"Marco Shaw" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:esdGXA7lHHA.2272@TK2MSFTNGP02.phx.gbl...
> See:
> http://blog.sapien.com/current/2006/...owershell.html


That did it. Thanks.

--
Antti


My System SpecsSystem Spec
Old 05-16-2007   #4 (permalink)
LordFox


 
 

Re: how to run a script without a window

I've been watching my Vista machine closely, but I do not see any
action popping up, even though the script runs. Maybe it is because I
told Task Scheduler to run the task even if there is no user logged
on...

Rick

>Antti wrote:
>> Hi.
>>
>> Is it possible to run a scheduled script without a window? My script runs
>> twice an hour and the window, although it's there only for a couple of
>> seconds, is disturbing.
>>
>> --
>> Antti
>>
>>

>
>See:
>http://blog.sapien.com/current/2006/...owershell.html

My System SpecsSystem Spec
Old 05-21-2007   #5 (permalink)
Antti


 
 

Re: how to run a script without a window


"LordFox" <newsaccount2001@*spamtag*yahoo.com> wrote in message
news:3l4m43961l862n7frbfv17fali8l25phnq@4ax.com...
> I've been watching my Vista machine closely, but I do not see any
> action popping up, even though the script runs. Maybe it is because I
> told Task Scheduler to run the task even if there is no user logged
> on...


Interesting. Maybe it just works in Vista. I have to try that.

"Marco Shaw" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:esdGXA7lHHA.2272@TK2MSFTNGP02.phx.gbl...
> See:
> http://blog.sapien.com/current/2006/...owershell.html


It works, alright, BUT there's a but. Events 1517,1524 (registry in use) get
logged every time the script runs. Can't have that either.

--
Antti


My System SpecsSystem Spec
Old 05-21-2007   #6 (permalink)
Jeffery Hicks


 
 

Re: how to run a script without a window

Antti wrote:
> "LordFox" <newsaccount2001@*spamtag*yahoo.com> wrote in message
> news:3l4m43961l862n7frbfv17fali8l25phnq@4ax.com...
>> I've been watching my Vista machine closely, but I do not see any
>> action popping up, even though the script runs. Maybe it is because I
>> told Task Scheduler to run the task even if there is no user logged
>> on...

>
> Interesting. Maybe it just works in Vista. I have to try that.
>
> "Marco Shaw" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
> news:esdGXA7lHHA.2272@TK2MSFTNGP02.phx.gbl...
>> See:
>> http://blog.sapien.com/current/2006/...owershell.html

>
> It works, alright, BUT there's a but. Events 1517,1524 (registry in use) get
> logged every time the script runs. Can't have that either.
>
> --
> Antti
>
>


I'm trying to reproduce the events you seem to be getting. Are you
running the scheduled task with the same credentials as the currently
logged on user or different?
My System SpecsSystem Spec
Old 05-24-2007   #7 (permalink)
Antti


 
 

Re: how to run a script without a window


"Jeffery Hicks" <jhicks@sapien.com> wrote in message
news:eiWYna8mHHA.3888@TK2MSFTNGP03.phx.gbl...
> Antti wrote:
>> It works, alright, BUT there's a but. Events 1517,1524 (registry in use)
>> get logged every time the script runs. Can't have that either.
>>
>> --
>> Antti

>
> I'm trying to reproduce the events you seem to be getting. Are you
> running the scheduled task with the same credentials as the currently
> logged on user or different?


Scripts are run as a different user (who occasionally logs on). When logged
on, there are no errors in the event log. Without the wrapper Powershell
scripts pop up only if the user is logged on, of course. I installed MS's
UPHclean service in order to get rid of the warnings. It works, but
UPHclean's log events aren't too pretty either. I wish there was a clean and
invisible way to run scripts.

--
Antti


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
script to POST and open reponse in new window VB Script
Possible to run a Powershell script with no taskbar window? PowerShell
PSScriptRunner - run a PS script with no window flashing on screen PowerShell
Script pauses when you click in the powershell text window PowerShell
downloading java script to window vista Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46