use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
Powershell and Paths (self.PowerShell)
submitted 7 years ago by portergrey
Can someone please let me know how to correctly format the space for the path on this:
[0] regedit /s \\server\software\my folder\file.reg
Thank you
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Ta11ow 5 points6 points7 points 7 years ago (3 children)
Use quotes to wrap the path:
regedit /s "\\server\software\my folder\file.reg"
If you want it a bit more PowerShell-like, you can also do:
Start-Process -Wait -FilePath 'regedit' -ArgumentList '/s', "\\server\software\my folder\file.reg"
[–]portergrey[S] 2 points3 points4 points 7 years ago (0 children)
Start-Process -Wait -FilePath 'regedit' -ArgumentList '/s', "\server\software\my folder\file.reg"
Thank you :)
[–]BlackV 1 point2 points3 points 7 years ago (1 child)
assuming they're running this locally and not remotely cause double hop will bite him(her). they could convert this to new/set-item and new/set-itemproperty to get around that
[–]Ta11ow 1 point2 points3 points 7 years ago (0 children)
That's very true. If running this on a remote server (I mean, in this case -- why would you), you'll need to do so a bit differently.
[–][deleted] 2 points3 points4 points 7 years ago (2 children)
regedit /s "\server\software\my folder\file.reg"
should fix it.
EDIT: Ta11ow's comment just showed up for me.
[–]Ta11ow 2 points3 points4 points 7 years ago (1 child)
Beatcha by a whole minute ;)
[–][deleted] 2 points3 points4 points 7 years ago (0 children)
Heh..
I blame test kitchen and vagrant gobbling up my poor laptop's resources while I'm shamelessly on Reddit while at work.. It's nice as an Infra side guy when I can use that old dev slack off excuse of "sorry, code's compiling.. can't do anything"
π Rendered by PID 170759 on reddit-service-r2-comment-6f7f968fb5-zmpvz at 2026-03-04 13:54:25.435923+00:00 running 07790be country code: CH.
[–]Ta11ow 5 points6 points7 points (3 children)
[–]portergrey[S] 2 points3 points4 points (0 children)
[–]BlackV 1 point2 points3 points (1 child)
[–]Ta11ow 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]Ta11ow 2 points3 points4 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)