Posts

Showing posts from April, 2023

Keep it simple

 Update.

Knowledge

Image
Top A   D   C   F   G   I   U   V   W A Anzac day World War 1. ANZAC forces landed at Gallipoli on 25 April, 1915. The objective was to capture Constantinople, the capital of the Ottoman Empire, which was an ally of Germany during the war. They met fierce resistance and suffered heavy casualties. C Continents The seven continents listed by size from biggest to smallest: Asia Africa North America South America Antarctica Europe Australia Countries and Capitals Country Capital Code Continent Afghanistan Kabul AF Asia Aland Islands Mariehamn AX Europe Albania Tirana AL Europe Algeria Algiers DZ Africa American Samoa Pago Pago AS Australia Andorra Andorra la Vella AD Europe

Get-WmiObject examples

gwmi -Class win32_service -Filter "displayname like 'mcafee%' or displayname like 'trellix%'" | sort displayname | select name, displayname gwmi -Class win32_service -ComputerName COMPUTER_NAME -Filter "displayname like 'mcafee%' or displayname like 'trellix%'" | sort displayname | select name, displayname

Robocopy command examples

Exclude files by extension This will ignore files with *.mp extension. robocopy \\source\MP d:\dest\MP /mir /xf *.mp

100% Rye loaf

Ingredients 250 gm water 7 gm yeast 300 gm rye 6 gm salt Add seeds & spices 40 gm treacle syrup Method Add water and yeast to bowl and mix Add dry ingredients to bowl and mix in bowl for 5 mins Take off rings and knead on bench for 6 mins, it will be very sticky so just smoosh it around Put back in bowl, cover and rest for 2 hours Grease up the small loaf tin with proper butter Flour the bench well so dough doesn't stick Roll into sausage so it fits the tin, add flour if necessary Sprinkle black & white seeds to top Cover with big silver bowl, rest for 1 hour Bake 40 mins @ 200c Notes 1/5/2023 This was a very nice combo. With cheese on top it's great for a snack. Try using 20gm oil instead of treacle and update last line of ingredients to say "40 gm treacle or malt extract or 20-30 gm oil) depending on what flavour you're going for. 18/4/2023 This was nice but halve the treacle next time as it was a bit too sweet. You could also substitute it with malt extract.

Service start types

Service monitoring in SCOM can be challenging at times, particularly if you have services with inconsistent names or display names. In that scenario it can be easier to discover and monitor services using a WMI wildcard like this mp does. That's all well and good when the services are all auto start, but what about services that are set to start automatically but are delayed or trigger start? As you can see from the table below, it may be normal for them to not be running. Reading this article (which I still find confusing) the basic service monitor in SCOM only monitors services with an automatic start type by default. To try and improve this, Kevin wrote his own monitor type called  Monitor.Service.WithAlert.FreqAndSamples.IgnoreDisabled.mpx which is in his Fragments repo. On inspection it is more advanced but there's no mention of services with delayed or trigger start type. As of 28/4/2023 I still don't know if SCOM will alert when a service isn't runnin

Gozleme

Makes 4, 8. Takes ~4 hours. Original recipe here . Ingredients Dough Quantity > 8 4 Water 260 gm 130 gm Flour 400 gm 200 gm Salt 3 gm 1.5 gm Fillings Mince and onion Quantity > 8 4 Mince 300 gm 150 gm Onion 1 1/2 Smoked paprika 2 tsp 1 tsp Coriander 2 tsp 1 tsp Ground cumin 2 tsp 1 tsp Salt 1/2 tsp 1/4 tsp Pepper 1/2 tsp 1/4 tsp Mozzarella (optional) 1/2 cup 1/4 cup Spinach and

HTML tables

Some different table styles. #1 This code will add a basic table with good cell padding. # Beer Row 1 Row 2 Row 1 Row 2 Row 1 Row 2 #2 Scrolling table. I got this from here. Column 1 Column 2 Column 3 Example of a scrolling table Here's an example of a scrolling table. Cool isn't it. Here's an example of a scrolling table. Cool isn't it. Example of a scrolling table Here's an example of a scrolling table. Cool isn't it. Here's an example of a scrolling table. Cool isn't it. Example of a scrolling table Here's an example of a scrolling table. Cool isn't it. Here's an example of a scrolling table. Cool isn't it. Example of a scrolling tabl

Tsoureki

This is from Hollywood book pg 84. 🔒 Update 11/4/2023 This worked well: Used ~80 gm half raisins and sultanas Bake 25-30 mins @ 180 C

Garlic bread

This is from Jack recipe pg 143. Notes 7/5/23 Butter  the pan, it stops it sticking. Oil worked well. After shaping and putting in dish, season with salt. When rotating at 15 mins there will be lots of juice, don't worry, it will be absorbed later. 11/4/23 This worked well: 1/2 massive garlic clove 50 gm cheddar cheese, 10 gm parmesan Drizzle olive oil over them just before putting in oven Bake 15 mins @ 200 C, rotate then another 10 mins - it was slightly crispy so you could try 5 mins instead The olive oil drizzle meant I had some liquid to baste with. It was easier pouring that into a cup than spooning it. The bread stuck to the dish a bit so need to do something there.

Error setting up failovers on agents

I was following the section  Set failovers for multiple agents from file in  this article to setup primary and failover servers on some agents. I wanted to flip the primary and failovers around when I got this error on some of them: Note: The error output has been abbreviated. Set-SCOMParentManagementServer : The failover server MGMT_SERVER_ID cannot be the same as the primary server . The agents that were failing had connections to two gateway servers: GW1 was primary and GW2 was the only failover. The solution in this case was to add the line (in red) before the other commands: Set-SCOMParentManagementServer -Agent $Agent -FailoverServer $null Set-SCOMParentManagementServer -Agent $Agent -PrimaryServer $PrimaryServer Set-SCOMParentManagementServer -Agent $Agent -FailoverServer $FailoverServer That's great but why does this happen? I can only think it's a weird SCOM thing where it's seeing GW2 as currently being used  therefore can't re-assign it as primary, so we nee