Archive for 'Samba'

Shutdown a Windows machine from the UNIX command line

Picked up this nifty trick from command-line-fu $ net rpc shutdown -I ipAddressOfWindowsPC -U username%password This will issue a shutdown command to the Windows machine. username must be an administrator on the Windows machine. Requires samba-common package installed. Other relevant commands are: net rpc shutdown -r : reboot the Windows machine net rpc abortshutdown : […]

Accessing Windows shares from the Solaris/Linux command line

Periodically I need to access a Windows share from a Solaris or Linux box. If Samba is installed on the system, this is easy to do with the smbclient utility. To access the Windows server named “milton” from the command line, you can run smbclient with the “-U” option, the name of the user to […]