anitdude

Powershell Usage

3 posts in this topic

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 :)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Awesome.

This is what I'm looking for. I'm sure I saw more than one example which I could tweak for my needs.

Thanks, I'll ask if I have any questions or problems :)

Edited by anitdude

Share this post


Link to post
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