'E:\Web\pstruh\tips\tipstats.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
|
|
Win32_OperatingSystem object lets you call shutdown, logoff and
restart os functions using Win32ShutDown method.
Simple extension to shutdown remote computer.
See alsofor 'Shutdown windows using script' article Copyright and use this code
The source code on this page and other samples at https://www.motobit.com/tips/
are a free code, you can use it as you want: copy it, modify it, use it in your products, ...
If you use this code, please:
1. Leave the author note in the source.
or
2. Link this sample from you page.
<A Href="https://www.motobit.com/tips/detpg_wmi-windows-system-shutdown/" Title="WMI sample script to logoff / shutdown / restart windows on local or remote computer." >Shutdown windows using script</A> Do you like it? Rate me on LinkedIn |
© 1996 - 2019 Antonin Foller, Motobit Software | About, Contacts