Posted by Mads Dam on 29. J 2023 in Blog
For automation and security purposes, you can create a file with an encrypted password. The encrypted password is only usable with the same user, that creates the file and it has to be on the same machine. So there’s no use in copying the file around and using another user. You could probably also store this string in registry, if you’d like to. I haven’t tried this, though. Create file with encrypted password: Read-Host "Enter password" -AsSecureString |...
Read More »
Posted by Mads Dam on 21. J 2022 in My IT
MacBook Air – space gray M1 (8core CPU / 8core GPU) 16GB RAM 1 TB storage Bought November 2021 Dock connected to 27″ 2540×1440 monitor Magic Keyboard with TouchID What is this? A Mac! In my apartment? In my house?!? Yes. Yes. I know. But when M1 Macs were introduced, I got hooked on power savings, no fan (total silence!)Â and it’s able to run WoW! So for fun, from early 2020 I used an old MacBook Pro (Mid-2012), just to see if I could get used to using...
Read More »
Posted by Mads Dam on 07. J 2022 in Blog
I got an assignment. Remove Google Chrome completely from all computers in the organisation. Even if it’s user-based (aka not admin-installed but user-based) Chrome can be installed in many different way: User-based (AppData\Local) msi-based (msiexec /i googleenterprise.msi /passive /norestart) other-thingie-based (where there’s a setup.exe ensuring updates, I think) The last one and user-based are tricky, when wanting to uninstall every Chrome in the...
Read More »
Posted by Mads Dam on 07. J 2022 in Blog
Running a batch-file, be it .bat or .cmd in ConfigMgr (MEMCM) – there are things you need to know. If your Program in your Package is just Run-This-File.cmd then it’ll be executed in a 32-bit cmd.exe process. And then, if you look for %ProgramFiles% in your batch file, it’ll just give you Program Files (x86) instead of the one you expect. The 64-bit one. Hence – If you want to run a cmd.exe in all 64-bit then do this in your package/program in...
Read More »
Posted by Mads Dam on 23. J 2021 in Blog
Apparently, when you clone a disk in a hardware-cloner (fx to get a bigger disk in an old Mac or upgrade from HDD to SSD), then it’s quite hard to find out HOW to get the mac to use this newly added diskspaces. Disk utility can actually see it, but you can’t seem to resize your APFS container – because it just stays the same. So, after searching for 30-45 minutes I finally found the solution. Repair it first! This is what I did to get my old Macbook Pro...
Read More »