Giter Site home page Giter Site logo

Comments (5)

jborean93 avatar jborean93 commented on August 25, 2024

From @LiranNis on Feb 21, 2019 22:18

I think that when you set the page file to automatic there is no Win32_PageFileSetting object.
Might need to change the query part to query Win32_PageFileUsage instead.

Edit: Win32_PageFileUsage doesn't contain InitialSize / MaximumSize properties, need to query both.

from community.windows.

jborean93 avatar jborean93 commented on August 25, 2024

From @ShachafGoldstein on May 29, 2019 10:29

you're correct that there is no win32_pagefilesetting for automatic pagefile

if the only info you need is the path then you're right about using diffrent wmi classes, but I'm not sure if it is correct to change the module behavior for this specific case of auto managed and path retrieval

from community.windows.

jborean93 avatar jborean93 commented on August 25, 2024

From @ShachafGoldstein on Jul 16, 2019 20:17

@daveolker - We discussed this in the meeting today - can you please explain more about your use case? Why do you need that specific info in the case of Auto managed on the system level?

from community.windows.

jborean93 avatar jborean93 commented on August 25, 2024

From @jhawkesworth on Jul 16, 2019 21:07

Also worth mentioning that in future we should really move to having a win_pagefile_facts or win_pagefile_info module that just returns the current state, rather than having this 'no parameters' version.
Any such new module ought to handle this case, although I don't know what it would be useful to return in the case you describe other than a message saying that the pagefile is system-managed.

from community.windows.

jborean93 avatar jborean93 commented on August 25, 2024

From @daveolker on Jul 18, 2019 16:58

@daveolker - We discussed this in the meeting today - can you please explain more about your use case? Why do you need that specific info in the case of Auto managed on the system level?

My goal was to ensure the systems I was configuring had a specific pagefile layout in terms of where the pagefile was located and whether it was manually sized or automatically sized. Even if automatic pagefile management is currently enabled, my expectation is the module would return the current pagefile size and location. Based on the data it returned I would decide whether to take action or leave the current pagefile configuration as is.

from community.windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.