Run script using the MDT database
-
2012년 3월 29일 목요일 오후 4:23
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
모든 응답
-
2012년 3월 29일 목요일 오후 6:47
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.
Kind regards,
Stephan Schwarz.
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 -
2012년 3월 29일 목요일 오후 6:58
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.
Respectfully, Carlos MCTS, MCITP

