Highlighted
abel5405 Absent Member.
Absent Member.
1895 views

Size and Location of the page file.

Greetings All,
I've been asked to create a report with the size and location of the page file for our Windows servers. I've tried using powershell scripts and others but can't seem to get the data in a way I can report on it. Has anybody done this before and if so how? Many thanks as always for any help.

v/r
Chris
Tags (1)
0 Likes
4 Replies
Micro Focus Expert
Micro Focus Expert

Re: Size and Location of the page file.

abel5405 on 7/25/2018 at 8:44:02 AM wrote:

>
>Greetings All,
>I've been asked to create a report with the size and location of the
>page file for our Windows servers. I've tried using powershell
>scripts and others but can't seem to get the data in a way I can
>report on it. Has anybody done this before and if so how? Many
>thanks as always for any help.
>
>v/r
>Chris



What PowerShell script(s) have you tried? Are you able to get the data
via PowerShell and just not able to create a report on it? How would
you like the report to look?

--ebell
0 Likes
abel5405 Absent Member.
Absent Member.

Re: Size and Location of the page file.

Getting the data is hit and miss, I've tried the commands below but I can't get just the size in a numerical format that I can run a report on.

Get-Childitem -file <filename>

Get-WmiObject Select FileSize from CIM_DataFile where 'C:\pagefile.sys'

Get-Pagefile

I have also used the script NT_CopyFileSizeSum but it only tells me that the file is there, the size is in a text or html format in the DetailLog column of the data table. I can't extract the number for a report. Hope this makes sense.

v/r
Chris


**Edit - I was using the power shell commands with he power shell KS.
0 Likes
abel5405 Absent Member.
Absent Member.

Re: Size and Location of the page file.

Hey Ethan,
Do you want me to open a support ticket on this?
0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Size and Location of the page file.

abel5405 on 7/26/2018 at 9:14:03 AM wrote:

>
>Hey Ethan,
>Do you want me to open a support ticket on this?


Yes, you can open an SR and I will send you a KS from the Community
Pack that will provide what you are looking for -
Community_FileSizeSumRX.qml.


--ebell
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.