blogging about…… Microsoft, Cloud Computing and all other things I find interesting
I have some users in AD, which had a wrong Telephone property specified. The value was correct specified in the Mobile Phone property, so I wanted to copy this value from every user into the Telephone property. A picture says more than a 1000 words. Off course, PowerShell comes to mind. First I tried it [...]
In: Uncategorized
5 May 2010You can create a PowerShell profile to set your environment (aliases, modules you want to import, functions,etc..) First of all check if a profile already exists with the command test-path $profile This will return true or false. If no profile exists you can create one with the following command: new-item -type file -path $profile -force [...]
In: Uncategorized
4 May 2010When I wanted to create a test user for SCOM 2007 to monitor Exchange, I constantly ran into the error (whenever I ran the script new-TestCasconnectivityUser.ps1): CreateTestUser : Mailbox could not be created. Verify that OU ‘Users’ exists and that password meets complexity requirements. I checked google, and all solutions pointed to the fact that [...]
In: Uncategorized
6 Apr 2010I’ve been following Ravikanth Chaganti blog. He had a great series of posts about PowerShell Remoting. These set of articles are now bundled into one eBook. If you are interested in Powershell I suggest you download his ebook.
I wanted to write a powershell script to retrieve the last logon property of an Active Directory User. Here is how I came to the final script. First of all: to get the domain users, use the command: Get-QADUser This will return a list of all the domain users. As it will not return the [...]