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

Azure MFA with Azure AD and RDS

Failed to setup initiator portal. Error status is given in the dump data.

Invalid pointer on gpresult /h gpreport.html