Tag: WMI (Page 2/5)

#PSTip Check if a folder is shared
Note: This tip requires PowerShell 3.0 or above. The WMI class Win32_Share gives us the information about all network shares…
Read More
#PSTip Convert a path to WMI compatible path
Note: This tip requires PowerShell 3.0 or above. Some of the WMI queries require that we specify the folder path…
Read More
#PSTip Compress and uncompress files and folders using WMI
Note: This tip requires PowerShell 2.0 or above. In WMI, the CIM_DataFile and CIM_Directory classes have some very useful methods we…
Read More
#PSTip List all WMI namespaces on a system
Note: This tip requires PowerShell 2.0 or above. In WMI, a namespace is a collection of classes. There are many…
Read More
#PSTip View Policy Settings with RSOP WMI classes
Note: This tip requires admin privileges (elevated shell) To get Resultant Set of Policy (RSOP) data we usually RSOP.mmc or the gpresult command…
Read More
#PSTip List all WMI event classes
Note: This tip requires PowerShell 2.0 or above. If you are familiar with Windows Management Instrumentation (WMI), there are different…
Read More