9 Jan
2010
9 Jan
'10
12:57 p.m.
Paul Grenyer wrote:
Cool! In that case, is there a way to write a script to shut down the Windows 2003 Server VM cleanly?
There are various samba rpc commands you can fire at a Windows box to tell it to shutdown. However whether it will obey them depends on the local security policy and OS version. Normally it would be something like rpcclient -c 'shutdown' -U username -I ipaddress however Server 2003 generally requires a reason code and I am not sure how you supply that. Look at man rpcclient for clues.