Category "powershell"

Boxstarter fails to install package (extracted script is actually a zip file)

I'm trying to make a simple Boxstarter package that will install a few basics to new machines. Nothing special. I've created a new package as suggested in the d

How can I force Powershell to return an array when a call only returns one object?

I'm using Powershell to set up IIS bindings on a web server, and having a problem with the following code: $serverIps = gwmi Win32_NetworkAdapterConfiguration

Powershell Script working fine in Visual Code but fails running from Terminal

I'm working on writing a script which will run from AzDo Pipeline to disable F5 WebServers. Below script works fine in Visual Code and does disable the server a

Offline Ros Bridge Intallation / without internet

We want to install Ros Bridge to our server. But we don't have internet access on server. Is it possible we can install without internet? Thank you...

How to get Members of GroupMailboxes in PowerShell Exchange

I'm trying to get the Members of my groupMailboxes. I already wrote a script for sharedMailboxes that works well. If I want to apply the same for groupMailboxes

i used Powershell in a script to execute and install a app in a computer remotly, I Used psexec

well i have a little script this should execute and install one application but really in the other computer hasn't installed i'll want to install application i

How to filter data in Get-MailboxStatistics

I'm quite new in Powershell. I am trying to filter the result of the cmdlet Get-MailboxStatics, because i wanna know statistics on a subset of items in the mail

PowerShell, unable rename registry on the remote computer

How can I rename Registry SubKey instead of deleting it on the remote device? $remoteHive = [Microsoft.Win32.RegistryHive]“LocalMachine”; $regKey =

Why am I getting gibberish result in Windows terminal?

I am trying to compare version in windows terminal. It works great in Git Bash but in Windows terminal it shows gibberish and wrong result? verlte() { [ "$

Windows Container Access is denied. (0x5). using Powershell. But still accessible on Docker Desktop CLI tool

I am running a docker-compose up and spinning up my Windows containers. Then I want to attach to a container. I tried docker attach <container id>, but i

Run powershell scripts from a C program

I'm creating a C program to run several powershell scripts. But when I run the command with the system function it opens the script in a txt file instead of run

How to enumerate available properties of member

In the code below there are a number of properties of "member" I've added "description" property successfully but I can't find out if the account is enabled.

Microsoft Login Check

I'm new to Powershell. I want to know how to do a check if the user log into their account successfully and if not loop back to the beginning. Thank you! if(-n

Stream Analytics: Best parameters to choose for the autopause of a day wise TUMBLINGWINDOW stream job and best trigger time to set for that function

Context I have a daywise TUMBLINGWINDOW (similar to the one shown below) SELECT DATEADD(day, -1, System.Timestamp()) AS WindowStart System.Timestamp() A

How can I call a Powershell / Command Line Script using a BrowserAction in a FireFox WebExtension?

When the button is pressed, I want to get the URL from the current tab and pass it as an argument to the script. I know that I have to use browser.browserAction

Windows Powershell: How to compare two CSV files and output the rows that are just in either of the file but not in both

I have a file first.csv name,surname,height,city,county,state,zipCode John,Doe,120,jefferson,Riverside,NJ,8075 Jack,Yan,220,Phila,Riverside,PA,9119 Jill,Fan,120

Unable to retrieve createdDateTime along with mail,displayName of Azure AD Users

I am trying to retrieve createdDateTime of Azure AD Users along with their Name and email address. I found below commands: To connect to Azure AD: Connect-Azur

How to run a msi file in powershell by passing a key in it

I have downloaded the msi file to desktop. C:\Users\Administrator\Desktop\package.msi. I am trying to run this msi file through powershell. when running this ms

Clear out powershell terminal variables

Say I have the following powershell script: $hello = "Hello World" Write-Output $hello When I run it I get Hello World Then I decide that I want my variable

Trying to back up my Bitlocker Key to ADDS Through Script

I'm trying to automatize the process of storing BitLocker Keys to ADDS. I wanna be able to run the following script at logon, in order to do that, as the OS is