Difference between revisions of "Power Shell"

Jump to navigation Jump to search
m (→‎Get-Credential: Fix typo)
Line 135: Line 135:
* http://technet.microsoft.com/en-us/library/dd819512.aspx
* http://technet.microsoft.com/en-us/library/dd819512.aspx
* Converts encrypted standard strings to secure strings
* Converts encrypted standard strings to secure strings
The following example creates a Credential object that can be used for in place of <code> Get_Credential </code>
<source lang="powershell">
$pass = ConvertTo-SecureString $svr.pass -asplaintext -force
$cred = New-Object -typename System.Management.Automation.PSCredential -argumentlist $svr.user,$pass
</source>


== WMI ==
== WMI ==