Difference between revisions of "Power Shell"

Jump to navigation Jump to search
94 bytes added ,  11:31, 18 February 2010
m
→‎ConvertTo-SecureString: Added WMI command to example
m (→‎ConvertTo-SecureString: Added WMI command to example)
Line 139: Line 139:
$pass = ConvertTo-SecureString $svr.pass -asplaintext -force
$pass = ConvertTo-SecureString $svr.pass -asplaintext -force
$cred = New-Object -typename System.Management.Automation.PSCredential -argumentlist $svr.user,$pass
$cred = New-Object -typename System.Management.Automation.PSCredential -argumentlist $svr.user,$pass
$wmiobj = Get-WMIObject -query "SELECT * FROM Win32_BIOS" -credential $cred -computer $svr.ip
</source>
</source>


Navigation menu