Category Archives: PSOL

PowerShell OneLiner

Your Online/Offline state for a offline files enabled share

Want to know the online/offline state of a DFS-share that is in your offline files? There is a WMI class called Win32_OfflineFilesConnectionInfo that you can use. Of course it’s not as easy as just querying that one… You can do … Continue reading

Posted in PowerShell, PSOL | Tagged , , , | Comments Off on Your Online/Offline state for a offline files enabled share

PSOL: Get-SNMPDevices

Quick and easy way to get a list of all OpsMgr monitored SNMP devices

Posted in OpsMgr, PSOL | Tagged , | Comments Off on PSOL: Get-SNMPDevices

PSOL: Read web page

If you need to output something from a webpage via Powershell, then .NET is a easy way to do it.

Posted in PowerShell, PSOL | Tagged , | Comments Off on PSOL: Read web page

PSOL: Count files in SCCM-inboxes – Version 3

A bit more simple version of the last script… this time as a PowerShell oneliner.

Posted in ConfigMgr, PowerShell, PSOL | Tagged , | Comments Off on PSOL: Count files in SCCM-inboxes – Version 3

PSOL: Resolve informational alerts without repeatcount

To get rid of a large number of alerts in SCOM you can of course use PowerShell… This script will take informational alerts without any repeats that are 24 hours old and simply resolve them with a small comment. (Change … Continue reading

Posted in OpsMgr, PowerShell, PSOL | Tagged , | Comments Off on PSOL: Resolve informational alerts without repeatcount

PSOL: List size of all files matching a pattern

Just recently started to play around with PowerShell… so here is my first PSOL-post (PowerShell One Liner), expect more.

Posted in PowerShell, PSOL | Tagged , | Comments Off on PSOL: List size of all files matching a pattern