Latest Posts

Powershell: Get file- and foldersize for given path


Quick and dirty little thing I use to get the file- and foldersize for any given path.

-F

Read More

Windows: Server stuck in shutdown after installing patches


One of my servers in my labenvironment refused to gently reboot after installing a ton of patches that I.. uhm.. forgot to install. The “restart-computer -computername DC1” cmdlet wouldn’t do anything, as it returns with : Restart-Computer : Failed to restart the computer dc1 with the following message: A system shutdown is in progress. Figures,…

Read More

Windows: Modify Automatic (Delayed start) windows service thresholds


I wanted to modify the delayed start time threshold for one of my services. If you want to tweak your delaytime, do the following in regedit: 1. Open Regedit. 2. Navigate to your service, in my case it was HKLMSYSTEMCurrentControlSetservicesPlexService You should see that the “DelayedAutostart is set to 1. 3. To increase the default…

Read More

Windows: Autologon for Domain User


I have some machines in my lab at home that, due to heavy testing and other stuff, reboots often. Some of my applications are dependent on the user beeing logged on to function properly – so instead of manually logging on each time my server boots, I fiddled around in registry to make the domain…

Read More

Powershell: Convert string to date


The string:

Convert this to date:

– F

Read More

SCOM: DeltaSynchronization Error


This error appeared in out environment recently, and didn’t go away until we changed some configuration settings in a config file on all the management servers. Symptoms: EventID 29181 in the OpsMgr eventlog. Newly pushed agents show up as “Not Monitored” Changes you do to a Management Pack, ex. overriding a rule, does not work….

Read More

SCOM: Get Subscriber in Subscription


This little thing will search through, and get all subscribers containing your searchword in any subscription you may have set up in SCOM.

– F

Read More

SCOM: Get Maintenance Mode History


I use this query whenever I need to investigate Maintenace Mode history for SCOM agents.

– F

Read More

Useful SQL queries for OpsMgr DB


Here are some of the SQL scripts I usually use in case of… whatever. Many of these must be credited to Kevin Holman Set ALL agents to Remotely Managable

Get Agents not Remotely Managable

Set Agent Remotely Managable

Get Unix Duplicates (Run if the *Nix agent view in console fails)

Remove…

Read More

SCOM: Command Channel Script


This little script is what I use in cooperation with the SCOM Command Channel to parse and send SCOM alerts to a logfile. The script will take the SCOM alert parameters and put them neatly in a .log file, one file for each alert I want. This, of course, is customizable – I just like…

Read More

← OLDER POSTS