Skip to main content

Import-MOF

SYNOPSIS​

Imports MOF.

SYNTAX​

Import-MOF [-Path] <String> [<CommonParameters>]

DESCRIPTION​

Imports MOF.

EXAMPLES​

EXAMPLE 1​

Import-MOF C:\Example\windows10.mof

Runs Import-MOF.

EXAMPLE 2​

New-WMIFilter 'C:\setup\GPOs\WMIs\Google Chrome\Google Chrome.mof'

Runs Import-MOF.

EXAMPLE 3​

Import-MOF -Path C:\Example\virtualservers.mof

Runs Import-MOF but with a parameter or switch.

PARAMETERS​

-Path​

Specifies the path to the mof file intended to import.

Type: String
Parameter Sets: (All)
Aliases: mof, Name, File

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters​

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS​

OUTPUTS​

None​

NOTES​

ALIASES​

None.

PLATFORM APPLICABILITY​

Windows only. The platform-aware loader does not export this command on Linux or macOS.

POWERSHELL COMPATIBILITY​

See PowerShell compatibility for the supported runtime policy. PowerShell 7.6 LTS is preferred.

https://docs.keldor.dev/powershell/keldor/Import-MOF