Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
On Error Resume Next
'Run this script once and never again
'==========================================================================
Dim varToday, Verify, WhatYouWantToCallIT, LastRun
Set WshShell = CreateObject("Wscript.Shell")
varToday = WhatYouWantToCallIT
Verify = "HKLM\SOFTWARE\MyInstallsAndFixes\"
'Check if scan has run today and if so exit
On Error Resume Next
LastRun = WshShell.RegRead(Verify & "WhatYouWantToCallIT")
If Err.Number = 0 Then
WScript.Quit
Else
WshShell.RegWrite Verify & "WhatYouWantToCallIT", 0,"REG_DWORD"
End If
On Error GoTo 0
'=============================================================================
Set objSysInfo = CreateObject("ADSystemInfo")
strUser = objSysInfo.UserName
Set objUser = GetObject("LDAP://" & strUser)
'The following will be pulled from AD
strName = objUser.FullName
strTitle = objUser.Title
strCompany = objUser.company
strMail = objUser.Mail
strPhone = objUser.telephoneNumber
Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Add()
Set objSelection = objWord.Selection
Set objRange = objDoc.Range()
Set objEmailOptions = objWord.EmailOptions
Set objSignatureObject = objEmailOptions.EmailSignature
Set objSignatureEntries = objSignatureObject.EmailSignatureEntries
objSelection.Font.Size = "11"
objSelection.Font.Name = "Arial"
objSelection.ParagraphFormat.SpaceAfter = 0
objSelection.TypeText CHR(11)
objSelection.TypeText "Regards,"
objSelection.TypeText CHR(11)
objSelection.TypeText CHR(11)
objSelection.Font.Bold = false
objSelection.TypeText strName
objSelection.Font.Bold = True
objSelection.TypeText CHR(11)
objSelection.Font.Underline = True
objSelection.TypeText strTitle & " "
objSelection.Font.Underline = False
objSelection.Font.Bold = False
objSelection.TypeText CHR(11)
objSelection.Font.Size = "11"
objSelection.Font.Name = "Arial"
objSelection.Font.Bold = False
objSelection.TypeText "Company Name"
objSelection.TypeText CHR(11)
objSelection.Font.Size = "9"
objSelection.Font.Name = "Arial"
objSelection.TypeText "What Company does"
objSelection.TypeText CHR(11)
objSelection.TypeText "Physical address:"
objSelection.TypeText CHR(11)
objSelection.TypeText "some address"
objSelection.TypeText CHR(11)
objSelection.TypeText "some address"
objSelection.TypeText CHR(11)
objSelection.TypeText "Postal address:"
objSelection.TypeText CHR(11)
objSelection.TypeText "Postal address"
objSelection.TypeText CHR(11)
objSelection.Font.Bold = true
objSelection.TypeText "T:"
objSelection.Font.Bold = False
objSelection.TypeText " Phone Number"
objSelection.TypeText CHR(11)
objSelection.Font.Bold = true
objSelection.TypeText "F:"
objSelection.Font.Bold = False
objSelection.TypeText " Phone Number"
objSelection.TypeText CHR(11)
objSelection.Font.Bold = true
objSelection.TypeText "D:"
objSelection.Font.Bold = false
objSelection.TypeText " " & strPhone
objSelection.TypeText CHR(11)
objSelection.Font.Bold = true
objSelection.TypeText "E:"
objSelection.Font.Color = vbBlue
objSelection.Font.Size = "9"
objSelection.Font.Name = "Arial"
objSelection.Font.Bold = false
objSelection.TypeText " " & strMail
objSelection.Font.Underline = False
objSelection.TypeText CHR(11)
objSelection.Font.Color = vbBlack
objSelection.Font.Bold = true
objSelection.TypeText "W:" & " "
objSelection.Font.Bold = false
objSelection.Font.Size = "9"
objSelection.Font.Name = "Arial"
objSelection.Hyperlinks.Add objselection.range, "objSelection.TypeText CHR(11)
objSelection.TypeText CHR(11)
objSelection.Font.Bold = false
objSelection.Font.Size = "8"
objSelection.Font.Name = "Arial"
objSelection.TypeText "To view the e-mail disclaimer please click on the following link"
objSelection.Font.Color = vbBlue
objSelection.Font.Size = "8"
objSelection.Font.Name = "Arial"
objSelection.TypeText " "
objSelection.Font.Color = vbBlack
objSelection.Font.Size = "8"
objSelection.Font.Name = "Arial"
objSelection.TypeText "Should you not have Internet access please send a blank e-mail to "
objSelection.Font.Color = vbBlue
objSelection.Font.Size = "8"
objSelection.Font.Name = "Arial"
objSelection.Hyperlinks.Add objSelection.Range, " " & strHyperlink & " ", , , strHyperlink, "_blank"
objSelection.TypeText " disclaimer@someaddress.com "
objSelection.Font.Color = vbBlack
objSelection.Font.Size = "8"
objSelection.Font.Name = "Arial"
objSelection.TypeText "and our disclaimer will be forwarded to you automatically."
objSelection.TypeText CHR(11)
Set objSelection = objDoc.Range()
objSignatureEntries.Add "Name Signature", objSelection
objSignatureObject.NewMessageSignature = "Name Signature"
objSignatureObject.ReplyMessageSignature = "Name Signature"
objDoc.Saved = True
objWord.Quit