Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [string]$callCN = $env:computername
- Write-Host "Invoking machine: " $callCN
- Invoke-Command -ComputerName S6084jvh0fc1 -ScriptBlock {& "C:scriptLaunch Query.ps1" $callCN}
- param([string]$cm)
- Write-Host "Comp Name On remote: " $cm
- Invoking machine: S6084J45FRY1
- Comp Name On remote:
- [string]$callCN = $env:computername
- Write-Host "Invoking machine: " $callCN
- Invoke-Command -ComputerName S6084jvh0fc1 -ScriptBlock {& "C:scriptLaunch Query.ps1" $env:computername}
- Invoking machine: S6084J45FRY1
- Comp Name On remote: S6084JVH0FC1
- [string]$callCN = $env:computername
- Write-Host "Invoking machine: " $callCN
- Invoke-Command -ComputerName S6084jvh0fc1 -ScriptBlock {& "C:scriptLaunch Query.ps1" "12345"}
- Invoking machine: S6084J45FRY1
- Comp Name On remote: 12345
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement