User Notice Using VB Script – Acrobat Reader Output

Option Explicit
DIM fso
Set fso = CreateObject("Scripting.FileSystemObject")

If (fso.FileExists("\\FILE_SERVER\NOTICE$\live.pdf")) Then

dim wShell:Set wShell=CreateObject("WScript.Shell")
dim i
i=wShell.Run("AcroRd32.exe \\FILE_SERVER\NOTICE$\live.pdf",1,False)
Set wShell=Nothing

Else
 WScript.Quit()
End if
 WScript.Quit()

Single Run User Notice Using VB Script – Internet Explorer Output

Option Explicit

'Delivery - run only if text file is not present

DIM fso
Set fso = CreateObject("Scripting.FileSystemObject")
If (fso.FileExists("N:\RedirectedProfileFolders\surveymonkey.txt")) Then

 WScript.Quit()

Else

'Payload - open url and create blank text file used by delivery section of script

dim wShell:Set wShell=CreateObject("WScript.Shell")
dim i
i=wShell.Run("iexplore.exe O:\Students\surveys\surveymonkey_students.url",1,False)
Set wShell=Nothing

Dim successful_run
Set successful_run = fso.CreateTextFile("N:\RedirectedProfileFolders\surveymonkey.txt",True)

End if
 WScript.Quit()

User Notice Using VB Script – Internet Explorer Output

Option Explicit
DIM fso
Set fso = CreateObject("Scripting.FileSystemObject")

If (fso.FileExists("\\FILE_SERVER\NOTICE$\live.url")) Then

dim wShell:Set wShell=CreateObject("WScript.Shell")
dim i
i=wShell.Run("iexplore.exe \\FILE_SERVER\NOTICE$\live.url",1,False)
Set wShell=Nothing

Else
 WScript.Quit()
End if
 WScript.Quit()

SIMS Installation – Batch File

For this installation package, the SIMS setup folder was copied to a network share on the MDT server.

net use X: \\MDT_SERVER\networkpackages$

start /wait X:\sims\setups\simsinfrastructuresetup.exe -a {QuietMode} {SIMSWorkstation} {FMSWorkstation}

start /wait X:\sims\setups\simsapplicationsetup.exe /S {QuietMode} [SIMSDirectory]="S:\SIMS" [SIMSDotNetDirectory]="C:\Program Files\SIMS\SIMS .net"

start /wait X:\sims\setups\simsmanualsetup.exe /S {QuietMode} [SIMSDirectory]="S:\SIMS" [SIMSDotNetDirectory]="C:\Program Files\SIMS\SIMS .net"

start /wait X:\sims\setups\simsamparksetup.exe /S {QuietMode} [SIMSDirectory]="S:\SIMS" [SIMSDotNetDirectory]="C:\Program Files\SIMS\SIMS .net"

echo SIMSSetupsDirectory=S:\SIMS\Setups >> C:\Windows\sims.ini

echo Folder=SIMS Applications >> C:\Windows\sims.ini

echo [SIMSConnection] >> "C:\Program Files\SIMS\SIMS .net\connect.ini"

echo REDIRECT=S:\SIMS >> "C:\Program Files\SIMS\SIMS .net\connect.ini"

net use /delete /y X:

SMART Notebook installation fails with exit code 1603

Issue
SMART Notebook fails to install with a exit code 1603.

Cause
As part of the SMART Notebook installation, Visual Studio 2010 Tools for Office is downloaded and installed. Failure to download and install will result with the exit code 1603 error being displayed.

Solution
Download and install Visual Studio 2010 Tools for Office before installing SMART Notebook.

Prevent users from changing wallpaper via Internet Explorer

Issue
Users can set the desktop wallpaper via Internet Explorer even if Prevent changing wallpaper property is set in Group Policy.

Cause
Desktop wallpaper can be changed if Display Properties is not involved.

Solution
Enable ‘Prevent changing wallpaper’ (in User Configuration\Policies\Administrative Templates\Control Panel\Display) settings.

Modify Registry Using Command-line

Modify the registry without prompts – suitable for use with batch files. Run with elevated privileges.

reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\etc\etc /v Valuename /t REG_SZ /d valuedata /f

/v Value : The value name eg ProgId

/t DataType : REG_SZ (default) | REG_DWORD | REG_EXPAND_SZ | REG_MULTI_SZ

/d Data : The actual data to store as a “String”, integer etc

/f Force: Force an update without prompting “Value exists, overwrite Y/N”

DisplayLink Installation – Batch File

The registry edits changes the default behaviour of connected displays from extended to mirrored mode. The listed msi is only suitable for Windows 7 to Windows 10 1511.

start /wait msiexec /i "DisplayLink_Win7-10TH2.msi" /quiet /norestart
 
reg add HKEY_LOCAL_MACHINE\SOFTWARE\DisplayLink\Products\DefaultProduct\OnNewDevice /v Activity /t REG_SZ /d Mirror /f

reg add HKEY_LOCAL_MACHINE\SOFTWARE\DisplayLink\Products\DisplayLink Graphics\OnNewDevice /v Activity /t REG_SZ /d Mirror /f