Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
721 B

  1. Set Nvram = CreateObject("sacom.sanvram")
  2. Version = Nvram.InterfaceVersion
  3. HasNvram = Nvram.HasNVRAM
  4. HasPowerCycle = Nvram.HasPowerCycleInfo
  5. NvramSize = Nvram.Size
  6. wscript.echo "Version = [" & Version & "]"
  7. wscript.echo "Has physical NVRAM = [" & HasNvram & "]"
  8. wscript.echo "Has power cycle support = [" & HasPowerCycle & "]"
  9. wscript.echo "NVRAM size = [" & NvramSize & "]"
  10. wscript.echo ""
  11. for i = 1 to 4 step 1
  12. BootCounter = Nvram.BootCounter( i )
  13. wscript.echo "Boot counter #" & i & " = [" & BootCounter & "]"
  14. next
  15. wscript.echo ""
  16. for i = 1 to NvramSize step 1
  17. DataSlot = Nvram.DataSlot( i )
  18. wscript.echo "Slot #" & i & " = [" & DataSlot & "]"
  19. next