Quantcast
Channel: Claims based access platform (CBA), code-named Geneva forum
Viewing all articles
Browse latest Browse all 2535

Need Help Reagrding Drive Encryption

$
0
0

Hi,

Abhijith here, i am new to this forum, actually i got struck in following scenario, need your help to resolve this

Here i am trying to encrypt my removable media(F:) using python but getting the error, my script is

from win32com.client import Dispatch

strComputer="."
objwmiservices=Dispatch("WbemScripting.SWbemLocator")
objSwbemservices=objwmiservices.ConnectServer(strComputer,"\\ROOT\\CIMV2\\Security\\MicrosoftVolumeEncryption")
colitem=objSwbemservices.ExecQuery("SELECT * FROM Win32_EncryptableVolume")
for objitem in colitem:
    if Driveletter=="F:"
       objItem.Encrypt()
       print objItem.GetConversionStatus



its showing following error

'int' object is not callable

please help to solve this

thanks


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>