Arunim Pandey
Arunim Pandey

Reputation: 11

Enable-PSSession without credentials in hyper-v vm

I want to access the Hyper-V VM without user credentials(without user name and password). Is there any way or PowerShell script or command to achieve this?

Upvotes: 1

Views: 1000

Answers (2)

montonero
montonero

Reputation: 1761

You can try to use a parameter -Authentication NegotiateWithImplicitCredentials.

Upvotes: 1

T-Me
T-Me

Reputation: 1884

The credential-parameter is not mandatory. If you don't use it, the pssession will be created with your current user. If this user has the permission to access the remote server, the credentials aren't needed.

If you need an other user for the pssession, you need credentials. However you can create a credential object ($cred = Get-Credential) to store the credentials for longer powershell sessions where you need them repeatedly.

Upvotes: 1

Related Questions