Search found 14674 matches
- Wed Jan 27, 2021 3:12 pm
- Forum: PowerShell
- Topic: Piping commands in powershell to ssh not working
- Replies: 1
- Views: 14
Re: Piping commands in powershell to ssh not working
Too many baqtics. Only one per meta character required. Two escapes the character.
- Fri Jan 22, 2021 10:42 am
- Forum: PowerShell
- Topic: O365 Dynamic Group Export issue
- Replies: 2
- Views: 350
Re: O365 Dynamic Group Export issue
You cannot export from the output of Format-Table. The output from Format-Table is a set of formatter objects and not the objects you are trying to export. Remove that from the pipeline and try again.
- Fri Jan 22, 2021 10:10 am
- Forum: PowerShell
- Topic: Sorting hashtable
- Replies: 5
- Views: 331
Re: Sorting hashtable
sorry when I'm to stupid. I'm still learning and a forum is for beginners and advanced guys. And by the way, this answer was not very friendly. :oops: Why would you say that? Your question and the guess at how to use a CmdLet show you have not taken time to learn PowerShell. I wanted you to underst...
- Fri Jan 22, 2021 4:45 am
- Forum: PowerShell
- Topic: Sorting hashtable
- Replies: 5
- Views: 331
Re: Sorting hashtable
$SendReceivedMailsDaysOutput | Sort-Object -Property Day -Descending
I strongly recommend that you learn PowerShell before proceeding. Guessing will not work and learning PowerShell will also teach you how to read the documentation and help.
Start with this: Windows PowerShell™ TFM
I strongly recommend that you learn PowerShell before proceeding. Guessing will not work and learning PowerShell will also teach you how to read the documentation and help.
Start with this: Windows PowerShell™ TFM
- Fri Jan 22, 2021 3:11 am
- Forum: PowerShell
- Topic: Sorting hashtable
- Replies: 5
- Views: 331
Re: Sorting hashtable
See the following article for instructions on how to sort.
https://docs.microsoft.com/en-us/powers ... rshell-5.0
https://docs.microsoft.com/en-us/powers ... rshell-5.0
- Tue Jan 19, 2021 12:50 pm
- Forum: PowerShell
- Topic: ListView items set forecolor
- Replies: 3
- Views: 374
Re: ListView items set forecolor
Also note that this works: $lvsi = [System.Windows.Forms.ListViewItem+ListViewSubItem]::new($lvi,'hello world','Red','black','TImes') Your example is missing the owner which is required on subitems. ListviewSubItem does not have an "Add" method so I suspect you have other mistakes in your code. The ...
- Tue Jan 19, 2021 12:36 pm
- Forum: PowerShell
- Topic: ListView items set forecolor
- Replies: 3
- Views: 374
Re: ListView items set forecolor
If I remember correctly you will have to create ne3w2 color objects and font objects so the objects are references and not static objects. The API ignores these if they are of the wrong type. $c = [system.drawing.color]::FromKnownColor('Black') Here is another way to add colored items: $items=@( [PS...
- Tue Jan 19, 2021 9:10 am
- Forum: PowerShell GUIs
- Topic: Simple GUI
- Replies: 1
- Views: 75
Re: Simple GUI
Sorry but there is not enough information to answer your question.
Suggestion: To do repeated actions in a form use a timer tick.
Suggestion: To do repeated actions in a form use a timer tick.
- Tue Jan 19, 2021 9:08 am
- Forum: VBScript
- Topic: Download files from FTP
- Replies: 1
- Views: 72
Re: Download files from FTP
It is possible however, I recommend using PowerShell as VBScript is no longer a useful language on modern systems.
- Mon Jan 18, 2021 8:02 am
- Forum: PowerShell
- Topic: Disable/Enable AD user account from CSV
- Replies: 1
- Views: 395
Re: Disable/Enable AD user account from CSV
"-contains" only works for collections. Use "-match" or "-eq".
Here is a good place to start to learn basic PowerShell and programming: https://www.sapien.com/books_training/W ... werShell-4
Here is a good place to start to learn basic PowerShell and programming: https://www.sapien.com/books_training/W ... werShell-4