Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Issues with Powershell WMI - CIM_DataFile

$
0
0

When running VBscript and accessing the AccessMask propert I get a value of 2032127 consistently.  When I run powershell script using WMI CIM_DataFile, the first run I get the value of 2032127, but on second run I get the value of 18809343; on the third run I get the 1st value.

Is this a know issue, or is this the expected behavior?

VBscript was very reliable and consistent, when we deployed to Windows Server 2008R2 and Windows Server 2012, some of the items we were using in vbscript were no longer available, and found it easier to re-write the software in powershell, than re-write the vbscript code.  Our only problem, is the AccessMask property doesn't seem to be consistent when accessing it via powershell.

We are using AccessMask in combination with other properties to generate a software baseline inventory to be used to validate the integrity of the OS and Application Software.

Environment - All Virtual using VMware vSphere 5.1

Windows Server 2003 (32bit), Windows Server 2008 R2, WIndows Server 2012

Powershell v2.0

SQL Server 2005 SP4,

SQL Server 2008 R2 SP2

Any assistance would be appreciated.

DJ


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>