Lorky`s Blog - Techno ressources and general informations for everyone !

Important

To filter the blog, please use theses tag:
General news. Website related post website. parental-control about technology. technology post.

Note

All blog links are archived here.

Hi everyone Today I had to script a bit inside a Linux VM on Azure. I had to make some test inside a bash script. To my extent I’am not a Linux expert, but I wanted to share a small tip I found. How to find is a variable is empty or unset in BASH ? To find if a variable is SET to empty to a “” string please use the comand : if \[ -z “\$VAR” \]; Another way to write it would be with double bracket : if \[\[ -z \$var \]\] if \[\[ -z “\$var” \]\] if \[\[ ! \$var \]\] if \[\[ ! “\$var” \]\] or that expression would check if it’s with a value : if \[\[ \$var \]\]   Thanks everyone, enjoy the small tip

Continue Reading...

Hi everyone !

Today I wanted to share a quick and handy tip.

If you are stuck with a bug that your MMC don't want to open, services.msc in my example, don't forget you can clear the MMC cache to give it a chance to re-open.

mmc.jpg

To fix it open up MMC.exe, and select that; File->Options->Disk Cleanup->Delete Files

mmc2.png

After that the MMC would load more easily and most of all without errors.

 

Continue Reading...

Hi everyone

I wanted to share a small tip if you still manage older active directory server with powershell.

I stumbled into a Domain Controler today that hasnt the PowerShell's module for ActiveDirectory, I was wondering why, and found out it need to be added as a feature.

We can see the error there when we try to import the module;

ad01.png

If it happen to you, be sure its added as a feature there;

ad02.png

and you select Active Directory for Windows PowerShell there;

ad03.png

Tomorrow I will share a small PowerShell script handy to clean up your Active Directory objects !

 

 

 

Continue Reading...

Hi everyone

I wanted to share a good new, Chromium Edge is now available for Windows 10 IoT/LTSB's build ! We can now finally enjoy it with that build used in enterprise mainly.

You can go get it there ! (https://www.microsoftedgeinsider.com/en-us/download/ )

A plan is there to make it available for older and other OS too. even for the macOS.

Microsoft Edge will now be delivered and updated for all supported versions of Windows and on a more frequent cadence. We also expect this work to enable us to bring Microsoft Edge to other platforms like macOS

A picture of it running at my home lab :)

izvuu.png

Continue Reading...

Hi all !

Today I will share a small tip to resolve when the systray act strangely with the icon cache.

The display I had was like that;

6-1.png

The problem seem to be with a corruption in that registry key value;

HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify

 

The fix is simply to delete those two keys; with a script like that one;

reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams /f

reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream /f

 

If you use roamings profiles it can become harder to fix, as it can be a widespread problem.

To resolve the issue I added a local user GPO the machines that are using the roaming profiles, as such all the profile will be corrected. I didn't used a domain user gpo, as the registry fix must be invoked before explorer.exe start, so I get a better result in a local user GPO.

6-2.png

 

After that tip, all my systray icons are back to normal :)

Continue Reading...