Offline Cache Scripts

Anyone to explain what this script does?

Thank you

Break on

$iniFile="%programfiles%\Mydomain Tools\Machine.ini"

if readprofilestring ($iniFile,"General","OfflineCache")<>"1"
	if readvalue($regKey,$keyName)="1"
		if not exist ("%programfiles%\Mydomain Tools")
			md "%programfiles%\Mydomain Tools"

sleep 5

Open in new window

Who is Participating?
RobConnect With a Mentor Owner (Aidellio)Commented:
This script re-initializes the Client Side Cache (used with offline files such as domain based files saved locally on a users computer). (

Most domains that have offsite users will use offline files so that the users can take a copy of a document / file with them on the road that will then sync up later when they return to the office (or connect via VPN)
jskfanAuthor Commented:
Thank you
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.