Search found 4 matches

by Ochness
Fri May 17, 2019 8:26 am
Forum: Windows PowerShell
Topic: Combining scripts together
Replies: 3
Views: 1190

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: Windows PowerShell
Topic: Combining scripts together
Replies: 3
Views: 1190

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 like to ...
by Ochness
Fri Feb 15, 2019 1:03 pm
Forum: PowerShell GUIs
Topic: Saving DataGridView to .CSV using SaveFileDialog
Replies: 3
Views: 378

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 11:26 am
Forum: PowerShell GUIs
Topic: Saving DataGridView to .CSV using SaveFileDialog
Replies: 3
Views: 378

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...