Board Logo
« PowerShell »

Welcome Guest. Please Login or Register.
May 26th, 2017, 3:44pm


Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Problems installing JB? Read the Vista/Win7 Installation FAQ

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: PowerShell  (Read 352 times)
Angelo2449
Member in Training
ImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 32
xx PowerShell
« Thread started on: Jan 26th, 2017, 08:05am »

Hi Guys,

I try to run a command from> PowerShell <:

If I run it directly, everything works :

- cmd
- powershell
- “(GET-WMIOBJECT -QUERY ‘SELECT * FROM SOFTWARELICENSINGSERVICE’).OA3XORIGINALPRODUCTKEY”

i get the key of installed original Windows

If I run it fro bat file, not works :

open "C:\Windows\temp\info.bat" for output as #dos1
print #dos1, "@echo off"
print #dos1, "powershell " + “(GET-WMIOBJECT -QUERY ‘SELECT * FROM SOFTWARELICENSINGSERVICE’).OA3XORIGINALPRODUCTKEY”

close #dos1

run "C:\Windows\temp\info.bat"

the command “(GET-WMIOBJECT -QUERY ‘SELECT * FROM SOFTWARELICENSINGSERVICE’).OA3XORIGINALPRODUCTKEY”

not works!!

Tanks you
« Last Edit: Jan 26th, 2017, 08:13am by Angelo2449 » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls