Advertisement
Guest User

Untitled

a guest
Aug 27th, 2015
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. [string]$callCN = $env:computername
  2. Write-Host "Invoking machine: " $callCN
  3. Invoke-Command -ComputerName S6084jvh0fc1 -ScriptBlock {& "C:scriptLaunch Query.ps1" $callCN}
  4.  
  5. param([string]$cm)
  6. Write-Host "Comp Name On remote: " $cm
  7.  
  8. Invoking machine: S6084J45FRY1
  9. Comp Name On remote:
  10.  
  11. [string]$callCN = $env:computername
  12. Write-Host "Invoking machine: " $callCN
  13. Invoke-Command -ComputerName S6084jvh0fc1 -ScriptBlock {& "C:scriptLaunch Query.ps1" $env:computername}
  14.  
  15. Invoking machine: S6084J45FRY1
  16. Comp Name On remote: S6084JVH0FC1
  17.  
  18. [string]$callCN = $env:computername
  19. Write-Host "Invoking machine: " $callCN
  20. Invoke-Command -ComputerName S6084jvh0fc1 -ScriptBlock {& "C:scriptLaunch Query.ps1" "12345"}
  21.  
  22. Invoking machine: S6084J45FRY1
  23. Comp Name On remote: 12345
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement