Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Trying to compile this PS script into one batch file.

$
0
0

I created for our end users to update their dell drivers. It works pretty good but instead of having a batch file call a ps1 script I would like to just have it all in the batch file. this isn’t a big deal, I am just wondering how you guys would do it.

batch file

powershell.exe -executionpolicy bypass “.dell.ps1”

dell.ps1

$serial = get-wmiobject win32_bios -property serialnumber | select serialnumber

cmd /c “C:Program FilesInternet Exploreriexplore.exe” http://www.dell.com/support/home/us/en/19/product-support/servicetag/$($serial.serialnumber)/drivers

submitted by /u/Honda_Driver_2015
[link] [comments]

The post Trying to compile this PS script into one batch file. appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Trending Articles