Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeviceRoles #202

Closed
rmiller-ch opened this issue Dec 30, 2024 · 1 comment
Closed

DeviceRoles #202

rmiller-ch opened this issue Dec 30, 2024 · 1 comment

Comments

@rmiller-ch
Copy link

How do I use the device role feature, there seems to be limited documentation and I am wondering if this is performed differently or if its an MDT thing. I would like to set device roles based on (General User - Laptop, General User - Desktop, Specialized - Laptop, etc.) and then have it assign the MachineObjectOU and Join the domain and bypass those parts in the PSDWizard. Any help would be great.

@PowerShellCrack
Copy link
Contributor

I saw this opened and wanted to comment on it. I see you closed it but still felt I should provide some context. the Device Roles in the PSDWizard does nothing but merely set a variable. The same goes for the Intune Groups page as well. These variables can be used, however, with some automation later or in the Task sequence.

Now for your ask on bypassing parts of the PSDWizard. This can be done using the skip options (see https://github.com/FriendsOfMDT/PSD/blob/CurrentDev/Documentation/PowerShell%20Deployment%20-%20PSD%20Wizard%20Guide.md) and with some creative scripting, you could have the role selection that does all the things you mention and skip the domain section and other parts of the PSDWizard. This can't be done dynamically from within the wizard but can be controlled via CustomSettings.ini.

We haven't provided the automation scripts in the repo but we are looking into adding some documentation around it and maybe some examples. If you interesting in learning more; i recommend setting up RestPS and start testing some code there. Here are some links to get your started:

With all that, I am working incorporating a roles selection option in the deployment readiness page, that "pre-selects" all the items that can be set in the wizard. However, I haven't decided the best method of implementing this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants