Category "powershell"

Pass variables from .env file to dockerfile through docker-compose

project └───app │ │ ... │ │ Dockerfile │ │ └───prod.env └

How to install application Updates on multiple windows machine using any tool or script [closed]

I have around 100 windows machine(VMs), All the machines have few updates for chrome , notepad/notepad++ , Firefox ,Jenkins which have not b

Get-DnsServerResourceRecord not working on 2016 server

I have a powershell that utilizes the function Get-DnsServerResourceRecord. I have it working on a couple of different servers for testing, but on the server t

Powershell - Invoke-RestMethod to get all links

Trying to connect to webpage and return a list of all the file names listed there. I wont include the whole code (to generate token etc), but using the below I

Command is run before the previous one is finished

Consider the following Dockerfile. It attempts to install Visual Studio Build Tools by downloading, installing, and then deleting the installer in a single RUN

[powershell]Pasting table from Excel to Word, autofit table

Currently working on a robot where I want to download an excel file from a system, copy paste the contents of the excel file to a word file as an embedded excel

The token '&&' is not a valid statement separator in this version

On the way of installing Webpack on my React Project, the following problem hinders my progress: last step to configure the Webpack npm run build && nod

PowerShell report what functions are loaded from a script

I have a number of scripts downloaded from the internet, and they only contain function definitions, i.e. not constructed as Modules. Hence, if I run these scri

Get-ADUser with multiple filters & variables

I'm trying to get AD users into a variable using multiple filters. However one of the filters has variables in it & I can't get it to work... I have searche

Powershell exits on where cmdlet

I'm writing a script that should run two python apps and then cycle through solution files, searching for new and updated files with py and json extensions and

Write-Output -InputObject (,'Test') -NoEnumerate

I think this is a bug that only applies to PowerShell Windows 5.1: The -NoEnumerate switch doesn't work when the input is provided via the named -InputObject a

Is there a way to listen to mouse event in windows?

I want to write a script that runs a specific PowerShell command when one of my mouse's additional buttons is clicked. Example: Clicking the third mouse's butto

Connection to the Jupyter Notebook Server could not be established

For the past many months I am trying to code in Jupyter Notebook but whenever I open Jupyter Notebook, then, I see a message where it is written 'A connection t

Selenium/Powershell/Linux: Connection refused [::ffff:127.0.0.1]:39343 (localhost:39343)

I'm trying to use a chrome driver on a linux virtual machine. I use selenium on powershell. When I run the following command: $driver = Start-SeChrome Here i

C# IDymanicParameters for powershell cmdlet required in both Parent and Child Class

We can define dynamic parameters for Powershell commandlets by adding IDynamicParameters and implementing it's GetDynamicParameters() method that creates the dy

How can I execute custom code using Flow?

I've made a PowerApps app which uploads an image to SharePoint. When Flow detects that this image is uploaded, I want to run a custom script that can interact w

PowerShell, auto load functions from internet on demand

It was pointed out to me (in PowerShell, replicate bash parallel ping) that I can load a function from the internet as follows: iex (irm https://raw.githubuserc

How to automate the setting of Google as default search engine in Microsoft Edge (Chromium based) via PowerShell?

I would like to automate an operation of setting Google as a default search engine in Microsoft Edge (Chromium based) via PowerShell in non-corporate deployment

powershell script to list all sub-folders in an Outlook Inbox

New powershell user here. I want a list of all folders and subfolders and subsubfolders etc. from an Outlook Inbox Add-Type -assembly "Microsoft.Office.Interop

Touch command not working in Terminal of VSC

I'm new and still trying to figure out how to configure my development environment. I'm getting an error when using the touch command in Visual Studio Code. I c