I was once asked to get this information, you might find a use for this script.

Script Name: get pagefile and shares
Script Description: This script grabs teh pagefile location and shares on a machine, writes them to c:\temp as shares.txt and pagefilelocation.txt then uploads them the kaseya server

IF True
THEN
Get Variable
Parameter 1 : 0
Parameter 2 : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles
Parameter 3 : pagefileLocation
OS Type : 0
Execute Shell Command
Parameter 1 : echo #pagefileLocation# >> c:\temp\pagefilelocation.txt
Parameter 2 : 1
OS Type : 0
Execute Shell Command
Parameter 1 : net share >> c:\temp\shares.txt
Parameter 2 : 1
OS Type : 0
Get File
Parameter 1 : c:\temp\pagefilelocation.txt
Parameter 2 : \pagefilelocation.txt
Parameter 3 : 0
OS Type : 0
Get File
Parameter 1 : c:\temp\shares.txt
Parameter 2 : \shares.txt
Parameter 3 : 0
OS Type : 0
ELSE




Legacy Forum Name: Find the location of the page file and displays shares on the machine,
Legacy Posted By Username: jnuttall