PowerShell – Miscellaneous

This is how you run bat scripts in ps:
& ‘.\mybatscript.cmd’
But this will also work:


I have released my new course on Udemy, Kubernetes By Example. Sign up now to get free lifetime access!

Also you must create your cmd (bat) file using notepad, (and not notepad++), as advised here:

To open up the explorer window in the current directory, simply do:

explorer .

The start-process command is used to start up gui based apps, e.g. :

Start-Process firefox
Start-Process notepad

on windows xp, do start->run, then type “eventvwr”….good place for troubleshooting.

Putty LINK – shortened to PLINK —

get-module -listavailable # this lists all the available modules
According to this link — — it
says that if you want to access a given module, then you first have to install the actual applicaiton first, then
refresh the module list by running get-module. Once they appear in the list, you then import them using the import-module command.

Note: Some of the vendors are still providing their cmdlets in snap-ins, which is legacy for PowerShell v1.0.

Automate web page interactions with powershell:….0…1c.1.21.psy-ab.L0xgP4I4eHI&pbx=1&bav=on.2,or.r_qf.&bvm=bv.49478099,d.d2k&fp=94de025e9fbfd016&biw=1280&bih=856

For Bash, I think you could do similar things with curl and:…99346.111783.1.112059.….0…1c.1.21.psy-ab.Xe353crwGmI&pbx=1&bav=on.2,or.r_qf.&bvm=bv.49478099,d.d2k&fp=94de025e9fbfd016&biw=1280&bih=856