Search found 14693 matches

by jvierra
Fri Jan 15, 2021 8:31 pm
Forum: PowerShell
Topic: INI file
Replies: 10
Views: 2355

Re: INI file

Easiest way is:

Code: Select all

$section = @'
	item1=text1
    item2=text2
    item3=text2
'@

$section | Out-File file.ini -Append 
All else will be taken care of automatically
by jvierra
Fri Jan 15, 2021 8:26 pm
Forum: PowerShell
Topic: INI file
Replies: 10
Views: 2355

Re: INI file

You can't break an ini file by adding a section.
by jvierra
Fri Jan 15, 2021 3:05 pm
Forum: PowerShell
Topic: INI file
Replies: 10
Views: 2355

Re: INI file

To add a section just create the text and add it to the file at the end.
by jvierra
Fri Jan 15, 2021 11:27 am
Forum: PowerShell
Topic: INI file
Replies: 10
Views: 2355

Re: INI file

by jvierra
Wed Jan 13, 2021 2:18 pm
Forum: PowerShell
Topic: INI file
Replies: 10
Views: 2355

Re: INI file

You can download INI file managers from PowerShellGet. Three are a few. Pick the one that suits your needs.
by jvierra
Wed Jan 13, 2021 10:59 am
Forum: PowerShell GUIs
Topic: create checkbox automatic from text
Replies: 6
Views: 648

Re: create checkbox automatic from text

Your question is not understandable. Start here: https://info.sapien.com/index.php/guis/gui-design-best-practice/user-interface-design-for-administrators There are articles for most controls that will explain how to use them. You can also access the articles by right-clicking on the control in the t...
by jvierra
Tue Jan 12, 2021 2:23 pm
Forum: PowerShell GUIs
Topic: create checkbox automatic from text
Replies: 6
Views: 648

Re: create checkbox automatic from text

Use a CheckedListBox and load the array of lines directly into the CheckedListBox.
by jvierra
Tue Jan 12, 2021 1:09 pm
Forum: PowerShell GUIs
Topic: Error gridview via Get-AzWvdHostPool
Replies: 1
Views: 373

Re: Error gridview via Get-AzWvdHostPool

That happens when you try to insert an object into a field. You must only insert value type or objects that cast to strings.
by jvierra
Tue Jan 12, 2021 7:10 am
Forum: PowerShell
Topic: Need help with PowerShell Script ?.
Replies: 1
Views: 1343

Re: Need help with PowerShell Script ?.

There are methods that do this automatically.

Please understand that technical forums are not a good place to ask others to provide custom scripts for you.

Start by studying how to use Windows features that do automatic backups and simple file and folder syncing and mirroring.
by jvierra
Tue Jan 12, 2021 7:06 am
Forum: PowerShell
Topic: What are the implications of disabling powershell
Replies: 1
Views: 1178

Re: What are the implications of disabling powershell

PowerShell is a required program in Windows. It cannot be disabled without causing problems for the system.