Type of logical file that is a named collection of data or executable code
Functions: | |
Type: | |
Toolsets: |
Get-CimInstance -Query "Select * from CIM_DataFile Where ((Drive = 'C:') AND (FileName = 'ntuser') AND (Extension = 'dat'))" -CimSession $s
Usecases
$s
using New-CimSession
ROOT\Cimv2
$f = Get-CimInstance -ClassName CIM_DataFile -Filter "Name='C:\\Unattend.xml'" -CimSession $s
$f | Invoke-CimMethod -Name Copy -Arguments @{FileName='C:\\Users\\Public\\Unattend.xml'}
Usecases
$s
using New-CimSession