How to run PowerShell script from CMD
You will find below example how to run PowerShell script from CMD or in windows schedule task
1
C:\>powershell ``"& 'c:\scripts\Active Directory\CreateNewUser.ps1'"
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
You will find below example how to run PowerShell script from CMD or in windows schedule task
1
C:\>powershell ``"& 'c:\scripts\Active Directory\CreateNewUser.ps1'"