On the local machine, create PowerShell script "remoteLaunchAppRemover.ps1" as below:.Copy the Application Removal package into the remote machine.The same setup process as step 1, 2 and 3 of the diagnose example above. Step by step usage for Application Removal: The result files would be generated on the remote machine, in the same folder as the WaDiagnose executable. The PowerShell script would be executed on the remote machine and launch OESIS Diagnose.On a local machine, launch "remoteLaunchWaDiagnose.ps1" in PowerShell as seen below:.$Job = Invoke-Command -Session $Session -Scriptblock $Script $Session = New-PSSession -ComputerName $ComputerName -credential $Cred $Cred = New-Object -TypeName "" -ArgumentList $Username, $SecurePassword $SecurePassword = ConvertTo-SecureString -AsPlainText $Password -Force On a local machine, create PowerShell script "remoteLaunchWaDiagnose.ps1" as seen below:.Copy diagnose package (including the WaDiagnose.exe) into the remote machine. PS C:\Windows\system32> Set-ExecutionPolicy RemoteSigned
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |