If ran centrally, this is useful to see who has offline file caches to servers that may be decommissioned.
To find a specific server
Get-WmiObject Win32_OfflineFilesItem -filter “itemname = ‘\\\\server'” | ft itempath
To find all file shares use
Get-WmiObject Win32_OfflineFilesItem -filter “itemtype=2” | ft itempath
For some reason Win 10 computers would not appear in the “MBAM Supported Computers Group” so I have created an additional membership rule for WQL using the format below. This is SCCM 2016 Mbam 2.5 SP1 with latest KB patch.
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_TPM on SMS_G_System_TPM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.Version like “10.%” and SMS_G_System_TPM.SpecVersion > “1.2” and SMS_G_System_COMPUTER_SYSTEM.DomainRole = 1
After adding a PCI wireless card to a server and installing the manufacturer drivers it will not work and Device Manager reports Unknown device and the drivers are not installed with a “Service installation section in this INF is invalid” message.
Turns out the wireless features are not installed by default on Windows Servers now and once added back re-add the manufacturer drivers as normal to get working again.
Add-WindowsFeature -Name Wireless-Networking
Unfortunately the Add-KdsRootKey -EffectiveImmediately does not happen immediately therefore if happy that this has replicated to all Domain Controllers use the following
Add-KdsRootKey –EffectiveTime ((get-date).addhours(-10))
Used from Server Core hosts to check progress on storage move operations
Get-WmiObject -Namespace root\virtualization\v2 -Class Msvm_MigrationJob | ft Name, JobStatus, PercentComplete, VirtualSystemName