Skip to content Skip to sidebar Skip to footer

How Can I Run Command In Microsoft Exchange Server Powershell Through Python Script?

I want to check the number of mailbox in Microsoft Exchange Server. This command works fine in standard cmd.exe: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' -comman

Solution 1:

I ran into the exact same problem under slightly different circumstances but the error message was identical. I was trying to provision MS Exchange via Puppet and Powershell scripts. You are suffering from the side effects of the File System Redirector (Windows) which runs silently. Apparently 64-bit registry keys can't be accessed by 32-bit programs and the File System Redirector will change things up on you without you even knowing it.

I found this to be an elegant solution for my situation:

32-bit applications can access the native system directory by substituting %windir%\Sysnative for %windir%\System32. WOW64 recognizes Sysnative as a special alias used to indicate that the file system should not redirect the access. This mechanism is flexible and easy to use, therefore, it is the recommended mechanism to bypass file system redirection. Note that 64-bit applications cannot use the Sysnative alias as it is a virtual directory not a real one.


Post a Comment for "How Can I Run Command In Microsoft Exchange Server Powershell Through Python Script?"