Debian Codegraph @

test/integration/targets/incidental_win_reboot/templates/post_reboot.ps1

raw
1 if (Test-Path -Path '{{win_output_dir}}\win_reboot_test') {
2 New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager' `
3 -Name PendingFileRenameOperations `
4 -Value @("\??\{{win_output_dir}}\win_reboot_test`0") `
5 -PropertyType MultiString
6 Restart-Computer -Force
7 exit 1
8 }