# Latest

**URL:** https://forums.powershell.org/latest.md

[Latest](https://forums.powershell.org/latest.md) · [Categories](https://forums.powershell.org/categories.md)

---

## [Guide to Posting Code - Redux](https://forums.powershell.org/t/guide-to-posting-code-redux/15797)

<div class="topic-metadata">

**Author:** [@grokkit](https://forums.powershell.org/u/grokkit)\
**Replies:** 0\
**Last updated:** [March 1, 2021, 10:48pm UTC](https://forums.powershell.org/t/guide-to-posting-code-redux/15797 "2021-03-01T22:48:56Z")

</div>

Discourse uses Markdown for text formatting. There is a reference sheet and quick tutorial here: Markdown Reference You can produce in-line code formatting by wrapping your code in backticks (\`). For example, \`Get-Child…

---

## [Welcome to the new PowerShell Forums](https://forums.powershell.org/t/welcome-to-the-new-powershell-forums/7)

<div class="topic-metadata">

**Author:** [@system](https://forums.powershell.org/u/system)\
**Replies:** 2\
**Last updated:** [January 10, 2022, 2:29pm UTC](https://forums.powershell.org/t/welcome-to-the-new-powershell-forums/7 "2022-01-10T14:29:31Z")

</div>

Welcome to the new PowerShell Community Forums. Here are a few quick tips to help you get started: First, you will need to claim your account. We migrated all the usernames and email addresses from the old forums. A…

---

## [What is important to learn to write programs in network, windows, cyber security?](https://forums.powershell.org/t/what-is-important-to-learn-to-write-programs-in-network-windows-cyber-security/26557)

<div class="topic-metadata">

**Author:** [@alan.revera](https://forums.powershell.org/u/alan.revera)\
**Replies:** 13\
**Last updated:** [September 23, 2026, 9:50pm UTC](https://forums.powershell.org/t/what-is-important-to-learn-to-write-programs-in-network-windows-cyber-security/26557 "2026-09-23T21:50:32Z")

</div>

Hi I am interested in learning how to write programs in networking, windows and cyber security. I am not trying to look for a career, just interest in going deeper in networking, internet, windows. Learning how to write…

---

## [Learning Powershell in Retirement](https://forums.powershell.org/t/learning-powershell-in-retirement/26553)

<div class="topic-metadata">

**Author:** [@DCressey](https://forums.powershell.org/u/DCressey)\
**Replies:** 3\
**Last updated:** [September 20, 2026, 11:31am UTC](https://forums.powershell.org/t/learning-powershell-in-retirement/26553 "2026-09-20T11:31:21Z")

</div>

When I first encountered Powershell, I was already retired. I decided to learn it because it looked like a good replacement for the DOS shell. I stuck around because it gave me a better handle on automation, and becaus…

---

## [Why get-member -name \*date\* doesn't work](https://forums.powershell.org/t/why-get-member-name-date-doesnt-work/26555)

<div class="topic-metadata">

**Author:** [@alan.revera](https://forums.powershell.org/u/alan.revera)\
**Replies:** 37\
**Last updated:** [September 20, 2026, 12:29am UTC](https://forums.powershell.org/t/why-get-member-name-date-doesnt-work/26555 "2026-09-20T00:29:05Z")

</div>

I am starting to learn pipeline. If I type: get-date | get-member -name date works but if I just type get member -name date gave me error. I really cannot find any good instruction on using pipeline. All it said is …

---

## [Custom object array copied from the book doesn't work](https://forums.powershell.org/t/custom-object-array-copied-from-the-book-doesnt-work/26560)

<div class="topic-metadata">

**Author:** [@alan.revera](https://forums.powershell.org/u/alan.revera)\
**Replies:** 7\
**Last updated:** [September 19, 2026, 10:49pm UTC](https://forums.powershell.org/t/custom-object-array-copied-from-the-book-doesnt-work/26560 "2026-09-19T22:49:40Z")

</div>

I copied this from the book and try to input into PS, it gives me error. Here is the script $people = @( \[PSCustomObject\] @(Name= ‘John’; age = 30; occupation = ‘engineer’) \[PSCustomObject\] @(Name =’Alice’; age =25; o…

---

## [What topics are important for what I want to do?](https://forums.powershell.org/t/what-topics-are-important-for-what-i-want-to-do/26556)

<div class="topic-metadata">

**Author:** [@alan.revera](https://forums.powershell.org/u/alan.revera)\
**Replies:** 3\
**Last updated:** [September 18, 2026, 3:25pm UTC](https://forums.powershell.org/t/what-topics-are-important-for-what-i-want-to-do/26556 "2026-09-18T15:25:55Z")

</div>

Hi So far I am here only talking about Powershell because from my understanding, it’s important for what my ultimate goal. I want to learn more about cyber security. I want to learn to write a little bit of program in…

---

## [PowerShell script for setting NTFS permissions](https://forums.powershell.org/t/powershell-script-for-setting-ntfs-permissions/26547)

<div class="topic-metadata">

**Author:** [@brecht-gijbels](https://forums.powershell.org/u/brecht-gijbels)\
**Replies:** 0\
**Last updated:** [September 1, 2026, 11:54am UTC](https://forums.powershell.org/t/powershell-script-for-setting-ntfs-permissions/26547 "2026-09-01T11:54:04Z")

</div>

For anyone interested, we created a PowerShell script to manage NTFS permissions. Feel free to have a look if it can be of use to you.

---

## [Search from text in string and write index](https://forums.powershell.org/t/search-from-text-in-string-and-write-index/26544)

<div class="topic-metadata">

**Author:** [@Darkveemon1](https://forums.powershell.org/u/Darkveemon1)\
**Replies:** 3\
**Last updated:** [August 31, 2026, 2:25pm UTC](https://forums.powershell.org/t/search-from-text-in-string-and-write-index/26544 "2026-08-31T14:25:59Z")

</div>

Hi, I have a bit of an issue with a script. Basically I have a text of variable length inside a variable, I have to extract some specific parts when a specific string is present. Here is an example of my text çCodeç:1…

---

## [PowerShell 7.x ISE](https://forums.powershell.org/t/powershell-7-x-ise/26545)

<div class="topic-metadata">

**Author:** [@NJDevils28](https://forums.powershell.org/u/NJDevils28)\
**Replies:** 2\
**Last updated:** [August 28, 2026, 5:18pm UTC](https://forums.powershell.org/t/powershell-7-x-ise/26545 "2026-08-28T17:18:54Z")

</div>

Hi all, I’ve been working on PS7 ScriptDesk for a while now, and I just released the latest version. For anyone who hasn’t seen it before, PS7 ScriptDesk is a Windows desktop IDE built specifically for PowerShell 7. T…

---

## [Search All drives](https://forums.powershell.org/t/search-all-drives/26506)

<div class="topic-metadata">

**Author:** [@jctech2025](https://forums.powershell.org/u/jctech2025)\
**Replies:** 6\
**Last updated:** [August 19, 2026, 10:36am UTC](https://forums.powershell.org/t/search-all-drives/26506 "2026-08-19T10:36:40Z")

</div>

Hi All, Been a while since I posted here. I’m trying to do a search for a file. Instead of getting only results from the C: drive I’m trying to include usb and mapped drives as well. So far I’ve only gotten get-child…

---

## [Invoke-RestMethod : The request was aborted: Could not create SSL/TLS secure channel](https://forums.powershell.org/t/invoke-restmethod-the-request-was-aborted-could-not-create-ssl-tls-secure-channel/26540)

<div class="topic-metadata">

**Author:** [@Darkveemon1](https://forums.powershell.org/u/Darkveemon1)\
**Replies:** 2\
**Last updated:** [August 18, 2026, 9:42am UTC](https://forums.powershell.org/t/invoke-restmethod-the-request-was-aborted-could-not-create-ssl-tls-secure-channel/26540 "2026-08-18T09:42:31Z")

</div>

Hi, I have a simple script that runs a Post API $MyUrl = "https://..." Invoke-RestMethod -Uri MyUrl -Method POST But i get the error in the title. I tried it on 3 different PC’s, with Windows 7, Windows 10 and Windows …

---

## [Training Resource Recommendations specifically for programmers?](https://forums.powershell.org/t/training-resource-recommendations-specifically-for-programmers/26534)

<div class="topic-metadata">

**Author:** [@julian](https://forums.powershell.org/u/julian)\
**Replies:** 5\
**Last updated:** [August 16, 2026, 12:32pm UTC](https://forums.powershell.org/t/training-resource-recommendations-specifically-for-programmers/26534 "2026-08-16T12:32:59Z")

</div>

Me and a bunch of other programmers in my team are trying to use more powershell instead of wsl/bash and cmd. There are obviously some basics I miss, and trial-and-error has cost me quite some time (I have run into some …

---

## [Suggested Training Exercise](https://forums.powershell.org/t/suggested-training-exercise/26538)

<div class="topic-metadata">

**Author:** [@DCressey](https://forums.powershell.org/u/DCressey)\
**Replies:** 0\
**Last updated:** [August 16, 2026, 11:19am UTC](https://forums.powershell.org/t/suggested-training-exercise/26538 "2026-08-16T11:19:58Z")

</div>

Here is a training exercise that might help you build up your scripting skills once you have completed the basic exercises from your tutorial. The exercise is to build a template engine in Powershell. I actually did th…

---

## [Invoke-RestMethod, output too long](https://forums.powershell.org/t/invoke-restmethod-output-too-long/26532)

<div class="topic-metadata">

**Author:** [@Darkveemon1](https://forums.powershell.org/u/Darkveemon1)\
**Replies:** 1\
**Last updated:** [August 10, 2026, 1:03pm UTC](https://forums.powershell.org/t/invoke-restmethod-output-too-long/26532 "2026-08-10T13:03:53Z")

</div>

Hi, I have a bit of a prolem with an API. The API runs and returns partial informations, the output is like cropped. Here is my code $Path = "C:\\Temp\\Details.txt" $response = Invoke-RestMethod -Uri $url -Method Get -We…

---

## [DomainHealthChecker updated to version 2.2.0](https://forums.powershell.org/t/domainhealthchecker-updated-to-version-2-2-0/26513)

<div class="topic-metadata">

**Author:** [@T13nn3s](https://forums.powershell.org/u/T13nn3s)\
**Replies:** 2\
**Last updated:** [August 3, 2026, 1:01pm UTC](https://forums.powershell.org/t/domainhealthchecker-updated-to-version-2-2-0/26513 "2026-08-03T13:01:30Z")

</div>

Hi all, I am proud to present to you my module, which I first published in 2021 and is now available online in version 2.2.0 as of July 2026. It is the DomainHealthChecker module, published on GitHub and the PowerShell …

---

## [After setting a variable in a session it cant be retrieved with Get-Variable](https://forums.powershell.org/t/after-setting-a-variable-in-a-session-it-cant-be-retrieved-with-get-variable/26509)

<div class="topic-metadata">

**Author:** [@eliassal2](https://forums.powershell.org/u/eliassal2)\
**Replies:** 4\
**Last updated:** [July 27, 2026, 1:06pm UTC](https://forums.powershell.org/t/after-setting-a-variable-in-a-session-it-cant-be-retrieved-with-get-variable/26509 "2026-07-27T13:06:04Z")

</div>

I understand that we can setup an env variable as follows: $env:SmithySettings\_ScriptTokens\_\_ReleaseVersion = “2.4.0-ci.99” I ran my app command and it pickec up the right value. However, when I tried to unset and re…

---

## [Request for account deletion](https://forums.powershell.org/t/request-for-account-deletion/26507)

<div class="topic-metadata">

**Author:** [@alex-powershell-noob](https://forums.powershell.org/u/alex-powershell-noob)\
**Replies:** 0\
**Last updated:** [July 15, 2026, 1:13pm UTC](https://forums.powershell.org/t/request-for-account-deletion/26507 "2026-07-15T13:13:33Z")

</div>

Hello Forum Admins, I would like to request a account deletion. Thx guys and have a nice one. With best regards, Alex…

---

## [Usename to machine name script](https://forums.powershell.org/t/usename-to-machine-name-script/26505)

<div class="topic-metadata">

**Author:** [@ashvindora](https://forums.powershell.org/u/ashvindora)\
**Replies:** 1\
**Last updated:** [July 14, 2026, 7:02pm UTC](https://forums.powershell.org/t/usename-to-machine-name-script/26505 "2026-07-14T19:02:15Z")

</div>

I am in a domain environment. I have MECM in my environment. I want a script when i type in the username, it will give me the machine name from MECM. Is this possible?

---

## [Why on earth are ActiveDirectory permission errors terminating?](https://forums.powershell.org/t/why-on-earth-are-activedirectory-permission-errors-terminating/26500)

<div class="topic-metadata">

**Author:** [@pcarr](https://forums.powershell.org/u/pcarr)\
**Replies:** 0\
**Last updated:** [July 9, 2026, 3:24pm UTC](https://forums.powershell.org/t/why-on-earth-are-activedirectory-permission-errors-terminating/26500 "2026-07-09T15:24:34Z")

</div>

I’m writing a script that batch modifies and deletes computers using Move-ADObject, Set-ADComputer, and Remove-ADComputer. I would prefer to use pipelines with the -ErrorVariable parameter, because it’s a bit cleaner and…

---

## [Unable to return properties of Azure Recovery Vault returns empty values](https://forums.powershell.org/t/unable-to-return-properties-of-azure-recovery-vault-returns-empty-values/26496)

<div class="topic-metadata">

**Author:** [@AlexP01482](https://forums.powershell.org/u/AlexP01482)\
**Replies:** 4\
**Last updated:** [June 17, 2026, 6:43am UTC](https://forums.powershell.org/t/unable-to-return-properties-of-azure-recovery-vault-returns-empty-values/26496 "2026-06-17T06:43:19Z")

</div>

Hi I’m tryin to get the backup properties of an Azure REcoery Vault. Get-AzRecoveryServicesVaultProperty seems to be the right command but the StorageModelType always comes back blank Any Ideas? Alex

---

## [Import-CSV, wrong file](https://forums.powershell.org/t/import-csv-wrong-file/26497)

<div class="topic-metadata">

**Author:** [@Darkveemon1](https://forums.powershell.org/u/Darkveemon1)\
**Replies:** 1\
**Last updated:** [June 12, 2026, 12:53pm UTC](https://forums.powershell.org/t/import-csv-wrong-file/26497 "2026-06-12T12:53:14Z")

</div>

Hi, I’m having a problem I cannot explain and I hope you can help me. I have 2 CSV files with sales of every month of the year, they are structured like so: 6 columns with fixed values and 365 columns, one for every day.…

---

## [Run command get-service and include the service's name?](https://forums.powershell.org/t/run-command-get-service-and-include-the-services-name/26380)

<div class="topic-metadata">

**Author:** [@peter\_zz](https://forums.powershell.org/u/peter_zz)\
**Replies:** 11\
**Last updated:** [June 9, 2026, 4:38pm UTC](https://forums.powershell.org/t/run-command-get-service-and-include-the-services-name/26380 "2026-06-09T16:38:45Z")

</div>

I have a script that gets me a list of services on a remote computer Get-Process -name micro\* | select ProcessName, name, id, starttime | Format-Table I can’t for the life of me figure out how to include the actual se…

---

## [Generate SharePoint Owners, Members, and Visitors Report](https://forums.powershell.org/t/generate-sharepoint-owners-members-and-visitors-report/26479)

<div class="topic-metadata">

**Author:** [@vs45](https://forums.powershell.org/u/vs45)\
**Replies:** 1\
**Last updated:** [June 9, 2026, 4:22pm UTC](https://forums.powershell.org/t/generate-sharepoint-owners-members-and-visitors-report/26479 "2026-06-09T16:22:21Z")

</div>

Hello everyone, I want to generate a list of all SharePoint sites in the tenant, showing the owners and members for each site, and, if possible, the visitors as well. I have been experimenting with the following module…

---

## [Print test page on default printer](https://forums.powershell.org/t/print-test-page-on-default-printer/26397)

<div class="topic-metadata">

**Author:** [@kkoop](https://forums.powershell.org/u/kkoop)\
**Replies:** 6\
**Last updated:** [May 20, 2026, 7:08pm UTC](https://forums.powershell.org/t/print-test-page-on-default-printer/26397 "2026-05-20T19:08:22Z")

</div>

I thought this would be simple, but apparently not. I would like to send a test page to the default printer on the workstation I’m logged into. It should be the same test page I would get if I opened Printers and Scan…

---

## [Server goes dorment after 5 instances](https://forums.powershell.org/t/server-goes-dorment-after-5-instances/26387)

<div class="topic-metadata">

**Author:** [@Adrian](https://forums.powershell.org/u/Adrian)\
**Replies:** 7\
**Last updated:** [May 20, 2026, 2:42pm UTC](https://forums.powershell.org/t/server-goes-dorment-after-5-instances/26387 "2026-05-20T14:42:05Z")

</div>

Afternoon all, I’m attempting to write a very simple PS script to query my SQL Agents failed job history to create a report. SQL instances are on several servers but in the same domain. After queering the filth or so …

---

## [Powershell is Missing Easy Command Substitution ^](https://forums.powershell.org/t/powershell-is-missing-easy-command-substitution/26393)

<div class="topic-metadata">

**Author:** [@SUPERGOVERNMENT](https://forums.powershell.org/u/SUPERGOVERNMENT)\
**Replies:** 2\
**Last updated:** [May 18, 2026, 2:25pm UTC](https://forums.powershell.org/t/powershell-is-missing-easy-command-substitution/26393 "2026-05-18T14:25:10Z")

</div>

Hey Powershell Peeps. Was curious if/when Powershell will get a bash style command substitution? In Linux, I can have something like the below: root$: systemctl status httpd root$: ^status^restart That allows to quic…

---

## [Function in Expression field](https://forums.powershell.org/t/function-in-expression-field/26391)

<div class="topic-metadata">

**Author:** [@RobR](https://forums.powershell.org/u/RobR)\
**Replies:** 1\
**Last updated:** [May 15, 2026, 10:50am UTC](https://forums.powershell.org/t/function-in-expression-field/26391 "2026-05-15T10:50:54Z")

</div>

Hello Community, i would like to calculate a value ProcTimeTotalMinutes inside an expression field with a function. The function will be triggered, but the result will not be displayed. Where is the problem? Thanks F…

---

## [PowerShell 7.x ISE-Style App — Looking for Interest, Testers, Feedback, and Code Review](https://forums.powershell.org/t/powershell-7-x-ise-style-app-looking-for-interest-testers-feedback-and-code-review/26371)

<div class="topic-metadata">

**Author:** [@NJDevils28](https://forums.powershell.org/u/NJDevils28)\
**Replies:** 21\
**Last updated:** [May 13, 2026, 6:03pm UTC](https://forums.powershell.org/t/powershell-7-x-ise-style-app-looking-for-interest-testers-feedback-and-code-review/26371 "2026-05-13T18:03:19Z")

</div>

Hi everyone, My name is Ron, and I have been working on a Windows desktop app called PowerShellStudio. The goal is to provide a modern PowerShell 7.x ISE-style scripting environment for Windows. The app is written in .…

---

## [Build EXE in .net or .net core](https://forums.powershell.org/t/build-exe-in-net-or-net-core/26375)

<div class="topic-metadata">

**Author:** [@krzydoug](https://forums.powershell.org/u/krzydoug)\
**Replies:** 0\
**Last updated:** [May 6, 2026, 9:31pm UTC](https://forums.powershell.org/t/build-exe-in-net-or-net-core/26375 "2026-05-06T21:31:24Z")

</div>

A conversation started on another thread. This is a demo using PowerShellProTools cmdlet Merge-Script to package a ps1 as an executable. This demo code contains two different configurations. The default configuration wi…

[Next page](https://forums.powershell.org/latest.md?page=1)
