microsoft / CSS-Exchange

Exchange Server support tools and scripts
MIT License
1.22k stars 340 forks source link

[Issue]Test-ProxyLogon.ps1 Exchange 2010 #144

Closed greenstreak20 closed 3 years ago

greenstreak20 commented 3 years ago

The provided script fails. Following is the output. How can I resolved the issue?

[PS] C:\Windows\system32>Get-ExchangeServer | ".\Test-ProxyLogon.ps1" -OutPath $home\desktop\logs You must provide a value expression on the right-hand side of the '-' operator. At line:1 char:47

bill-long commented 3 years ago

I don't see any problem with the syntax. Did invisible characters sneak in? I would try typing it out by hand rather than copy/pasting.

greenstreak20 commented 3 years ago

I’ll give it a try and let you know.

Thanks.

[http://vm-shrpntprod/signaturecreator/greenline.png] Wesley T. Hinkle, ITIL Network Infrastructure Manager Sterne, Kessler, Goldstein & Fox P.L.L.C.http://www.sternekessler.com/ Email: whinkle@sternekessler.commailto:whinkle@sternekessler.com Direct: 202.772.8917 Main: 202.371.2600

From: Bill Long notifications@github.com Sent: Monday, March 8, 2021 11:02 AM To: microsoft/CSS-Exchange CSS-Exchange@noreply.github.com Cc: Wesley T. Hinkle WHINKLE@sternekessler.com; Author author@noreply.github.com Subject: Re: [microsoft/CSS-Exchange] [Issue]Test-ProxyLogon.ps1 Exchange 2010 (#144)

EXTERNAL EMAIL: Use caution before clicking links or attachments.

I don't see any problem with the syntax. Did invisible characters sneak in? I would try typing it out by hand rather than copy/pasting.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/CSS-Exchange/issues/144#issuecomment-792856970, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATEM423SUZUS5GRXHOED2GDTCTYF3ANCNFSM4YZRSDWQ.

greenstreak20 commented 3 years ago

Bill,

Typing as opposed to c/p helped, but I get the following output. Forgive the questions, PS is not my normal job and the associated team is not responding, but I need to get his calidate.

Thanks

[PS] C:\Install\Exchange Vul 3-21>Get-ExchangeServer | .\Test-ProxyLogon.ps1 -OutPath $HOME\desktop\logs Unable to find type [pscredential]: make sure that the assembly containing this type is loaded. At C:\Install\Exchange Vul 3-21\Test-ProxyLogon.ps1:84 char:27

[http://vm-shrpntprod/signaturecreator/greenline.png] Wesley T. Hinkle, ITIL Network Infrastructure Manager Sterne, Kessler, Goldstein & Fox P.L.L.C.http://www.sternekessler.com/ Email: whinkle@sternekessler.commailto:whinkle@sternekessler.com Direct: 202.772.8917 Main: 202.371.2600

From: Bill Long notifications@github.com Sent: Monday, March 8, 2021 11:02 AM To: microsoft/CSS-Exchange CSS-Exchange@noreply.github.com Cc: Wesley T. Hinkle WHINKLE@sternekessler.com; Author author@noreply.github.com Subject: Re: [microsoft/CSS-Exchange] [Issue]Test-ProxyLogon.ps1 Exchange 2010 (#144)

EXTERNAL EMAIL: Use caution before clicking links or attachments.

I don't see any problem with the syntax. Did invisible characters sneak in? I would try typing it out by hand rather than copy/pasting.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/CSS-Exchange/issues/144#issuecomment-792856970, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATEM423SUZUS5GRXHOED2GDTCTYF3ANCNFSM4YZRSDWQ.

jakewalkeruct commented 3 years ago

I am receiving the same error as above when trying to run the script on Exch 2010. Running Exch Mgmt Shell as admin.

Unable to find type [pscredential]: make sure that the assembly containing this type is loaded. At C:\XXXXX\HAFNIUM Test Scipts\Test-ProxyLogon.ps1:84 char:27

bill-long commented 3 years ago

For the pscredential error please see #108

bill-long commented 3 years ago

This has turned into a duplicate of #108 so closing it.

greenstreak20 commented 3 years ago

Thanks!

[http://vm-shrpntprod/signaturecreator/greenline.png] Wesley T. Hinkle, ITIL Network Infrastructure Manager Sterne, Kessler, Goldstein & Fox P.L.L.C.http://www.sternekessler.com/ Email: whinkle@sternekessler.commailto:whinkle@sternekessler.com Direct: 202.772.8917 Main: 202.371.2600

From: Bill Long notifications@github.com Sent: Monday, March 8, 2021 12:44 PM To: microsoft/CSS-Exchange CSS-Exchange@noreply.github.com Cc: Wesley T. Hinkle WHINKLE@sternekessler.com; Author author@noreply.github.com Subject: Re: [microsoft/CSS-Exchange] [Issue]Test-ProxyLogon.ps1 Exchange 2010 (#144)

EXTERNAL EMAIL: Use caution before clicking links or attachments.

Closed #144https://github.com/microsoft/CSS-Exchange/issues/144.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/CSS-Exchange/issues/144#event-4422632307, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATEM423T4HUVFFYVE6437KTTCUEHNANCNFSM4YZRSDWQ.