View Single Post
Old 04-17-2008   #5 (permalink)
greatbarrier86
Guest


 

Re: Executing PS1 files by double clicking on them

Thanks,
I like the shortcut idea. The problem with PowerGui is that i dont want to
install it on all the computers i am deploying.

Thanks for the help guys!

"NilVeritas@xxxxxx" wrote:
Quote:

> You can make a shortcut to WindowsPowershell - the executable, and
> name that shortcut what you want. After the shortcut is made, you can
> then append to the end of the 'Target' field -nologo -command &'\\path
> \to\your\script.ps1' and when someone double clicks the link, and
> presuming you have the execution policy set to run your script, a
> shell will be created and your script will run it. May not be the
> most elegant, but it works.
>
> Essentially the same as scheduling a powershell script in task manager.
>
My System SpecsSystem Spec