Results 1 to 2 of 2
  1. #1
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398

    Calling Microsoft Power Shell from within Access

    I'm trying to call Power Shell from within Access, and I can't get it working. Here is the command line to get Power Shell up,



    C:\Windows\System32\WindowsPowerShell\v1.0\powersh ell.exe -noexit -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto"

    How do I get this executed behind an Access form?

    Thanks in advance!!

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    might be as easy as

    shell(<your statement above>)

    though you will likely have to use " marks and not ' marks in your path name

    see:

    https://support.office.com/en-gb/art...6-6832eadd3c63

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Run Database while hiding Access Shell
    By Sarah88 in forum Programming
    Replies: 1
    Last Post: 08-19-2014, 10:11 AM
  2. Replies: 3
    Last Post: 01-07-2014, 09:57 AM
  3. Replies: 8
    Last Post: 02-05-2013, 02:36 PM
  4. Replies: 37
    Last Post: 09-15-2011, 11:57 AM
  5. Replies: 1
    Last Post: 09-13-2011, 01:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums