Category "powershell"

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

Powershell: Pass result of Get-AzTableRow to function

I am using below PowerShell code in azure functions to retrieve rows of users in azure table who belongs to a particular location. $Rows = Get-AzTableRow -table

Invoke-WebRequest : The remote server returned an error: (401) Unauthorized

I can download https://marketplace.visualstudio.com/_apis/gallery/publishers/blueprint/extensions/vsts-open-work-items-in-excel/0.1.71/package?noPrompt=true in

Unable to install service fabric runtime

Update By looking at the processes under Task Manager, I was able to locate the installer for Service Fabric Runtime (the first of the two components that are a

How to glob files into folders depending on their prefix

I have 4000 fish picture files, named as follows: acanthistius_cinctus_1 acanthistius_cinctus_2 acanthopagrus_latus_1 acanthopagrus_latus_2 ... There are 468 s

PowerShell output returns more fields than selected

I've been learning PowerShell over the past month and often times I've found through select statements or -properties iirc, that I get additional data that I do