Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

ForEach group duplicates and export to csv files

I have a project due that requires me to extrapolate data based on an email address field. There are many duplicates and I need all of them for each email address output to a csv file. I'm really...

View Article


Split one CSV into multiple

Hello! I am pretty new to Powershell, but am off to a good start!I've tried to find an answer to this online but haven't come up with anything yet. I have a CSV file with about 3000 rows. In one of the...

View Article


Get-TroubleShootingPack not generating answers

Hi AllI can't find any information on this error and I am not sure what the root cause isThe command I am running is to generate an answer file for the Windows Update diagnostic tool...

View Article

PowerShell (5)Update-Help throws error after installing Windows 10...

Good day everyone,I have a problem with Update-Help in PowerShell after installing the Windows 10 anniversary update -- and I observed this on 3 different machines after installing the anniversary...

View Article

Powershell script structure to delete a set of entries from sharepoint...

Hi looking to write a PowerShell script to delete a set of entries from a library listThe first 4 columns of the list are -  Created, ID, office,  Date The ID is a column with unique entries. The...

View Article


Starting powershell.exe and run predefined comands in it.

Hello I'm trying to create a script that will open new powershell window and will define some variables automatically, also display some text instructions on the screen.Variables that i need to...

View Article

Add authentification on a script

Hi,I use this script to download several files from a JIRA website and convert them from .xls to .xlsxAs you see I actually put my credentials inside to make it work.I want to share the script with my...

View Article

Can't hide Excel in PS script

Hi all,New to Powershell but trying to put together a basic script to get the row count of an .xlsx file to then use in some validation.  I don't want the application opening visibly (ideally don't...

View Article


Where-Object : A positional parameter cannot be found that accepts argument...

PS U:\> PS U:\> $OutFile = "C:\temp\Documents\Permissions1.csv" # Insert folder path where you want to save your file and its name $Header = "Folder...

View Article


Image may be NSFW.
Clik here to view.

Windows Forms

Hello,I have a task to display an image notification at users desktop, and I´m trying to achive that with powershell. When I run the script below locally works well, but if I run remotely I got this...

View Article

How to identify / list disabled users and email duplicates

Hello Everyone.I am a beginnner in powershell and I need your help.I have an excel file that contains Lastname, Firstname and email.With the AD i want to makes a script that  identifies on the excel...

View Article

Trying to create a table

The part of this that works to gather the data is:$Connection = Get-DfsrConnection $Connection | ForEach-Object { $Source = $_.SourceComputerName $Group = $_.GroupName $Destination =...

View Article

How do I add an entry (key,value) to each hashtable in an array of hashtables?

I would like to add entries to hash tables which are in an array generated by this...

View Article


How to use PowerShell to Remove "Hidden" Devices - A Scripting Question

I am new to PowerShell. I am impressed with what I learned. In some instances it is easy to use. It others it is pure frustration.On boot or after removing a USB device I get USB errors. In other words...

View Article

Unable to index into an object of type System.Xml.XmlChildNodes.

Dear Experts,I'm having trouble while iterating through xml childnodes in tr(rows) I appreciate your help fixing this issue.StepsStep1 : I have an ADO.Net connection to connect to SQL server and run a...

View Article


installing a wireless printer

My computer is a hand-me-down from my father. In tryinf to install I need to turn on the configuration management console.I need access to network yet to do that I need a computer name. Would that be...

View Article

Powershell AD script to reference a CSV

Hi please can you assistI need a powershell AD script which will look at a CSV file with Columns named firstname and lastname which would need to match a AD account then tell me if its disabled or...

View Article


How to combine 2 objects into one

Hi,I want to create report of volumes which lies on disks + with Bus Number and Target ID number of disk.Example output should be:PartSizeGB : 125 PartName : C: PartFreeSpaceGB : 50 DiskSCSIBus : 0...

View Article

Powershell Script to copy-items from user profiles for a backup

We have software upgrade coming up for a document management software we use, and I want\need to create a script that can copy the three specific files as a backup. Some of the machines are shared...

View Article

Error when Importing MSOnline Module as part of a background script

Hi Folks,I'm struggling with one of our PowerShell scripts. The controller script calls a function which does something in the AAD.The top of the function looks like this:function Set-WpAzureMFA {...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>