- Find more informations in my blog post on jannikreinhard.com
Remediations play a pivotal role in effective client management, allowing organizations to proactively identify and resolve end-user issues. Additionally, they serve as a valuable tool for enforcing specific settings or configurations that may not be natively supported in Microsoft Intune. However, the process of crafting these scripts can often be intricate and time-consuming.
Imagine a solution where you can simply describe your desired configurations, and a tool generates the necessary scripts for you. If you find this idea appealing and are keen to explore such a solution, this blog is tailored to meet your exact needs.
Jannik Reinhard 💬 💬 |
In the end, the process is remarkably straightforward. The tool generates a detection script and, if desired, a remediation script based on your provided description. It then seamlessly uploads these scripts to your tenant, streamlining the entire process.
- User authentication: The process starts with user authentication, ensuring that only authorized users can upload scripts using the user token
- User describes the purpose of the script: After authentication, the user provides a description of what the script is intended to do.
- Building a prompt with instructions and the description to generate a detection script: This description, along with instructions, is used to build a prompt for GPT-3.5-turbo, which will then generate a detection script based on the input.
- (Optional) Building an additional prompt with instructions, the detection script, and the description to generate a remediation script: Optionally, a further step involves building another prompt that includes the instructions, the detection script that was generated, and the description. This new prompt is for GPT-3.5-turbo to create a remediation script, presumably to address the issues the detection script identified.
- Display at web page: The scripts or the output from GPT-3.5-turbo are then displayed on a web page.
- User presses upload and script will add to tenant: Finally, the user can press an upload button, resulting in the script being added to the tenant.
- Python installed on the system
- GPT enabled Subscription (https://aka.ms/oai/access)
- Rename the secrets.toml.example to secrets.toml
- Once this is done fill out the informations in this file:
- AZURE_OPENAI_KEY = "XXXXXXXXX"
- AZURE_OPENAI_ENDPOINT = "https://YOURENDPOINTNAME.openai.azure.com"
- AZURE_OPENAI_CHATGPT_DEPLOYMENT = "gpt-35-turbo"
- APP_REGISTRATION_ID = "14d82eec-204b-4c2f-b7e8-296a70dab67e" # Default Graph App
If you have a ideas for improvements or for missing features as well as bugs, contact me via my blog, social media or open an issue on the repository with an description of your idea or make an pull request
This is a community repository. There is no guarantee for this. Please check thoroughly before running the scripts.
The tool is completely free and open-usource and licensed nder the Apache 2.0 license. It build based on the streamlit package