Reputation
429
Top tag
Next privilege 500 Rep.
Access review queues
Badges
1 13 26
Newest
 Constituent
Impact
~49k people reached

Dec
12
comment Powershell enters foreach loop with null object
It appears that I'm only running v2 (I used $psversiontable), I feel an upgrade coming on :) Thanks for your help.
Dec
11
comment Powershell enters foreach loop with null object
Yes, I am using PowerGUI. My powershell.exe in WindowsPowerShell/v1.0 is 6.1.7600.16385. $PSVersionTable gives CLRVersion: 4.0.30319.17929 and WSManStackVersion: 2.0
Dec
11
comment Powershell enters foreach loop with null object
I get an output of "Hi" and my $Host.Version gives 3.2.0.2237
Dec
11
asked Powershell enters foreach loop with null object
Dec
11
revised Zipping only files using powershell
added 60 characters in body
Dec
10
answered Zipping only files using powershell
Dec
10
accepted Zipping only files using powershell
Dec
10
comment Zipping only files using powershell
Sorry, it was my fault, I'd accidentally changed it to Test-Path-Path! That works great now.
Dec
10
comment Zipping only files using powershell
That looked good, but when I tried it nothing happened. I didn't get a zip file but I also didn't get any errors. Could you expand on what the Set-Content and ReadOnly = false lines do?
Dec
7
comment Zipping only files using powershell
@MDMarra - that works great, thanks. I've just realised that .Net 4.5 isn't supported on Server 2003! I might try calling a zip utility from the command-line, thanks for all your efforts.
Dec
7
comment Zipping only files using powershell
@MDMarra - Only up to 4, I'll install 4.5 and try again, thanks
Dec
7
comment Zipping only files using powershell
@MDMarra - I now get a "make sure that the assembly containing this type is loaded." error, I've tried "[System.AppDomain]::CurrentDomain.GetAssemblies()" but can't see a compression dll
Dec
7
awarded  Commentator
Dec
7
comment Zipping only files using powershell
@MDMarra - Yes, powershell 3 (developed on Win7, deployed on Server 2003), isn't that what the "-com shell.application" does? Or have I messed that up?
Dec
7
asked Zipping only files using powershell
Dec
1
awarded  Vox Populi
Dec
1
awarded  Suffrage
Dec
1
awarded  Critic
Nov
28
awarded  Autobiographer
Nov
23
accepted Security Group vs Distribution Group