Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Change the Legal Warning Message Using a ScriptContent of Change the Legal Warning Message Using a Script.vbsMD5 Hash: DED12BDC36CACFF16CC1BDAED20CE1E9 |
||
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "." Set objReg=GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv") strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" strValueName = "LegalNoticeCaption" strValue = "Fabrikam, Inc. Legal Notice" objReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" strValueName = "LegalNoticeText" strValue = "By logging on to this computer you agree to abide by the " strValue = strValue & "computer usage rules and regulations of Fabrikam, Inc." strValue = strValue & vbCrLf & vbCrLf strValue = strValue & "For more information, phone (425)-555-1289." objReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |