Hi,
I am trying to write a script which i can add to the start menu for a self service telephone number update.
Heres what i have so far, doesn't seem to want to work at the moment, it prompts for the details but thats about it:
Import-Module ActiveDirectory
$User = Read-Host -Prompt "Please enter your username"
$Phone = Read-Host -Prompt "Please enter your phone number"
Set-ADUser $User.SamAccountName -homePhone $Phone.homePhone