Powershell Moving Users between OUs based on conditions<\/p>\n
Hi, I am just starting out writing powershell scripts. I want to know a good approach to use to tackle a script that will conditionally move users between OUs based on vacation dates (namely a Departure and Return date).<\/p>\n
I was thinking of using the extensionAttributes to store the dates.<\/p>\n
I really want to write this, but I could use a good push in the right direction or to know if this is even possible.<\/p>","upvoteCount":8,"answerCount":6,"datePublished":"2019-06-17T10:25:50.000Z","author":{"@type":"Person","name":"veyderx","url":"https://community.spiceworks.com/u/veyderx"},"suggestedAnswer":[{"@type":"Answer","text":"
Powershell Moving Users between OUs based on conditions<\/p>\n
Hi, I am just starting out writing powershell scripts. I want to know a good approach to use to tackle a script that will conditionally move users between OUs based on vacation dates (namely a Departure and Return date).<\/p>\n
I was thinking of using the extensionAttributes to store the dates.<\/p>\n
I really want to write this, but I could use a good push in the right direction or to know if this is even possible.<\/p>","upvoteCount":8,"datePublished":"2019-06-17T10:25:50.000Z","url":"https://community.spiceworks.com/t/powershell-moving-users-between-ous-based-on-conditions/716675/1","author":{"@type":"Person","name":"veyderx","url":"https://community.spiceworks.com/u/veyderx"}},{"@type":"Answer","text":"
What have you tried? Where are you stuck?<\/p>\n
Since you have seemingly all the requirements already defined, write code that does what each point lists?<\/p>\n
If you need help, post the code you have and we’ll go from there.<\/p>\n
If you post code, please use the ‘Insert Code’ button. Please and thank you!<\/p>\n