Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Permissions on Invoke-Command
Post Flair (click to view more posts with a particular flair)
Post Body

Hello guys,

I want to get the certificates on several servers like this :

$listcert = Invoke-Command -ComputerName $computername -ScriptBlock { Get-ChildItem -Path cert: -Recurse -ExpiringInDays 30 }

On many servers, I got an error telling me WinRM doesn't allow the connection.

My environnement can't allow me to modify the permissions, so can we use a Cim-Session or something else to run that ?

I tried to do it with a PSSession but no results

Thanks

SOLVED : Powershell is on v2.0

Author
Account Strength
100%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
3,359
Link Karma
1,467
Comment Karma
1,892
Profile updated: 3 days ago
Posts updated: 10 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 years ago