Jump to content

Powershell Usage


anitdude
 Share

Recommended Posts

Hi,

I've included the PS1 stuff and it appears in my PS commands list, but I do not see any use cases where I can actually get my head around the changes needed to my code to get it to work within autoit.

My scripts primarly use wmiobject since they should be compatible with version 1 and all the good stuff doesnt exist yet...

I tried to see how to get it to work using the help but tbh, I'm not following.

If someone could give me an example using the following script, it should help me see what I am missing.

get-wmiobject -query "SELECT * FROM Win32_ComputerSystem" |
select-object Name,Domain,Description,NumberOfProcessors,`
TotalPhysicalMemory,SystemType |
Export-Csv C:\CompStuff.csv

Thanks in advance for the help :)

Link to comment
Share on other sites

my powershell efforts, post 3 in thread also does some wmiobject stuff (also a ps1 example if you just wanted to call it rather than translate).  ask if you get lost.

 

Edited by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...