Search found 11 matches

by jsclmedave
Tue Jul 22, 2008 5:52 am
Forum: PowerShell
Topic: Copy-Item E:\Path -recurse -force
Replies: 10
Views: 15431

Copy-Item E:\Path -recurse -force

To copy one folder to another you shouldn't need the * like you have. Look at the help examples for Copy-Item.


Once I took the * out of the Copy-Item it started working. I need it for the Remove-Item or it will remove the home folder as well...

Thank You All..!!
by jsclmedave
Tue Jul 22, 2008 5:10 am
Forum: PowerShell
Topic: Copy-Item E:\Path -recurse -force
Replies: 10
Views: 15431

Copy-Item E:\Path -recurse -force

I don't think the expressions you are using the right ones for what I think you want to accomplish. The -recurse parameter when used with Copy-Item is intended to copy entire subdirectories.Try using a DIR expression piped to Copydir c:test -recurse -include *.dll | copy -destination c:temp -force ...
by jsclmedave
Tue Jul 22, 2008 4:26 am
Forum: PowerShell
Topic: Copy-Item E:\Path -recurse -force
Replies: 10
Views: 15431

Copy-Item E:\Path -recurse -force

One thing I noticed was that all the files that errors out are .dll files.. Wonder if that has something to do with it..?
by jsclmedave
Tue Jul 22, 2008 4:04 am
Forum: PowerShell
Topic: Copy-Item E:\Path -recurse -force
Replies: 10
Views: 15431

Copy-Item E:\Path -recurse -force

Okay On my laptop, If I just have some txt files it works every time...If I try to use the files from the Server, with all the subfolders and aspx, dll, files etc. I am getting the same errors.I wonder if there is a limitation on depth of files and or sub folders with the -recurse..?I will copy them...
by jsclmedave
Tue Jul 22, 2008 3:40 am
Forum: PowerShell
Topic: Copy-Item E:\Path -recurse -force
Replies: 10
Views: 15431

Copy-Item E:\Path -recurse -force

I am trying to copy some files using -force -recurse which should over write any existing files that have the same name. However I am getting a flood of red stating that - + Copy-Item <<<< E:PATH* -destination E:PATH -force -recurse Copy-Item : The file 'E:PATHbinxmldiffpatch.dll' already exists. At...
by jsclmedave
Tue Jul 22, 2008 3:40 am
Forum: PowerShell
Topic: Copy-Item E:\Path -recurse -force
Replies: 10
Views: 15431

Copy-Item E:\Path -recurse -force

I am trying to copy some files using -force -recurse which should over write any existing files that have the same name. However I am getting a flood of red stating that - + Copy-Item <<<< E:PATH* -destination E:PATH -force -recurse Copy-Item : The file 'E:PATHbinxmldiffpatch.dll' already exists. At...
by jsclmedave
Thu May 08, 2008 11:54 pm
Forum: PowerShell
Topic: computer asset inventory
Replies: 59
Views: 39675

computer asset inventory

Somewhat on the same topic. I am actually going to take the bit about the credentials and apply it to this. Hope it helps... Tim Bolton Function GetDriveSpace { #Retrieve Drive Space on Remote Computers #SET TARGET SERVERS$servers = "ServerName", "ServerName" foreach ($target in $servers){ write-out...
by jsclmedave
Sun Apr 06, 2008 11:20 pm
Forum: PowerShell
Topic: Windows PowerShell 101 DVD Question
Replies: 5
Views: 5993

Windows PowerShell 101 DVD Question

Thank you all for the clarification and detailed information! Don - The module states the correct answer is - 129 -band 88 -band 129

So yes, I believe it
by jsclmedave
Fri Apr 04, 2008 7:17 am
Forum: PowerShell
Topic: Windows PowerShell 101 DVD Question
Replies: 5
Views: 5993

Windows PowerShell 101 DVD Question

Where does the 129 come in? They are all false which I get. The 4th BIT which is 8 in not true. PS Z:> [bool]0FalsePS Z:> [bool]1TruePS Z:> [bool]-1TruePS Z:> [bool](129 -band 8)FalsePS Z:> [bool](137 -band 8)TruePS Z:> [bool](8 -band 8)TruePS Z:> [bool](8 -band 129)FalsePS Z:> [bool](8 -band 192)Fa...
by jsclmedave
Fri Mar 28, 2008 6:43 am
Forum: PowerShell
Topic: Windows PowerShell 101 DVD Question
Replies: 5
Views: 5993

Windows PowerShell 101 DVD Question

Question is -

Type the comparison that will allow PowerShell to determine if the fourth bit is "turned on" in the value 192.

Answer is -

129 -band 8
8 -band 129


I am at a loss here... If this is indeed correct can someone please explain?