
ENTERPRISE
14
14.
Enter the following text to cleanup the script objects:
‘ ********** CLEANUP **********
Set objNet = Nothing
Set objFile = Nothing
Set objRE = Nothing
Set objFolder = Nothing
Set objTS = Nothing
Set objFS = Nothing
Set objTextFile = Nothing
Set objFSO = Nothing
This code cleans up all the objects that have been created throughout the script.
15.
Save the file as
DF Update.vbs
. Make sure the file is saved as a
.vbs
and not a
.txt
. The icon
should look like the following:
The script is now ready to be implemented through a logon script in Group Policy.
NOTE:
The script does not contain any error handling.