Windows PowerShell Auto start from CD

Asked By 10 points N/A Posted on -
qa-featured

Hello All,

How to set Windows PowerShell Auto start from CD, that will run the Windows PowerShell script automatically while inserting the CD, Please provide a step by step process of setting the CD.

Thanks, Eri Kviars

SHARE
Answered By 0 points N/A #181529

Windows PowerShell Auto start from CD

qa-featured

First of all you have to run Windows Powershell before you are going to run Windows Powershell Scripts.

Before you run Windows powerShell Auto from CD you have to check for execution Policy.  For that you have to type the following code in your PowerShell Prompt.

Get-ExecutionPolicy

Now you are possible to run scripts.

After that you can set the command to the directory of the CD drive. You can use following code for that. Make sure that you have typed the full path to the directory.

& :c:scriptstest.ps1

Related Questions