Search found 317 matches

by localpct
Fri Jun 19, 2020 9:43 pm
Forum: PowerShell
Topic: Creating MS Teams Shortcut
Replies: 4
Views: 509

Re: Creating MS Teams Shortcut

Perfect. Extremely grateful.
by localpct
Fri Jun 19, 2020 1:29 pm
Forum: PowerShell
Topic: Creating MS Teams Shortcut
Replies: 4
Views: 509

Re: Creating MS Teams Shortcut

But it's odd because I can do it manually with right click, create shortcut and paste in the exact string and it works just fine :(
by localpct
Fri Jun 19, 2020 11:29 am
Forum: PowerShell
Topic: Creating MS Teams Shortcut
Replies: 4
Views: 509

Creating MS Teams Shortcut

Hello, I'm noticing a few users don't have the shortcut for teams on their desktop but the app is installed. There a are a few of them, but it's annoying to just remote in and create a shortcut for them manually. I was looking for a way to do this in PSS and a form. The problem I'm getting is when I...
by localpct
Fri Jun 19, 2020 11:25 am
Forum: PowerShell GUIs
Topic: Managing Fonts with Dark Theme Enabled
Replies: 3
Views: 410

Re: Managing Fonts with Dark Theme Enabled

Ah yes.. I had the same problem earlier with my build so I reverted back to the normal color as I didn't have time to mess with it
by localpct
Thu Jun 18, 2020 6:44 am
Forum: PowerShell GUIs
Topic: Managing Fonts with Dark Theme Enabled
Replies: 3
Views: 410

Re: Managing Fonts with Dark Theme Enabled

Why not just copy and paste the already existing groupbox?
by localpct
Tue Mar 03, 2020 7:00 am
Forum: PowerShell
Topic: Import-CSV Alter cell based on header name
Replies: 6
Views: 1610

Re: Import-CSV Alter cell based on header name

The following will update a Csv when the Name column contains the value and output the complete CSV to a new Csv. Import-Csv $Config | ForEach-Object { if($_.Name -eq 'OneNote Notebooks'){ $_.Destination = "\\Server\$user\OneNote" } $_ } | Export-Csv newfile.csv This worked. My CSV just fills in va...
by localpct
Mon Mar 02, 2020 12:32 pm
Forum: PowerShell
Topic: Import-CSV Alter cell based on header name
Replies: 6
Views: 1610

Re: Import-CSV Alter cell based on header name

I apologize...

$config is a CSV file that I pull from a web server. So technically it's:
and OneNote Notebooks is a header in the CSV

Import-Csv backup.csv | Where-Object { ($_.Name -eq 'OneNote Notebooks') | ForEach-Object {

$_.Destination -eq "\\Server\$user\OneNote Notebooks"

}
}
by localpct
Mon Mar 02, 2020 7:14 am
Forum: PowerShell
Topic: Import-CSV Alter cell based on header name
Replies: 6
Views: 1610

Import-CSV Alter cell based on header name

I cannot seem to figure out a way to replace text in a cell, for a certain header: Import-Csv $Config | Where-Object { ($_.Name -eq 'OneNote Notebooks') | ForEach-Object { $_.Destination -eq "\\Server\$user\OneNote Notebooks" } } Currently, the cell for Destination states \\$server\$user\Documents\O...
by localpct
Fri Feb 14, 2020 7:24 am
Forum: PowerShell GUIs
Topic: Redirect Process Output - Dism - ProgressBar
Replies: 6
Views: 1326

Re: Redirect Process Output - Dism - ProgressBar

So I just did this and it appears to be working

Code: Select all

RedirectOutputScript			  = {
			# Use $_.Data to access the output text
			$richtextboxOutput.AppendText($_.Data)
			$richtextboxOutput.AppendText("`r`n")
			if ($_.Data -match '(\d+)')
			{
				$progressbar1.Value = [int]$matches[1]
			}