Where is the Documents Folder?

In this article, our guest blogger—Brent Challis—provides a different approach to retrieving the correct Documents folder. The Problem One of the problems working with multiple computers is that the Documents folder path could be:                 C:\Users\<user>\OneDrive\Documentsor                C:\Users\<user>\Documents There are many…
Read More

Out-CSV Revised

A while ago I published a short function to create CSV strings. While working on another task I came across $OFS, which is something I know about but never really think about. $OFS is an intrinsic PowerShell variable that controls…
Read More

Out-CSV

Sometimes it’s the little things that can make life easier. Here’s one of them. We know that PowerShell treats comma separated items as an array: PS C:\> $a=”a”,1,”b”,”jeff”,4 PS C:\> $aa1bjeff4PS C:\> But what if you want back in its…
Read More

Get ServiceAccount Name with ADSI

One drawback to the service objects returned from Get-Service is that you can’t see what account the service is running under, often referred to as the service account. This will be something like LocalService or perhaps even a special user…
Read More

PowerShell Tree

Of course since I’ve posted a VBScript version of the Tree command, I had to do it in PowerShell. On one hand, this would have been pretty straightforward since PowerShell can use COM objects and I could have simply reused…
Read More

Get Network Connections

I love that part of my job is helping people out in the forums as ScriptingAnswers.com. A recent post asked about finding out what network drives were mapped on a remote computer using PowerShell. The task sounded familiar so I…
Read More

RSS SAPIEN Info Center

Search

Enter any query and press enter
Advanced search operators:
+ ⟶ Term must appear
- ⟶ Term must not appear
"" ⟶ Exact string must appear
How do I use these?

Join our mailing list

Enter your email address to subscribe to our mailing lists for Monthly Blog Digests, Product Announcements and more (you can choose which you receive once you sign-up!)

Tags

Categories

Archives

Dashboard