No announcements
Found 1963028 threads
-
1 Votes
Discrepancy between local execution and invoke-command
Now that I've found and fixed the issue with the group policy, it's all working - both locally and via 'invoke-command'.Answered | 26 Replies | 741 Views | Created by Bear_GTO - Wednesday, March 18, 2020 4:29 AM | Last reply by Bear_GTO - Friday, March 20, 2020 9:01 PM -
0 Votes
Output to local text file for Invoke-Command
Consider the simplified version of this: $servers = 'server1','server2' $sb={ Get-ChildItem -path cert:\localmachine\my -Recurse | where { ...Answered | 4 Replies | 7244 Views | Created by Mr P - Thursday, June 30, 2016 10:13 AM | Last reply by jrv - Thursday, June 30, 2016 2:22 PM -
0 Votes
Invoke-Command to run a command on a remote server
Run the script with the appropriate privileges.Answered | 4 Replies | 2206 Views | Created by Champs League - Saturday, June 25, 2016 12:18 AM | Last reply by rockroada - Monday, August 13, 2018 5:21 PM -
0 Votes
Invoke command via script
$cred) { $cred = ...Answered | 2 Replies | 879 Views | Created by John Wenzel - Wednesday, May 4, 2016 8:55 PM | Last reply by Elaine Jing - Friday, May 6, 2016 9:36 AM -
0 Votes
Invoke-command
You should verify, if invoke-command -computername cm-fs02 -scriptblock {Write-Host "D:\Users\[ CL10 ]\[ Students ]\[ Year Intake 2015 ...Answered | 7 Replies | 1241 Views | Created by Shane W - Wednesday, March 23, 2016 8:08 AM | Last reply by jrv - Wednesday, March 23, 2016 9:01 PM -
0 Votes
Invoke-Command Get-Counter
The documentation for Invoke-Command says it returns "the type of the object that the cmdlet emits" so the first line should run.Answered | 16 Replies | 2998 Views | Created by ThomasICG - Monday, January 27, 2014 1:57 PM | Last reply by ThomasICG - Tuesday, January 28, 2014 9:11 PM -
0 Votes
Invoke-Command Execution Policy
If you read the previous posts, you will see that the execution policy is only enforced when a script is run locally on the machine.Answered | 8 Replies | 11637 Views | Created by brian11x - Friday, October 5, 2012 8:27 PM | Last reply by RiffyRiot - Wednesday, October 10, 2012 6:32 PM -
0 Votes
Powershell invoke-command
To use invoke-command and target a remote machine, the local and remote must be set up for Windows Remoting - you don't say whether you have ...Answered | 7 Replies | 14808 Views | Created by Adrian.Tom - Monday, March 4, 2013 3:39 PM | Last reply by RiffyRiot - Tuesday, March 5, 2013 5:47 PM -
0 Votes
invoke-command to execute Exchange commands in the remote environment.
So, I thought I could do something similar with invoke-command to run the commands in the remote shell on the remote server.Answered | 11 Replies | 1449 Views | Created by daddmac - Thursday, April 4, 2019 8:26 PM | Last reply by daddmac - Friday, April 5, 2019 2:55 AM -
0 Votes
invoke-command access denied
If you are trying to invoke to the local PC then you must be elevated to do this.Answered | 15 Replies | 28398 Views | Created by cinek22 - Friday, October 21, 2016 5:33 PM | Last reply by zperryz - Tuesday, November 1, 2016 9:25 PM -
0 Votes
Get-SCSMClass with Invoke-Command
In case of Invoke you no need to have it on the current box.Answered | 2 Replies | 1124 Views | Created by dev_SCSM2012 - Tuesday, September 8, 2015 12:51 PM | Last reply by Anton Gritsenko - FreemanRU - Friday, September 11, 2015 10:43 PM -
0 Votes
Use local variable in invoke-command
" invoke-command -ComputerName $ComputerName -ScriptBlock $sb Pause \_(ツ)_/Answered | 9 Replies | 1519 Views | Created by kentex - Thursday, December 17, 2015 1:51 PM | Last reply by kentex - Tuesday, December 22, 2015 7:54 AM -
2 Votes
Output from invoke-command not returning
I have the following scriptblock: $scriptblock = { $regpath = "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" ...Answered | 2 Replies | 4192 Views | Created by J1raya - Wednesday, March 8, 2017 2:05 AM | Last reply by J1raya - Wednesday, March 8, 2017 3:37 AM -
0 Votes
Invoke command not working and exception is thrown
I mean The script i am writing should be run from my local and it would get the scripts on remote servers executed and generates report.Answered | 20 Replies | 11303 Views | Created by Vijaywithmaths - Thursday, October 3, 2013 9:53 AM | Last reply by Tarique Noorain - Friday, October 4, 2013 2:19 PM -
0 Votes
Passing arguments to invoke-command or invoke-expression
We don't need to use Invoke...Answered | 3 Replies | 10182 Views | Created by Peter.AIE - Friday, October 7, 2011 3:43 AM | Last reply by jrv - Friday, October 7, 2011 3:58 AM -
0 Votes
Start-Job behaves differently to Invoke-Command
invoke-command executes the scriptblock in the current runspace.Answered | 2 Replies | 10361 Views | Created by colin_e_uk - Friday, August 26, 2011 11:13 PM | Last reply by colin_e_uk - Sunday, August 28, 2011 12:01 AM -
2 Votes
Invoke-Command and ShellId Issues
You need to use $using:vm instead of $vm since you are passing a value from a local variable into the scriptblock which is executed remotely.Answered | 7 Replies | 5271 Views | Created by jmcdade11 - Thursday, September 26, 2013 2:30 PM | Last reply by DaniDuck - Wednesday, May 29, 2019 9:12 AM -
0 Votes
Running Invoke-Command scriptblock - strange results
For Dell PCs there is a piece of software named cctk, and it does what it should do when running on localhost, but I have some strange problems running it through ...Answered | 1 Replies | 969 Views | Created by IS-Smok - Tuesday, May 17, 2016 10:10 AM | Last reply by jrv - Tuesday, May 17, 2016 10:52 AM -
14 Votes
Pass a local variable to a remote session using the invoke-command cmdlet
For example, this code works as expected: $var = 'Hello World' Invoke-Command -ScriptBlock { Write-Host $var } Grant Ward, a.k.a.Answered | 7 Replies | 61164 Views | Created by Aeropars - Friday, April 20, 2012 2:15 PM | Last reply by Ryan_27 - Friday, March 31, 2017 5:15 PM -
0 Votes
Running a DOS command from PS
Is there any reason to path this to a "Invoke-Expression" No.Answered | 7 Replies | 1106 Views | Created by Ogeccut - Tuesday, January 5, 2016 9:14 PM | Last reply by jrv - Thursday, January 7, 2016 3:29 PM - Items 1 to 20 of 1963028 Next ›
No announcements