arobarDon't use a script, create a monitoring set. Check out some of the default desktop health sets for ideas, but what you're looking for is likely the Paging File object, % Usage counter, _Total instance. You can set that to alarm if the pagefile is more than 30% in use for 10 minutes (or something along those lines). Keep in mind that there will likely always be some pagefile usage reported here even when the PC is doing nothing, so you wouldn't want to set your threshold to zero.