Copy powershell.ps1 from \\fileserver\scripts to "%systemdrive%\Tools\Scripts" local computer;
REM powershell.ps1 file
robocopy \\filerserver\Scripts %systemdrive%\Tools\Scripts powershell.ps1Execute the powershell.ps1 file
REM Execute powershell.ps1 file
powershell -ExecutionPolicy RemoteSigned "%systemdrive%\Tools\Scripts\powershell.ps1"PowerShell.exe .\powershell.ps1 %–parameter1% 1 %–parameter2% 2
转载于:https://blog.51cto.com/57388/1643904