You are here: > PowerShell > PowerShell 1.0 > Get-Credential
ActiveXperts Network Monitor 2015 proactively manages network servers, devices, databases and more.

Get-Credential - PowerShell 1.0

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.


Back up your Hyper-V VMs Easy & Fast. 100% built for Hyper-V. Free for 2 VMs, forever.


       A user name e.g."User01" or "Domain01\User01"

       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutVariable.

Get a credential and save into a variable:

PS C:\>$ss64Cred = Get-Credential

Use the credential object (already stored in a variable) to run a Get-WmiObject command:

PS C:\>Get-WmiObject Win32_DiskDrive -ComputerName Server01 -Credential $ss64Cred

Including a Get-Credential command in a Get-WmiObject command:

PS C:\>Get-WmiObject Win32_DiskDrive -ComputerName Server01 -Credential (get-credential Domain01\User64)