Comments (5)
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.
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.
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.
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.
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)
- iis_webbinding IPv6 Problem
- improper string handling (evaluation) in community.windows.win_timezone
- Security scanners flag tests/integration/targets/win_psmodule_info/files/ansiblevault.0.3.0.nupkg
- user account not set correctly in created scheduled task when user is a domain user.
- Provide ability to add DHCP Options to win_dhcp_lease
- Provide ability to create a DHCP Scope
- Support IPv6 in win_dhcp_lease
- "The DISM PS module needs to be installed, this can be done through the windows-adk chocolately package" HOT 1
- Windows privileges to use the windows.win_dns_record module
- win_iis_webapplication is not idempotent. Absent state does not work as expected.
- Invalid error with the win_unzip module when attempting to unzip a zip file
- win_unzip breaks when using beta Pscx version 4
- win_dns_record: state changed but nothing is done when adding record HOT 3
- win_iis_webapppool cannot add multiple env vars
- Can not create scheduled task that runs only on last day of month
- Win_hotfix module fails to install cumulative update for Windows 11
- win_credential creates credentials for the become user HOT 2
- Unable to Install 'VirtualMachinePlatform' Feature on Windows Server 2022 using win_feature Module HOT 1
- adding "use_system_account" to work with GMSA accounts HOT 1
- win_feature : possibility to bypass WSUS server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from community.windows.