Trying to figure out why this doesn't work, I know it is angry at line 1 and line 7 for the & symbols but I don't have an answer on how to fix it?
You can see the original post for this, the code shown below comes from the very bottom of this post:
https://devblogs.microsoft.com/scriptin ... -a-script/
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set objReg=GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
strValueName = "LegalNoticeCaption"
strValue = ""
objReg.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, strValue
strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
strValueName = "LegalNoticeText"
strValue = ""
objReg.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, strValue<#
You can see the original post for this, the code shown below comes from the very bottom of this post:
https://devblogs.microsoft.com/scriptin ... -a-script/
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set objReg=GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
strValueName = "LegalNoticeCaption"
strValue = ""
objReg.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, strValue
strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
strValueName = "LegalNoticeText"
strValue = ""
objReg.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, strValue<#
Statistics: Posted by BDBHogo_ — Mon Jun 24, 2024 8:21 am — Replies 2 — Views 111