mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-29 17:23:44 +00:00
Merge pull request #417 from LucasArona/patch-2
Unmatched single quote. Fixes #303
This commit is contained in:
@ -138,7 +138,7 @@ This is an example script with logging that shows how to run a powershell script
|
|||||||
set LOGFILE=%SystemDrive%\my_powershell_script.log
|
set LOGFILE=%SystemDrive%\my_powershell_script.log
|
||||||
echo Running my_powershell_script.ps1 in system context >> %LOGFILE%
|
echo Running my_powershell_script.ps1 in system context >> %LOGFILE%
|
||||||
echo Executing "PsExec.exe -accepteula -i -s cmd.exe /c powershell.exe my_powershell_script.ps1" >> %LOGFILE%
|
echo Executing "PsExec.exe -accepteula -i -s cmd.exe /c powershell.exe my_powershell_script.ps1" >> %LOGFILE%
|
||||||
PsExec.exe -accepteula -i -s cmd.exe /c powershell.exe my_powershell_script.ps1' >> %LOGFILE%
|
PsExec.exe -accepteula -i -s cmd.exe /c 'powershell.exe my_powershell_script.ps1' >> %LOGFILE%
|
||||||
echo result: %ERRORLEVEL% >> %LOGFILE%
|
echo result: %ERRORLEVEL% >> %LOGFILE%
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user