Skip to content

Commit 797e8de

Browse files
authored
Update custom-script-windows.md
need to update a FAQ item for Windows
1 parent 1be1b25 commit 797e8de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

articles/virtual-machines/extensions/custom-script-windows.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ If your script is on a local server, you might still need to open other firewall
5555
### Tips
5656

5757
- Output is limited to the last 4,096 bytes.
58+
- Properly escaping characters will help ensure that strings are parsed correctly. For example, you always need two backslashes to escape a single literal backslash when dealing with file paths. Sample: {"commandToExecute": "C:\\Windows\\System32\\systeminfo.exe >> D:\\test.txt"}
5859
- The highest failure rate for this extension is due to syntax errors in the script. Verify that the script runs without errors. Put more logging into the script to make it easier to find failures.
5960
- Write scripts that are idempotent, so that running them more than once accidentally doesn't cause system changes.
6061
- Ensure that the scripts don't require user input when they run.

0 commit comments

Comments
 (0)