Is there a way to run a powershell script using the database?
We have a location in the database and we would like to run a Powershell script every time a computer has the default gateway.
I see where you can install an application but is there a way to run scripts or command line?
Respectfully, Carlos MCTS, MCITP
You can use "applications" the same way for scripts or direct command's to execute.
For powershell scripts, make sure to set the execution policy first though.
If one of these posts answered your question or issue, please click on "Mark as answer".
My Blog | Twitter:
@Schwarz_Stephan | MCTS, MCITP, MCC.
How to configure Windows RE/OEM Recovery Partition with MDT
Yeah I just figured that out.
If you run Powershell.exe -executionpolicy bypass -file "%SCRIPTROOT%\Custom\Script.ps1" you can run the script without a Internet Security prompt.
Microsoft는 Technet 웹 사이트에 대한 귀하의 의견을 이해하기 위해 온라인 설문 조사를 진행하고 있습니다. 참여하도록 선택하시면 Technet 웹 사이트에서 나가실 때 온라인 설문 조사가 표시됩니다.