I am trying to include the following into a batch file that i have that maps some drives
i have added the below to my smb.ps1
Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol
In my batch file
powershell.exe -ExecutionPolicy Bypass -File "D:\scripts\smb.ps1"
Also note the smb script works if i test it alone
I get the error below when i execute. i have allowed allow local and remote signed scripts on dc and this is happening via GPO
"The argument 'D:\scripts\smb.ps1' to the -File parameter does not exist. Provide the path to an existing '.ps1' file as an argument to the -File parameter."