How to re-run a .bat script without closing the console window?


hello all,

thank in advance.

i have created script works fine. scripts enables lync user , sets conferencing policy. scripts imports lync module take few minutes launch , ofcourse currently, im having close window , re-open user. set single user enable reason. way can think of getting work putting script block function , @ end of function read-host if null, call function again, if 1 exit. work , there , easier way?

sthe actuall script be:

function <name> {

code

}

<name>

how starting script? i'm guessing double click gui, correct? if so, have tried starting powershell , running script there? this:

ps c:\windows\system>.\mypath\myscript.ps1 <arguments>

your script run 'inline' , modules loaded stay loaded, until close console window.



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Generating Event ID 91, 44 with CA (In Event Viewer with source as Certsvc)

Group policy default policy cannot be edited because network name not found

Problem when changing update source