Jump to content

Search the Community

Showing results for tags 'powershell exchange '.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. OK I've been searching around on the forums trying to find a good example of how to get AutoIt and powershell talking in a way that will let me build what I want but am having trouble getting exactly what I need. In order to simplify some stuff I'm trying to build what is a essentially a multi source person lookup/administration tool that draws data from various sources (databases/ldap/AD/Exchange) Most of the stuff is easy and works fine and with the AD.au3 I can query and even modify a few things there pretty easily. the problem is for most Exchange tasks I need to use powershell commands. Since I need the exchange plugins to be loaded I don't want to constantly restart powershell and since this is a one-off type lookup tool writing one script that autoit launches also doesn't work I need it to fire off individual commands to PS and get the results back from the same powershell window or app. somewhere I found one example that kinda did this and used the clip board to mule data between autoit or to write to a file then read that file but it would be nice to have something more robust than that to get the data back and to catch errors. for example I have some powershell stuff I wrote that I want to merge into this new tool here is one step in part of a function which hides a contact object from the global address list: #hide from the GAL $txt_full2cal_output.lines += "Hiding contact from GAL..." $form1.refresh() Set-MailContact -Identity $UsName -HiddenFromAddressListsEnabled $true -DomainController $script:dc if (!$?) { $txt_full2cal_output.lines += "ERROR: Hide " + $UsName + " from GAL failed." } In the new app I would handle the interface and logic in autoit and presumably just run the "Set-MailContact -Identity $UsName -HiddenFromAddressListsEnabled $true -DomainController" command from autoit with the variables populated from autoit. I would then need just need a success/fail back so I could then either move to the next step or initiate error handleing. now another operation i need would be getting data back. for example a user's quota : $mailboxCheck = Get-Mailbox -Identity $userPID -DomainController $script:dc $quota = $mailboxCheck.IssueWarningQuota.Value.ToKB() i'm not sure how to do this one one line but the autoit app would pretty much have a "get quota" button that would query a users quota and return it to the interface. in this case I will need to do a check first to make sure the object exists and has an exchange account then run the get quota code and somehow return that to autoit. If some kind souls out there can help me get these two use cases going the rest should be pretty easy EDIT: in a seperate thought has anyone integrated autoit with C# ? apparantly C# has some nice integration with powershell with a runspacefactory http://andrusdevelopment.blogspot.com/2008/02/running-powershell-in-c.html potentially I could make a C# type service that can middleman powershell for me . anyone tried this ?
×
×
  • Create New...