RemkoWeijnen.nl

About Terminal Server, Citrix, Delphi and other stuff

Archive for the ‘PowerShell’ Category

I needed to do a mass password change on imported accounts and decided to do this with Powershell. For some reason (maybe because I am using PowerShell 2.0) I got an unexpected error when using the Password property or the SetPassword method (RandomPassword is a function I wrote that generates Random passwords the meet the Complexity Requirements):

$user.Password = RandomPassword
$user.CommitChanges()

(more…)

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
convert this post to pdf.
  • 0 Comments
  • Filed under: PowerShell
  • When you uninstall Exchange 2007 you need to remove all Mailbox- and Public Folder databases. If you try to remove the Public Folder Database this will fail because there are replicas of the system folders in the Public Folder database. I didn’t find a way to remove these replicas from the Exchange Management GUI but it can be done with the following Powershell Code:

    Get-PublicFolder -Server <exchange server> “\” -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server <exchange server> -Recurse -ErrorAction:SilentlyContinue
    Get-PublicFolder -Server <exchange server> “\Non_Ipm_Subtree” -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server <exchange server> -Recurse -ErrorAction:SilentlyContinue
    Get-PublicFolder -Server <exchange server> “\Non_Ipm_Subtree” -Recurse -ResultSize:Unlimited | Remove-PublicFolder -Server <exchange server> -Recurse -ErrorAction:SilentlyContinue

    (change <exchange server> to the name of your Exchange Server)

    VN:F [1.9.3_1094]
    Rating: 0.0/10 (0 votes cast)
    VN:F [1.9.3_1094]
    Rating: 0 (from 0 votes)
    convert this post to pdf.

    Paypal Donation

    Amount:
    Website(Optional):


    Categories


    Archives


    Views


    Tags

    bug Business Citrix datastore dsn error error 26009 Installation Java jre jvm LinkedIn Objects referall was returned SasLibEx script slow Switch Terminal Server TSAdmin TSAdminEx Unattended VBS Versions Vista Windows Vista WLAN WTSWaitSystemEvent wts_event_flush

    Blogroll