We can execute powershell script file (ps1) from CMD or PowerShell, try to using command below
Using CMD:
C:\> Powershell D:\Test.PS1
Using Powershell :
PS C:\> D:\Test.PS1
but I recommend you to move your post here http://social.technet.microsoft.com/Forums/en-us/ITCG/threads when you are asking about Scripting or Powershell
Using CMD:
C:\> Powershell D:\Test.PS1
Using Powershell :
PS C:\> D:\Test.PS1
but I recommend you to move your post here http://social.technet.microsoft.com/Forums/en-us/ITCG/threads when you are asking about Scripting or Powershell
No comments:
Post a Comment