Search found 6 matches

by Ochness
Thu Oct 08, 2020 3:19 pm
Forum: PowerShell
Topic: Pivot in PowerShell
Replies: 4
Views: 3276

Re: Pivot in PowerShell

@jvierra are you an employee of Sapien Technologies?
by Ochness
Thu Oct 08, 2020 2:15 pm
Forum: PowerShell
Topic: Pivot in PowerShell
Replies: 4
Views: 3276

Pivot in PowerShell

I am trying to get a list of users with some user properties as well the ADPrincipalGroupMembership. I have the script working but it give me all the property info for each group the user is a member of. Is there a way in PowerShell to pivot (or something like that) and have all the information on o...
by Ochness
Fri May 17, 2019 8:26 am
Forum: PowerShell
Topic: Combining scripts together
Replies: 3
Views: 2924

Re: Combining scripts together

I did only post one script...but it's the two scripts I'm trying to combine. Let me separate them... Script 1 that adds a new user to AD (and this works by itself) #Enter a path to your import CSV file $NewUsers = Import-csv C:\New_User_Import\CC_New_Hire_Import_Template_Formulas.csv foreach ($User ...
by Ochness
Thu May 16, 2019 2:54 pm
Forum: PowerShell
Topic: Combining scripts together
Replies: 3
Views: 2924

Combining scripts together

I am pretty new to PowerShell. I am trying to combine 2 different scripts that I have to run in one script. Here is my code: $NewUsers = Import-csv C:\New_User_Import\CC_New_Hire_Import_Template_Formulas.csv Clear-Host Write-Host -object "Enter the username of the user whos groups you would lik...
by Ochness
Fri Feb 15, 2019 12:03 pm
Forum: PowerShell GUIs
Topic: Saving DataGridView to .CSV using SaveFileDialog
Replies: 3
Views: 2184

Re: Saving DataGridView to .CSV using SaveFileDialog

Thank you for your response.

I am new to PowerShell and forms so I'm not sure how I would use the SaveFileDialog and the Export-CSV together.

How would I use the Export-CSV in my current code?
by Ochness
Fri Feb 15, 2019 10:26 am
Forum: PowerShell GUIs
Topic: Saving DataGridView to .CSV using SaveFileDialog
Replies: 3
Views: 2184

Saving DataGridView to .CSV using SaveFileDialog

I am trying to save the results of the DataGridView to a .CSV file using the SaveFileDialog command. I am able to name the file and it saves as a .CSV but when I open the CSV all of the data for a row is on one line. here is the code I'm using: $SaveChooser = New-Object -TypeName System.Windows.Form...