On Aug 2, 2:01 pm, lawndart <lawnd...@gmail.com> wrote:
> I have a script to do mass shutdowns of machines for when we have
> planned outages, etc.
> I use a wmi call to do an immediate shutdown as one of the options and
> check the return value. Usually it's the easy to understand 1 or 0,
> but for a few machines it comes back as 1271, which I can't figure
> out. Here's the wmi call:
> (gwmi win32_operatingSystem -ComputerName
> It's not a permissions issue (as far as I can tell), and it seems to
> be independent of server OS type, in that I have seen it on XP and
> 2003 x64.
> I looked around in the ms docs on wmi return and error codes and found
> nothing useful. Any ideas?
Never mind, found it in the general Windows system errors: