Search found 320 matches

by localpct
Wed Aug 12, 2020 1:54 pm
Forum: PowerShell GUIs
Topic: Need Help with Job Tracker
Replies: 3
Views: 1093

Re: Need Help with Job Tracker

start here $buttonStartJob_Click={ $buttonStartJob.Enabled = $false $computername = $textbox1.Text #Create a New Job using the Job Tracker $paramAddJobTracker = @{ Name = 'JobName' JobScript = { #-------------------------------------------------- #TODO: Set a script block #Important: Do not access f...
by localpct
Wed Aug 12, 2020 10:32 am
Forum: PowerShell GUIs
Topic: Need Help with Job Tracker
Replies: 3
Views: 1093

Re: Need Help with Job Tracker

You're not passing arguments to the script block ArgumentList = $null I would honestly start out with an easier job then build up it took me a good month to figure it out the way it should be, if not longer and Param ($ComputerName) #Pass any arguments using the ArgumentList parameter $ComputerName ...
by localpct
Mon Jul 13, 2020 12:55 pm
Forum: PowerShell
Topic: .net remote install
Replies: 12
Views: 1971

Re: .net remote install

$path = 'C:\classInstalls\ndp48-x86-x64-allos-enu.exe'
Invoke-Command -ComputerName $computerName -ArgumentList "/q /norestart" -ScriptBlock { Start-Process -FilePath using:$path $args[0] -WorkingDirectory ?????????? }

Do you need to include a WorkingDirectory?
by localpct
Fri Jun 19, 2020 9:43 pm
Forum: PowerShell
Topic: Creating MS Teams Shortcut
Replies: 4
Views: 937

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: 937

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: 937

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: 669

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: 669

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: 1724

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: 1724

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"

}
}