Category "powershell"

Add PowerShell package as native dependency

How should one add the PowerShell package as a Native dependency? In spite of adding it one is unable to run basic PowerShell commands to show output on the scr

Parse column values line by line and pass to ifelse

I have code in shell script, but can't figure out how to parse line by line in column. If person is absent I want to send email. if person is late than hour the

Powershell Unprotect Fails With Unknown Error "-805306355"

I'm creating a NetSec project to read Chrome information, but the Powershell Unprotect Function returns an unknown error code while trying to read the AES encry

Az Powershell Connect-AzAccount fails in docker container, but works on host

Problem I have a Windows 10 machine with Powershell 7. I wrote the following logic to sign into azure using a service principle: $Secure2 = ConvertTo-SecureStr

Azure Pipelines: Start-Process with credentials not working

I am trying to start an application from Azure Pipelines YAML using Powershell. I want the app to start with a non-administrator account, while the Azure Pipeli

Merge two html file output that contains tables also in single html file (in comparison table format)

I have two html files containing vm information like os details, memory, network details etc. in table format for pre and post migration. For final analysis I n

Version strings to "System.Version" too long (or short) in PowerShell

How can I force conversion to type System.Version in PowerShell, or more likely, better understand why I cannot arbitrarily assign number strings type System.Ve

Adding Leading Zeros in .csv file

I am trying to create a PowerShell script that adds two leading zeros to all the numbers in a particular column.This script is able to add the two zeros to the

How to remove specific service plan from O365 license using powershell

I have the following script to apply a DESKLESS license Connect-MsolService Import-Csv 'C:\users.CSV' | foreach {Set-MsolUser -UserPrincipalName $_.EmailAdress

using powershell inside batch file to add floating numbers from text file

i have a text file logging timestamps from ffprobe on video durations of some video files, which that text file looks like this: 14.068700 5.043011 84.071967 5

PowerShell: How to group by multiple attributes from an XML document?

I'm brand new to XML so I have a question about how to manipulate XML data. My current data has an EmployeeID in 2 different segments (not sure of terminology

Set property value on object loaded from json containing comments

When loading an object from a json file one can normally set the value on properties and write the file back out like so: $manifest = (gc $manifestPath) | Conve

Map a Azure Fileshare to Azure Runbook local drive to use as temporary storage

I am trying to access an AzureStorage to utilize it in an Azure- Powershell-Runbook. I need to accomplish that to save a SharePoint-Sitetemplate to that locatio

How to install and use Scrapy within a TERMINAL opended within Visual Sudio Code under Windows 10?

within the TERMINAL window having the prompt PS C:\Rolf\py_scripts I have run pip install scrapy I got the message Successfully installed Automat-20.2.0 PyDisp

Command Prompt / Anaconda Command Prompt not opening in Windows 11

I am doing a research project that involves me running terminals in the Anaconda Command Prompt. I was able to install and work the current version of Anaconda

Run Powershell script after the first one finished

How to modify the code be more neatly to make the first powershell function finished before starting the next one. Echo Clean Windows\Temp Fol

How to rename files and folders recursively?

I have this PowerShell code which goes through a folder and creates a list of all files and subfolders in the folder and renames them for me (replacing spaces w

PowerShell - Get Properties of MSI

Stackers, I am trying to get (from an MSI of Chrome Enterprise) a version number. After I download Chrome as a .MSI , I notice that I can see a number of proper

How can I validate WOPI is working on OOS on-prem using PowerShell or REST?

I'm trying to trouble shoot our on-prem OOS and read about the WopiTest framework for Office 365 at MS Docs - WOPI Validation application Does Office Online Ser

Run octave script from powershell and wait for it to finish

I'm trying to run a very simple octave .m file from Powershell but i can't manage to make powershell wait for it to finish. In fact, it launches the script exec