Difference between revisions of "Creating a PSCredential object"
From MyWiki
Jump to:
navigation
,
search
Revision as of 21:22, 8 November 2014
(
view source
)
George2
(
Talk
|
contribs
)
← Older edit
Latest revision as of 11:00, 22 February 2019
(
view source
)
George2
(
Talk
|
contribs
)
(Blanked the page)
Line 1:
Line 1:
−
<source lang="text">
−
$secpasswd = ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force
−
$mycreds = New-Object System.Management.Automation.PSCredential ("username", $secpasswd)
−
You can now pass $mycreds to any -PSCredential input parameter
−
</source>
Latest revision as of 11:00, 22 February 2019
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
Actions
Search
Navigation
Main page
Recent changes
Random page
Help
Tools
What links here
Related changes
Special pages
Printable version
Permanent link
Page information