Posts Tagged ‘powershell’
Login to Azure Active Directory. Locate Usage & insights , under Monitoring
Select “Users registerd for Multi-Factor Authentication”
Can also be done in powershell : https://dirteam.com/sander/2020/05/14/todo-optimize-the-azure-multi-factor-authentication-methods-used-throughout-your-organization/
I have been using this plugin to https://wordpress.org/plugins/pastacode/
highlight some of my programming. I write a bit in Powershell however this is not a supported markup. This is what to add to your functions file of your theme to add another library
You will also need to create a js folder and upload the new .js library from https://codemirror.net/mode/ and prism.js
The Powershell Script History and logs are stored in the following registry location
You will need to navigate to a subtree in their GUID
How do I get the GUID for my Intune Script?
A result was coming Failed with the below
ï¿½ï¿½$ : The term 'ï¿½ï¿½$' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Program Files (x86)\Microsoft Intune Management
On running the scripts get copied here briefly then run and deleted : C:\Program Files (x86)\Microsoft Intune Management Extension\Policies\Scripts
You have to be fast but you can copy the .ps1 file to e.g. C:\Temp and check what the machine was getting , to resolve this issue I had to recopy the file into Powershell ISE and resave and upload.
How to Run the Scripts Manually
Change DownloadCountand ErrorCode to 0 and set Result and ResultDetails to nothing (empty string). After this we just restart the Microsoft Intune Management Extension Service (IntuneManagementExtension) and the script will rerun again on this device