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

Adding DeviceConfigurtion/DeviceConfiguration_Copy.ps1 script. #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hirnidrin
Copy link

Script to bulk copy (duplicate, clone) Intune online device configuration policies.

Script asks for 2 params

  • match - regex to filter the current online policies by displayname
  • replace - regex specifying how the displayname of the copied policy shall be changed

Shows the policies that match and would be copied. You are asked to proceed or abort before the (bulk) copying happens, so you can make sure your regexes work as intended.

Example

  • match: -FOO-
  • replace: -BAR-
  • Takes all policies containing "-FOO-" in the displayname, creates copies with names where "-FOO-" is replaced by "-BAR-"

Example

  • match: ^(My DCP)$
  • replace: $1 Copy
  • Takes the policy named "My DCP", creates a copy named "My DCP Copy"

Group assignment is not copied.
No local files involved, just copies online to online.

@msftclas
Copy link

msftclas commented Jun 23, 2019

CLA assistant check
All CLA requirements met.

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

Successfully merging this pull request may close these issues.

2 participants