You are not logged in.
Pages: 1
Hello,
I;m trying to make a simple script that will loop through all available drive letters and disable all of them.
This is what I've done so far:
for( $i=67;$i -le 90; $i++ ) { Disable-ComputerRestore [char]$i + ':\' }
It seems the char type is not being processed and the slash is not being accepted.
Please help.
Thank you
Last edited by Eehixohw (20 Jan 2013 13:58)
Offline
hi
try this:
PS II> for( $i=67;$i -le 90; $i++ ) { Disable-ComputerRestore $([char]$i + ':\') }
Last edited by jumper (21 Jan 2013 16:44)
Offline
Pages: 1