Category: PowerShell
-

Do you backup/export your Intune policies – encrypted?
Since a while ago I encountered that Microsoft Graph returns some policies encrypted during an export to JSON. Using these exports in a backup and restore scenario will not work! More specifially this happens in windows10CustomConfiguration if consists of a row with a string, the export might look something like this while using the Intune…
-

Backup BitLocker recovery key to Azure AD?
Converting from storing your BitLocker keys in Active Directory to Azure AD? Good choice, together with Microsoft Intune you are very well positioned to manage BitLocker, with support of Key rotation from Intune and client side. But maybe you noticed that not all your Windows device have stored the keys in Azure AD? No problem…
-

Don’t wrap DsRegCmd with PowerShell – Use this to get Azure AD information from the local computer
I don’t know how many times I’ve seen scripts that is trying to wrap dsregcmd /status output to get information such as tenant Id, check if the computer is joined to Azure AD and more But isn’t there a better way? So started looking, for sure, some information are found in registry, but that’s a…
-

Get join information with PowerShell – the hard way
Why make it simple when you can make it the hard way?– Because you can? 🙂 The reason for why I needed this is not relevant, but the options when you get information from your computer is. Quite often there are multiple ways to get information: Pure PowerShell commands, registry, environment variables, running cmd/3rd party…
-

Convert OneDrive to per-machine installation
I recently updated my Update-OneDrive.ps1 script on GitHub to update to the latest OneDrive version and convert current installation to per-machine installation. Have a look and any feedback and contributions are welcome! This script will take care about your current running machines and can be deployed by PowerShell script or win32-application. Implementation with Intune Win32 app…
-

Friday fun with Intune: Remove dependency to BGInfo
I was playing around with Sysinternals BGInfo and stumbled upon a post describing how to remove the dependency to BGInfo and did some testing – why not deploy this with Intune? Some customers demand some information on the background such as phone number to Service Desk, Username and Computer name. And with Intune this is…
-

Release of DeployWindows public GitHub!
To be able to handle the future and high work load we all need to learn PowerShell, and share our scripts and knowledge. With PowerShell you can more or less do anything on the Windows, Linux or macOS platform. I took a look in my PowerShell script folder and there are more than 400 scripts…
-

Want to become a Windows 10 Toast/Balloon expert – With or without Microsoft Intune
When deploying a script to users it might be a thing to inform them about what and when the change has been made. See the screenshots how the toast, balloon or popup message might look like I have an old post regarding toasts but now I thought it might a be a good idea to…
-

Update all packages and applications in ConfigMgr
If you for any reason need to update all packages and applications in Configuration Manager, there are some ways to do this with PowerShell. If you never used PowerShell with ConfigMgr before, you can start PowerShell connected to your environment from the console. In most cases I use the PowerShell command prompt only, but the…
