You can enable Psremoting on the machine and then use the Invoke-Command cmdlet to run remote command. I think that is more POSH way of doing it.
You can enable Psremoting on the machine and then use the Invoke-Command cmdlet to run remote command. I think that is more POSH way of doing it. You can turn it on on many machines in your domain using Group Policy as well: blog.powershell.no/2010/03/04/enable-and....
I am running this across the entire domain (on every single computer). And I can not turn things on or off. – Me Myself Nov 14 '11 at 19:14.
In Powershell you should escape the "-character using the backtick ` when used between "". The following command worked on my system: (WmiClass"\\$s\ROOT\CIMV2:Win32_Process"). Create("cmd /c dir /S/B | findstr `"test`" > \\192.168.1.100\c$\results.
Txt").
I tried that, with no luck. – Me Myself Nov 15 '11 at 13:15 Is it possible that you can't write to the root of the C? Can you try > \\192.168.1.100\c$\windows\temp\results.
Txt" – jon Z Nov 15 '11 at 13:21 I am running as DA, so I should have permissions. But I tried temp with no luck either. It must be a GPO thing?
– Me Myself Nov 15 '11 at 13:24 try to run cmd /c dir /S/B | findstr "test" > \\192.168.1.100\c$\results. Txt from an ordinary cmd box to eliminate that we're dealing with a permissions problem. – jon Z Nov 15 '11 at 13:27 I logged into to the remote machine using same account.
I then open command line as administrator and I typed the above command. And it worked. See my dilemma and frustration?
– Me Myself Nov 15 '11 at 13:33.
I think all I am going to do is, after the command finishes move the file from the computer to the server. If(Test-path \\computer\c$\results. Txt){ move-item -path \\computer\c$\results.
Txt \\server-name\c$ -force | out-host }.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.