I found a command in PS that is JUST what I needed: start-transcript.
Now I don’t have to be asking myself…”How was it I did that?”
Is there any reason I would want to move from Windows PowerShell to PowerShell 7?
Chuck Billow
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Windows » Windows 10 » Windows 10 versions – no longer supported » Windows 10 version 2004 – May 2020 Update » PowerShell questions
Tags: PowerShell
Chuck,
Here’s my take on your question.
HTH
RG,
It seems that (at least now) Windows PS does pretty much what I have needed. I have looked at Linux, but don’t spend enough time with it to warrant it becoming my reason for the move.
If MS’s plans are NOT to move away from Windows PS, then I suspect that for my meager purposes Windows PS is then just fine.
RG, think how much less (Hopefully!) I’ll have to harass you now that I will be able to look back and say “Oh yeah, THAT’S how I was shown to do…” Now that start-transcript is in my PowerShell profile!
Chuck Billow
Chuck,
Since Microsoft is no longer enhancing Windows Powershell I recommend you strongly consider PS 7. When Microsoft stops enhancements usually end-of-life is announced fairly quickly. Since there are some differences between the two, I think you should put your time and energy into the one that will be around the longest.
--Joe
OK, I was/am trying to control where the transcript file belongs and is created.
My PS1 file is
# Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
$profile
Set-Location C:\
Start-Transcript -Path “C:\Users\OL Man\Documents\WindowsPowerShell\Transcripts\Transcript.txt” -NoClobber.
Clear-Host
But if I then start PowerShell and run a command and exit, there is no transcript file.
If I instead run the Start-Transcript command with no path, the file is created in my Documents folder.
IS my Start-Transcript file wrong, or is what I am trying to do not feasible?
Chuck Billow
Dark stabs here (I am not a user of PowerShell, so please excuse any impertinence) –
1 – Does the target folder already exist / does PowerShell create a path when needed?
2 – Is there supposed to be a period following -NoClobber ?
3 – When I copy the Start-Transcript line, the quotation marks are ‘smart quotes’. But this may be just the way that this site does things, and not what you really have in the file.
After reading Example 2 here:
1a – See [ -Path ] comment
4 – Is [ …\Transcript.txt ] non-existent, or do you delete it between runs?
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications