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

Set Nvram = CreateObject("sacom.sanvram")
Version = Nvram.InterfaceVersion
HasNvram = Nvram.HasNVRAM
HasPowerCycle = Nvram.HasPowerCycleInfo
NvramSize = Nvram.Size
wscript.echo "Version = [" & Version & "]"
wscript.echo "Has physical NVRAM = [" & HasNvram & "]"
wscript.echo "Has power cycle support = [" & HasPowerCycle & "]"
wscript.echo "NVRAM size = [" & NvramSize & "]"
wscript.echo ""
for i = 1 to 4 step 1
BootCounter = Nvram.BootCounter( i )
wscript.echo "Boot counter #" & i & " = [" & BootCounter & "]"
next
wscript.echo ""
for i = 1 to NvramSize step 1
DataSlot = Nvram.DataSlot( i )
wscript.echo "Slot #" & i & " = [" & DataSlot & "]"
next