Ok.
First of all Im executing my logon scripts with a .wsh file which looks like this::
########################
[ScriptFile]
Path=pathtomylogonscript.vbs
[Options]
Timeout=5
DisplayLogo=1
BatchMode=0
########################
Ok, next my logon scirpt looks like this...
Ok.
First of all Im executing my logon scripts with a .wsh file which looks like this::
########################
[ScriptFile]
Path=pathtomylogonscript.vbs
[Options]
Timeout=5
DisplayLogo=1
BatchMode=0
########################
Ok, next my logon scirpt looks like this::
########################...
Can I execute more than 1 .vbs file from an .wsh file???
Or is there some sort of include within a .vbs file where i can call another .vbs from within a .vbs???
Nevermind I figured it out.
###############################################
On Error Resume Next
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\"&_
strComputer & "\root\default:StdRegProv")
strKeyPath =...
I need to edit the registry on about 100 computers.
Im trying to do this with vbscript and WMI
The registry key path is ::: Software\Microsoft\Windows\CurrentVersion\policies\system\
the name of the entry is "legalnoticetext"
the type is "REG_SZ"
then the data value is what i need to change...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.