powershell - The property System.Boolean IsReadOnly=False -


can me on below issue.

############################### # retrieve rule definitions ############################### agtrace "" agtrace "=====================================" agtrace "retrieving agtl rule definitions" agtrace "=====================================" #remove read-only flag on local rule definitions try {     get-childitem "$localpath\ruledefinitions" | set-itemproperty -name isreadonly -value $false } catch {     write-host "unable clear read-only flag"     write-host $error[0].exception.message } copy-files -sourcefolder "$agsource\agtl\ruledefinitions" -destfolder "$localpath\ruledefinitions"   agtrace "" agtrace "=====================================" agtrace "retrieving $agid rule definitions" agtrace "=====================================" if (test-path "$agsource\$agid\ruledefinitions") {     agtrace "rule definitions exist $agid"     copy-files -sourcefolder "$agsource\$agid\ruledefinitions" -destfolder "$localpath\ruledefinitions" } else {     agtrace "no rule definitions exist $agid" } 

message executed user: abc\ankq_adc_agd_extr. set-itemproperty : property system.boolean isreadonly=false not exist or not found. @ e:\agd4.0.1\full\dw-extractor\agdiagnostics_r4.0.1_coreinstall\ag4stg_4.0.0\execute_load_jp.ps1:145 char:47 + get-childitem "$localpath\supplementalagta" | set-itemproperty -name isreadonly ... +
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : readerror: (system.boolean isreadonly=false:psnoteproperty) [set-itemproperty], ioexcept ion + fullyqualifiederrorid : setpropertyerror,microsoft.powershell.commands.setitempropertycommand. process exit code 1. step failed.

you don't need use set-itemproperty ,the below code should fine changing property readonly:

 get-childitem "d:\testfolder" | %{$_.isreadonly = $true} 

you can same set-itemproperty:

 get-childitem "d:\testfolder" | get-itemproperty | set-itemproperty -name isreadonly -value $false 

Comments

  1. Powershell - The Property System.Boolean Isreadonly=False - >>>>> Download Now

    >>>>> Download Full

    Powershell - The Property System.Boolean Isreadonly=False - >>>>> Download LINK

    >>>>> Download Now

    Powershell - The Property System.Boolean Isreadonly=False - >>>>> Download Full

    >>>>> Download LINK sF

    ReplyDelete

Post a Comment

Popular posts from this blog

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -