You might want to start by reading the KiXtart Manual and the FAQ Forum. They explain in detail how to install KiXtart and run scripts. Installation of KiXtart does nto require reboots, just put it into an appropriate folder. Also, registry writes to the policies subfolders require administrative privileges.
Code:

$rc=writevalue('HKEY_CURRENT_USER\software\Microsoft\Windows\CurrentVersion\Policies\Explorer','nodrives','262144','REG_DWORD')

_________________________
There are two types of vessels, submarines and targets.