32 or 64 bit version of product: 32
Operating system: Win7
32 or 64 bit OS: 32
$PSVersionTable:
Name Value
---- -----
PSVersion 3.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.42000
BuildVersion 6.2.9200.22198
PSCompatibleVersions {1.0, 2.0, 3.0}
PSRemotingProtocolVersion 2.2
PowerShell ISE $Profile connection script (which works completely fine):
Code: Select all
$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionURI http://ServerURL/PowerShell -Authentication Kerberos
Import-PSSession $s
===========================================
I've been trying to get PSS to run exchange commands since I purchased the product a couple of weeks ago, and have not been successful. I've scowered these forums to no avail, I've Googled, and Google brings me back to these forums.
I've tried the following from this post: https://www.sapien.com/forums/viewtopic.php?f=12&t=12621&p=67858&hilit=%24profile#p67858
1) Load ISE and get temp filename for the module
2) Open PSS, On the Home tab, Edit Cache
3) In the Cache Editor, Import Module
4) Browse to temp filename for the .psd1 (in both my appdata\local\temp folder, as well as a saved copy on my Desktop)
5) Once I see it in the list (it even has a description of 'Implicit remoting for http://ServerURL/PowerShell' - same URL as in $Profile) I ensure it's checked off
6) Clicked on Build Cache and then close window
7) Refreshed Cache with the little green recycle-looking button on home tab
8) Edit Cache again to confirm temp is still there and checked
After all of this, including using the New-PSSeission connection as above included right in my .ps1 script (which only ends up loading a new temp .psd1), I cannot get it to recognize exchange commands like get-mailbox. PrimalSense doesn't see it, and even running it with Shift-F8 it gives me 'not recognized as the name of a cmdlet...'
Why does this $400 program make it so difficult when you can get it running in ISE so easily? Even the actual console in PSS works fine, but the actual New PowerShell Script and PrimalSense just won't see it
Can anyone please tell me what I'm missing here?