16,846 reputation
63764
bio website jasonscott.org
location Rochester, NY
age 39
visits member for 5 years, 5 months
seen 6 hours ago

System Administrator in upstate New York.


17h
revised Protect foreach loop when empty list
added 8 characters in body
17h
revised Protect foreach loop when empty list
Updated with new-old info. Wikified.
21h
comment Protect foreach loop when empty list
+1 But with Powershell 3 (circa June 2012) the foreach statement no longer steps into $null, so the error described by OP no longer occurs. See the section "ForEach statement does not iterate over $null" in the Powershell Blog post New V3 Language Features.
Mar
19
comment Move folder with current date name to another location?
You can edit your question to include the details and formatted code.
Mar
19
comment Move folder with current date name to another location?
What have you written so far? What parts aren't working? Any error messages?
Mar
19
reviewed Approve Batch script to increment the text file ans also the value inside the file
Mar
19
revised Batch script to increment the text file ans also the value inside the file
added 13 characters in body
Mar
18
comment powershell format a value that's already a string
+1 Beat me to it whilst editing.
Mar
18
comment powershell format a value that's already a string
.TosString() isn't a method. Is that a typo?
Mar
18
comment Why am i getting execute binary file error?
Please don't cross post the SE sites: superuser.com/questions/891054/…
Mar
16
comment Why can I not see a Computers GPO in my GPMC? How can I force a GP update without a Computers GPO?
The OP blurred the prefix on the "____ Users" OU, it is not named "Users" alone.
Mar
16
comment Allow access to a share on a workgroup using a user which is a part of a domain
The domain user needs to provide local credentials (non-domain) when connecting to the workgroup computer's share. The local credentials are defined on the workgroup computer which hosts the share.
Mar
16
comment Remote Desktop works only with old clients
Why the down vote on this? The question reads as well researched.
Mar
12
comment Getting Rid of the Old/Worthless Data Center Equipment
We just call one of the local computer/electronic recyclers. They send out a truck and couple guys to haul it away. I've never had them refuse to take something, computers, network gear, CRT/LCDs, projects, etc.
Mar
12
comment Windows 2012 fonts gone. Only Wingdings
What's in the C:\Windows\Fonts\ directory? Are other fonts present? Incidentally, that does not appear to be Windows built-in Wingdings.ttf glyphs.
Mar
10
comment Powershell IIS plugin - cmdlets not working
Have you tried Add-PSSnapin WebAdministration instead? The docs suggest the Import-Module on its own may not be sufficient.
Mar
9
revised Windows findstr with AND condition?
added 2 characters in body
Mar
6
comment How do I restore 1/2 of all files in a VSS image? aka Previous Version in bulk?
For 2008+ see diskshadow, for mounting in particular diskshadow expose. If you don't use a separate disk for VSS be aware "...high I/O load will cause shadow copies to be deleted..."
Mar
5
answered Access already mapped network drive in PowerShell
Mar
5
comment Access already mapped network drive in PowerShell
See my link above. The elevated console would not have access.