remote execution with powershell

Hi All,

I have admin access to all machines in my environment(XP, WIN7 ,Server OS)..

Now my query is, Can i run the power shell command (to get the inventory from XP,Win7,Server OS) ... (XP,win7 machines will accept to run the power shell commands,do we need to enable any thing in this machines)

do we have any sample command-lets from pulling ARP entry and registry info from  remote machine's

February 19th, 2014 3:27am

This is not a scripting question.  What you are asking is way too vague and we cannot knowhow your systems are configured.

All of this depends on what is installed and how it is configured. These are questions only you can answer by analyzing your systems.  You will also need to know and understand how to manage Windows systems.

In a properly deployed network we can usually access all systems with WMI.  WMI can read most system info however the easiest way to do this is with "systeminfo" command.  It will do a very good inventory of the systems and very quickly.

type"  systeminfo /?

for instructions.

Free Windows Admin Tool Kit Click here and download it now
February 19th, 2014 3:43am

For sample scripts try here: http://gallery.technet.microsoft.com/

February 19th, 2014 4:42am

Thanks for reply..

My current execution policy is unrestricted..

But when i run the below command ..its showing not recognized command "OSCInstalledApplication"

Get-Help New-OSCInstalledApplication -Full

whats wrong i'm doing here ?



Free Windows Admin Tool Kit Click here and download it now
February 19th, 2014 5:09am

What does this have to do with your first question?

You cannot just add vague questions one after another.  This is a scripting forum and not a help desk.

There is no such command as you are trying to use.

February 19th, 2014 5:29am

Hi,

First I  want to say some thing , I'm not much familiar with power shell.. So i'm asking as suggestions..How it will work(do we need to enable in all machine's XP,win7 to get the inventory of application installed). You might be Good in this technology. But it does't mean that every one should be in same....

Don't say that "vague questions" /not scripting questions. 

There is no such command as you are trying to use.

then what is this...?

http://gallery.technet.microsoft.com/scriptcenter/Get-a-List-of-Installed-c47393ed

Its relevant to my requirement..

I asked when i executed the above command(Get-Help New-OSCInstalledApplication -Full)..I got an error not relavent command ..So i asked..

And what your trying to say you don't want to add any other queries in same question to relevant ... you want to be add in new thread question to Answer you ?


Free Windows Admin Tool Kit Click here and download it now
February 19th, 2014 5:46am

That is a script from the gallery.  You need to post questions on the Q & A page in the gallery for Gallery scripts.

We cannot teach you how to use Windows or PowerShell.  It is your responsibility to become trained in these things.

This forum is for admins and those learning scripting or using it in their work.  It is not a free training forum or a forum for new WIndows users.

There are learning resources here: http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

I recommend that you study the basics of PowerShell.

Please read the forum guidelines: http://social.technet.microsoft.com/Forums/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG

http://social.technet.microsoft.com/Forums/en-US/ff3f3b21-8ed5-47b0-bc30-5ca3bbe91029/handy-tips-for-posting-to-this-forum?forum=ITCG

your original question was very broad and general.  I answered it.  If you want to use PowerShell remoting you need to have a properly configured network and you need to install WMF 2.0 or later.  I also recommended using WMI and systeminfo.  There is not much more that can be said.  You need to learn about PowerShell and then ask a specific question.  Post questions about Gallery scripts in the Gallery.

It is likely that your problem with the Gallery script is that you have not followed the directions and thatyou do not haveenoughbasic knowledge of PowerShell to understand how to use or install the script.

February 19th, 2014 6:00am

Note that your Gallery code does not work.  It is bogus and does not get remote information.  It also has bad documentation so it is unlikely that you will ever understand how to get it to work or why it doesn't work.

Start by learning the basics.  It will save you a lot of frustration.

Free Windows Admin Tool Kit Click here and download it now
February 19th, 2014 6:25am

Thanks for reply..

My current execution policy is unrestricted..

But when i run the below command ..its showing not recognized command "OSCInstalledApplication"

Get-Help New-OSCInstalledApplication -Full

whats wrong i'm doing here ?



  • Edited by RanvirSingh Wednesday, February 19, 2014 10:10 AM
February 19th, 2014 1:04pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics