Mattias Cedervall (@M_Cedervall) profile picture

A little bit of everything, C#, MEMCM, scripting. Working at @Onevinn #WeAreOnevinn

Stockholm, Sverige
Joined September 2011
Photo by Mattias Cedervall (@M_Cedervall)Photo by Mattias Cedervall (@M_Cedervall)Photo by Mattias Cedervall (@M_Cedervall)Photo by Mattias Cedervall (@M_Cedervall)Photo by Mattias Cedervall (@M_Cedervall)Photo by Mattias Cedervall (@M_Cedervall)Photo by Mattias Cedervall (@M_Cedervall)Photo by Mattias Cedervall (@M_Cedervall)Photo by Mattias Cedervall (@M_Cedervall)Photo by Mattias Cedervall (@M_Cedervall)
New blog post: Knowledge gained while decrypting the TSEnvironment. tinyurl.com/tfvrbne #ConfigMgr #MEMCM
3
13
1
33
Take 3! Download any MS Store app and save it as an AppX package using #PowerShell. Now without any 3rd party involvement getting the URLs.🙂 Also works for the newer .exe package type. tinyurl.com/36a87m88 #ConfigMgr #MEMCM #WeAreOnevinn #Intune
5
39
175
12,455
Download any free App from the MS store and save it as an Appx package using #PowerShell Updated the script to work with the current API. tinyurl.com/27eryweh #SCCM #ConfigMgr #MEMCM #AppX #intune
3
34
3
144
11,753
I think I just found a way of getting the links with no 3rd party involved. :D #SCCM #ConfigMgr #MEMCM #AppX #Intune #WeAreOnevinn
2
348
@infra_open openinfra.com/status/driftst… Precis då dök även nätet för mig och minst en granne till. Haninge, eller Tungelsta för att vara mer exakt...
1
Issue with #20H2, non-UEFI and refresh. If the OSDisk is D: in WinPE all junctions will still point to D: once the #OSD is done. So here's an experimental #powershell module, all .NET, that can change a junction... And actually get the target. 🙄 #Memcm powershellgallery.com/packag…
1
5
14
Had issues passing params such as [switch] to "invoke-command" while trying to run a #powershell function on a remote computer? Alpha at the best, but feel free to try it out. :) #Memcm #ConfigMgr github.com/MattiasC85/Script…
1
1
5
If anyone know a better way I would be more than glad to be educated. 👍 I've run in to this very problem every once in a while and it is getting more annoying for each time 😅
Very situational. But besides having Covid twice the last year this is one of a few WindowsUpdate #powershell scripts I've been working on. Restart-AndUpdate. Will finalize a feature update deployed using WU/WUFB. Soon done :) #ConfigMgr #Memcm
3
1
14
Just wanted to make sure that I could get it to work remotely. Don't know why but I've never had the need for that before 😄 Looking good and I've learned a lot... Like switch params can be a *beeep* while using invoke-command. At least with "ParameterSetName". 🤔
Is there any known issue with co-managed windows 10 170x and 180x not getting the #intune management extension installed? #MEMCM
2
Interesting fact, computers will run the script if: 1. I manually install the #intune management extension. 2. Move the app workload to intune. But again, the computers ain't on preem and no CMG. #WFH. And this issue does not affect computers with 1909 or 20H2 😲 #MEMCM
1
Me and my big mouth. Laws of attraction.
3
2
Having 10-15mins freezes once per reboot after upgrading to #20H2 but only when you #WFH and without a VPN connection..? It might be a mapped network drive that is causing it. github.com/MattiasC85/Script… #ConfigMgr #MEMCM
5
19
Would this be enough to fulfill the copyright disclaimer ? 🙂 @mrhestew #SDB2XML #Appraiser
With the October patch and certificates disappearing this might have other uses as well. Like make a device MDM reenroll instead of an OS rollback in case the MDM cert goes missing. Haven't had the need myself though someguy100.wixsite.com/sccm8… #ConfigMgr #MEMCM
1
3
Playing hide and seek with window handles *Hide/Show any window at will. *Min/Max whatever you want to. *Find windows belonging to a process. *Set any window topmost. *Start a process hidden and show it whenever you want to. github.com/MattiasC85/Window… #Tool #ConfigMgr #csharp
2
3
6
What tard creates an application which can hide and show windows belonging to other processes but doesn't provide a way to suppress the console window of the application in question!? Well, that would be me! :P Making amends, soon done. #CSharp #ConfigMgr #MemCM
3
1
10
Would have been done months ago, but those pesky UWP/Modern apps isn't making things easier. 😅 Especially if you want to make something like this work in userland.
1
Never use Forms.SendKeys to get back to the prompt from AttachConsole. Learned that the hard way.😅 Instead: const uint WM_CHAR = 0x0102; const int VK_ENTER = 0x0D; IntPtr hwnd=GetConsoleWindow(); SendMessage(hwnd, WM_CHAR, (IntPtr)VK_ENTER,IntPtr.Zero); #csharp
1
3
Is there any known bug which causes the "Restart computer"-step to put a computer in a sleep state instead? Only seems to happen in the FullOS phase (1909) and seeing this mostly on #Dell 3310's but also on 3300's. The moment you wake it, the TS continues...😮 #ConfigMgr #MemCM
4
4
I have confimed that it has been like that ever since CM v. 1906 and all the way to our current version, v. 2002. So it seems to be more related to a computer model/OS combination. Even so, still strange and something that I haven't stumbled upon before.
2
Finally done, or at least I hope so. A #csharp solution with a #PowerShell wrapper to get and set resolution and scale for each monitor. Seems to work in #winpe as well... #Memcm #ConfigMgr someguy100.wixsite.com/sccm8…
2
10
22
Get or Set the resolution as well as listing the current, possible and recommended scales for each monitor. Even works in #WinPE Todo (but soon done) : Set the scale per monitor. someguy100.wixsite.com/sccm8… #PowerShell #ConfigMgr #Csharp
4
8
22