IAG 2007 Community Wiki

Discuss: Custom endpoint detection scripts

Discussion for Custom endpoint detection scripts.
2008/11/24 15:21 by pbethi
Full Example for Custom Endpoint Detection
------- filename: \internalsite\customupdate\registrycheck.vbs ------ On Error Resume Next

Results("MY_Reg_Laptop")=False

Results("MY_Reg_Test")=False

Whale.DebugEcho "MY"

Err.Clear

value=Whale.Registry.RegRead(rkHKEY_LOCAL_MACHINE,"SOFTWARE\MY\Build","Desktop")

whale.debugecho ("Read value to be (" & value & ")")

if Err=0 then

Results("MY_Reg_Laptop")=True

Whale.DebugEcho "Corporate registry check PASSED - corporate machine"

else

Whale.DebugEcho "Error: Corporate registry check FAILED - not a corporate machine"

end if

Err.Clear



Err.Clear

bExist=Whale.Registry.RegKeyExist(rkHKEY_LOCAL_MACHINE,"SOFTWARE\MY\Test")

if Err=0 And bExist then

Whale.DebugEcho "Laptop registry"

Results("MY_Reg_Test")=True

else

Whale.DebugEcho "Laptop registry does NOT exist"

end if





ScrewTurn Wiki version 2.0.22. Some of the icons created by FamFamFam. Here's an Imprint.
This site is not affiliated with, sponsored by or under the control of Microsoft Corporation. Microsoft is not responsible for any content contained within this web site. This site is not endorsed by Microsoft Corporation. Microsoft™, IAG 2007™, ISA Server™, Windows™ are either registered trademarks or trademarks of Microsoft™ Corporation in the United States and/or other countries.

See the Code of Conduct and Site FAQ for additional information.