Powershell HTML parsing from multiple tables

PowerShell
I need help extracting the the html tables from this page. I am trying to query different types of devices and they have different fields. I'd like a ...
3 years ago

Saving an Environment Variable back to Team City from Powershell

PowerShell
We have a need that periodically, we will run a build configuration that among other things, recreates tokens/logins etc. We want to save these back t...
3 years ago

Powershell loop for splitting mutiple txt files into seperate files

PowerShell
I'm having an issue looping through all files in the directory and splitting it according to the field "[IMPORT]" Directory: \C\users$\Pepe\Desktop\T...
3 years ago

Set-ItemProperty message when importing virtualenvwrapper

PowerShell
Here is the message that I get. For what it's worth, I opened my registry and noticed that there is no 2.7 folder, PythonCore leads straight into Inst...
3 years ago

Powershell script to verify IIS Settings

PowerShell
Is it to possible to get IIS settings using Power Shell Script? I am looking to get/check below information using a a script: Check if Windows Auth...
3 years ago

How to output to two columns in Powershell with XML

PowerShell
I have a simple menu to run some tasks, the menu reads variables through an xml config. At the moment it outputs to screen like this: App One. App ...
3 years ago

Powershell - LIKE against an array

PowerShell
For every file being processed, its name is being checked to satisfy the condition. For example, given the following list of filters: $excludeFiles =...
3 years ago

PowerShell "select as" function on variable

PowerShell
This is just a simple question regarding alias issue on PowerShell syntax. Yet I can't find any related solution to it ATM. Select SystemName , Devi...
3 years ago

Unable to code sign with Windows signtool

PowerShell
I'm trying to understand code signing of executable files on Windows by creating my own self-signed certificate and successfully signing a file. The s...
3 years ago

Why in PowerShell does embedding a DateTime object in a string lose the DateTime locale?

PowerShell
The locale of my machine is UK (en-gb). When I do the following (to check expiration date of an SSL cert) the DateTime object stores the value in UK f...
3 years ago

Searching using variable in Powershell

PowerShell
So I'm trying to find the SID for a user that's logged onto a system before. Our system has a split of non-administrative users (without a # at the st...
3 years ago

How to delete empty subfolders with PowerShell?

PowerShell
I have a share that is a "junk drawer" for end-users. They are able to create folders and subfolders as they see fit. I need to implement a script t...
3 years ago

What is the idiomatic way to slice an array relative to both of its ends?

PowerShell
Powershell's array notation has rather bizarre, albeit documented, behavior for slicing the end of arrays. This section from the official documentati...
3 years ago

Filter exactly matched windows services using PowerShell

PowerShell
I'm trying to filter out the windows services using PowerShell Following are the windows services that we have: DataGenerator_1_UAT DataGenerator_2_...
3 years ago

Editing and merging xml files without modification of input files

PowerShell
My task is to merge two xml files together. Before merging these two files, I need to remove the first line of the second file. I was able to receive ...
3 years ago

What exactly does the Resolve-Path cmdlet do?

PowerShell
I've started working with Powershell lately on my Windows 10 system. I've created a profile file, and I wanted to put in a variable which links to a f...
3 years ago

Getting a list of items from document library using PowerShell in SharePoint

PowerShell
So if I have the URL for a Document Library, how can I get all the items (in this case, folders) from inside the library? I've tried a few different t...
3 years ago

Powershell - add elements to XML file if

PowerShell
I have an xml file which container provider information. I need to check if there is an "AddressType" defined within each AddressRow. If the AddressRo...
3 years ago

How do I pass named parameters with Invoke-Command?

PowerShell
I have a script that I can run remotely via Invoke-Command Invoke-Command -ComputerName (Get-Content C:\Scripts\Servers.txt) ` -FilePa...
2 years ago

How can I start a background job in Powershell that outlives it's parent?

PowerShell
Consider the following code: start-job -scriptblock { sleep 10; cmd /c set > c:\env.txt; } exit The background job is killed when the parent exi...
2 years ago