Changes between Initial Version and Version 2 of Ticket #7769
- Timestamp:
- Feb 2, 2011 1:37:33 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7769 – Description
initial v2 7 7 8 8 This from a larger script to control VM before backup: 9 {{{ 10 su $DefaultUser -c "/usr/bin/VBoxManage --nologo guestcontrol \ 11 execute "$VM_Name" "C:\Windows\system32\shutdown.exe" \ 12 --arguments "/t 5 /s /d p:2:3" --username "$WinAdminUser" \ 13 --password "$WinAdminPassword" --wait-for stdout" 9 14 10 su $DefaultUser -c "/usr/bin/VBoxManage --nologo guestcontrol \ 11 execute "$VM_Name" "C:\Windows\system32\shutdown.exe" \ 12 --arguments "/t 5 /s /d p:2:3" --username "$WinAdminUser" \ 13 --password "$WinAdminPassword" --wait-for stdout" 14 15 echo "su $DefaultUser -c "/usr/bin/VBoxManage --nologo guestcontrol \ 16 execute "$VM_Name" "C:\Windows\system32\shutdown.exe" \ 17 --arguments "/t 5 /s /d p:2:3" --username "$WinAdminUser" \ 18 --password $WinAdminPassword --wait-for stdout"" 15 echo "su $DefaultUser -c "/usr/bin/VBoxManage --nologo guestcontrol \ 16 execute "$VM_Name" "C:\Windows\system32\shutdown.exe" \ 17 --arguments "/t 5 /s /d p:2:3" --username "$WinAdminUser" \ 18 --password $WinAdminPassword --wait-for stdout"" 19 }}} 19 20 20 21 And here is the result: 21 22 {{{ 22 23 Oracle VM VirtualBox Command Line Management Interface Version 3.2.10 23 24 (C) 2005-2010 Oracle Corporation … … 36 37 37 38 Syntax error: No user name specified! 38 su todd -c /usr/bin/VBoxManage --nologo guestcontrol execute VB-ABC C:\Windows\system32\shutdown.exe --arguments /t 5 /s /d p:2:3 --username admin --password nottellin --wait-for stdout 39 39 su todd -c /usr/bin/VBoxManage --nologo guestcontrol execute VB-ABC \ 40 C:\Windows\system32\shutdown.exe --arguments /t 5 /s /d p:2:3 \ 41 --username admin --password nottellin --wait-for stdout 42 }}} 40 43 You will note that "Syntax error: No user name specified!" does not match up to "--username winadmin" 41 44