kblumen
asked on
Script to TEL URI for OCS from a list (of incrementing numbers)
We simply need to be able to script incrementing Tel Uri's...
For example
tel:+9000
tel:+9001
tel:+9002
tel:+9003 ...
This is temporary so it is alphabetical (by first name)
For example
tel:+9000
tel:+9001
tel:+9002
tel:+9003 ...
This is temporary so it is alphabetical (by first name)
I'm a bit confused. What do you want the script to *do* with the incrementing numbers it generates?
ASKER
I have a list of incrementing numbers... I need to add them to the Tel Uri for OCS in AD
So you want to walk through AD and add your numbers to every user AD object it encounters for enterprise voice? Do you want to restrict to a specific OU? Are these users already enabled for enterprise voice?
ASKER
yes most are already enabled for enterprise voice.. it would be nice to restrict via OU
Then I think your best bet is to use PowerShell v2, more specifically the Set-ItemProperty cmdlet in a loop through an AD collection
More on that cmdlet:
http://technet.microsoft.com/en-us/library/dd315383.aspx
More on that cmdlet:
http://technet.microsoft.com/en-us/library/dd315383.aspx
ASKER
I wish I was skilled in PS enough to knock that out. Any help with the syntax that you might be able to offer?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yeah thanks for the effort but I would be hard pressed to slap that together "safely". I would leave that to you experts. but thanks for the help.
ASKER
Any ideas on how to make this loop. I wish I could write this script by myself but I fear the results.
If you want to write the script and post it here first, I'd be happy to do a code review. I don't, however, write scripts for people on EE. I will help lead them down the path, and provide constructive pointers, but I definitely follow the "it is better to teach a man to fish" mantra, and if I write the entire script myself then I'm simply giving away a service that others charge for and that is money out of their pocket. I hope you understand.
Maybe somebody else will be more willing to post, and if so, more power to them. And, as I said, if you want to make a go of it, I'd happily provide a peer review. There is just that one line I won't cross. Apologies for the inconvenience.
Maybe somebody else will be more willing to post, and if so, more power to them. And, as I said, if you want to make a go of it, I'd happily provide a peer review. There is just that one line I won't cross. Apologies for the inconvenience.
ASKER
ok ill give it a go and post what I come up with.