Tips or Improvements for my Bitlocker Encryption Test Script

Hi Guys,
I just finished a little script to check if a drive is encrypted with Bitlocker. I wanted to post it here to see if anyone had some constructive criticism.
Here you go:
$computer = import-csv C:\scripts\bitlock3.csv
$namespace = "root\CIMV2\Security\MicrosoftVolumeEncryption"
Foreach($line in $computer){
$a=GWmi -class Win32_EncryptableVolume -computername $line.comp -namespace $namespace
$BitStat=$a.ProtectionStatus
If ($bitstat -eq 1) {Write-host $line.comp "is encrypted"}
Else {Write-host $line.comp "is NOT encrypted"}

You're very welcome.
This adjustment removes all Write-Output statements and replaces them with a hashtable of the computer name and encryption status. Objects are created from those hashtables, they're then sorted by status to have 'NOT Encrypted' appear at the top of the output
CSV, and then sorted by computer name (just a habit of mine):
$namespace = 'root\cimv2\Security\MicrosoftVolumeEncryption'
Import-Csv C:\Scripts\bitlock3.csv | ForEach-Object {
$computerName = $_
try {
$status = Get-WmiObject -Class Win32_EncryptableVolume -ComputerName $computerName -Namespace $namespace -ErrorAction Stop
if ($status.ProtectionStatus -eq 1) {
$props = @{
ComputerName = $computerName
Status = 'Encrypted'
} else {
$props = @{
ComputerName = $computerName
Status = 'NOT Encrypted'
} catch {
$props = @{
ComputerName = $computerName
Status = "ERROR - $_"
New-Object PsObject -Property $props
} | Sort Status -Descending | Sort Name | Export-Csv .\bitlockerStatus.csv -NoTypeInformation
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing)

Similar Messages

  • Setting timeout for all the web test scripts in the solution

    Hello,
    I have around 16 web test scripts (using VSTS 2010 ultimate version) in my project (in a solution). By default the timeout set for each request is 60 sec. I need to increase the timeout to 180 sec. Currently, I am clicking on each request and modifying
    the timeout parameter from the Properties window.
    Is there any common setting for timeout available which would be acting across all the scripts?
    Thanks.

    Hello,
    We only can set Timeouts for a separate request in Visual Studio Web Test. There is no way to set Timeout for all requests in VS IDE. But you can write you own logic code using
    Timeout Property in a web test plugin to set Timeout for all requests in a web test.
    About how to write a web test plugin, please see:
    How to: Create a Web Performance Test Plug-In
    Best regards,
    Amanda Zhu <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

  • Urgent need for AP and PO test scripts/scenarios and training user manuals

    Hi There,
    Can anyone send me test scripts/scenarios and training user manuals for AP and PO
    Please send me the docs as soon as possible on [email protected]
    I will really appreciate your help.
    Regards
    Kush

    Dear
    this topics must be included in the testing scenario
    1-Enter Supplier Data     Enter information for a given supplier, including supplier sites/addresses
    2-Create Invoice Batch: Enter information for Invoice Batch header
    3-Create a Standard Invoice: Enter information for a standard invoice in an invoice batch
    4-Invoice Distribution: Enter information details of a selected invoice
    5-Schedule Payment     Create Payment Schedule
    6-Create a Credit Memo: Enter information to create a credit memo
    7-Create Employee Exp:Enter information for an Employee Expense report
    8:Validate an Invoice: Validate an Invoice
    9-Account an Invoice: Create Accounting Entries for an Invoice
    10-Create a Quick Check: Enter data to create a Quick Payment
    11-Select Invoices for Payment:Enter data to create a preliminary list of invoices to pay, review the list, and do some changes.
    12-Format and Print a Payment Batch: Perform tasks required to Format a payment batch
    13-Confirm a Payment Batch:Perform tasks required to Confirm a payment batch
    14-Transfer to General Ledger

  • Need Test  Scripts & User Training Manuals for AP  &  PO modules

    Hi There,
    f you have any docs.. for AP and PO - test scripts/scenarios and training user manuals.
    Please send me the docs as soon as possible
    I will really appreciate your help

    Go to www.erpschools.com then on the left side menu click user guides and select 11i or R12. It will take you directly to the page where you can find all user guides.
    Thanks
    Prudhvi
    www.erpschools.com
    www.oracleschools.com

  • Test Scripts

    Some one please let me  know what a test script is.....and how it is written...I need to write it for the HR modules....This is in context with support stacks being applied to SBX. ...and for testing that....Please also let me know if it is the responsibility of a functional consultant....
    Message was edited by:
            Anu Rajagopal

    Hi,
    normally a test script contains information like; logical steps per given situation (input), per step an expected result (output), pre-conditions for execution of the test script, reference to requirement / design document. A separate area for test script final result incl. name of tester and sign-off the test result is required. The test script can only be marked as passed if all logical steps are finished succesfull according to the expected result(s).
    (example: [Input] Go to menu x, click on y; [output] y runned succesfully)
    The test-script is used to examine whether the system displays the desired behaviour under specific (in your case HR specific) circumstances.
    And (from my point of view) a functional consultant can be responsible for test script creation and execution. It depends on (test-) organization.
    Best regards,
    Maurice

  • SAP HR Test scripts

    Hi,
         Can any one explain me how to write a test case for SAP HR. I have been recently assigned this job and dont know how to write test cases. can anyone please provide me one or two samples of test cases.I really appreciate your help. Thanks in advance.
    Thanks
    Tanmayi Rao

    Hi tanmayi rao,
    Which tool you are using for SAP HR?
    Test scripts are totally depends upon the functionality which client requires.
    For example:
    1. You want to  check the reference code is populating into the field or not?
    Test scripts will be like:
    1.Login to the E-rec portal.
        Expected Result: User should be able to login.
        Actual Result: Login succesful.
    2.Click on maintanace:
        Expected Result: maintanace page should be opened.
        Actual Result: maintanace page is being opened.
    3.Click on Job postings and press Reference code button.
        Expected Result: Refcode should be populated.
        Actual Result: Refcode is  being  populated.
    Like this Testscripts are depends upon Business scenarios.
    Reward if useful.
    Thanks,
    Anil.G

  • SCCM 2012 SP1 CU5 - Unknown error code when deploying Bitlocker encryption (happens during check for Bitlocker partition)

    Hi
    It says in the smsts.log file from the laptop:
    Evaluating a WMI condition expression TSManager 03-02-2015 13:34:58 7304 (0x1C88)
    Expand a string: root\cimv2 TSManager 03-02-2015 13:34:58 7304 (0x1C88)
    Expand a string: SELECT * FROM Win32_DiskPartition WHERE DiskIndex = 0 and Index = 0 and Size = 100 TSManager 03-02-2015 13:34:58 7304 (0x1C88)
    The condition for the action (Create BitLocker partition) is evaluated to be true TSManager 03-02-2015 13:34:58 7304 (0x1C88)
    Expand a string: smsswd.exe /run: cmd.exe /c bdeHdCfg.exe -target default -size 300 -quiet TSManager 03-02-2015 13:34:58 7304 (0x1C88)
    Expand a string:  TSManager 03-02-2015 13:34:58 7304 (0x1C88)
    Start executing the command line: smsswd.exe /run: cmd.exe /c bdeHdCfg.exe -target default -size 300 -quiet TSManager 03-02-2015 13:34:58 7304 (0x1C88)
    !--------------------------------------------------------------------------------------------! TSManager 03-02-2015 13:34:58 7304 (0x1C88)
    Expand a string: WinPEandFullOS TSManager 03-02-2015 13:34:58 7304 (0x1C88)
    Executing command line: smsswd.exe /run: cmd.exe /c bdeHdCfg.exe -target default -size 300 -quiet TSManager 03-02-2015 13:34:58 7304 (0x1C88)
    Creation event received for process 7976 mtrmgr 03-02-2015 13:34:58 4564 (0x11D4)
    [ smsswd.exe ] InstallSoftware 03-02-2015 13:34:58 4668 (0x123C)
    PackageID = '' InstallSoftware 03-02-2015 13:34:58 4668 (0x123C)
    BaseVar = '', ContinueOnError='' InstallSoftware 03-02-2015 13:34:58 4668 (0x123C)
    ProgramName = 'cmd.exe /c bdeHdCfg.exe -target default -size 300 -quiet' InstallSoftware 03-02-2015 13:34:58 4668 (0x123C)
    SwdAction = '0001' InstallSoftware 03-02-2015 13:34:58 4668 (0x123C)
    Getting linked token InstallSoftware 03-02-2015 13:34:58 4668 (0x123C)
    failed to get the linked token information. It may not be available. Error 1312 InstallSoftware 03-02-2015 13:34:58 4668 (0x123C)
    Process ID 7976 is for process C:\Windows\CCM\smsswd.exe mtrmgr 03-02-2015 13:34:58 4564 (0x11D4)
    No matching rule found for process 7976 mtrmgr 03-02-2015 13:34:58 948 (0x03B4)
    Working dir 'not set' InstallSoftware 03-02-2015 13:34:58 4668 (0x123C)
    Executing command line: Run command line InstallSoftware 03-02-2015 13:34:58 4668 (0x123C)
    Creation event received for process 7452 mtrmgr 03-02-2015 13:34:58 4564 (0x11D4)
    Process ID 7452 is for process C:\Windows\system32\cmd.exe mtrmgr 03-02-2015 13:34:59 4564 (0x11D4)
    Found match against RuleID LGR00188 mtrmgr 03-02-2015 13:34:59 948 (0x03B4)
    Creation event received for process 7940 mtrmgr 03-02-2015 13:34:59 4564 (0x11D4)
    Tracked usage for process 7452 mtrmgr 03-02-2015 13:34:59 948 (0x03B4)
    Process ID 7940 is for process C:\Windows\system32\conhost.exe mtrmgr 03-02-2015 13:34:59 4564 (0x11D4)
    Creation event received for process 3104 mtrmgr 03-02-2015 13:34:59 4564 (0x11D4)
    Found match against RuleID LGR00183 mtrmgr 03-02-2015 13:34:59 948 (0x03B4)
    Tracked usage for process 7940 mtrmgr 03-02-2015 13:34:59 948 (0x03B4)
    Process ID 3104 is for process C:\Windows\system32\BdeHdCfg.exe mtrmgr 03-02-2015 13:34:59 4564 (0x11D4)
    Creation event received for process 7552 mtrmgr 03-02-2015 13:34:59 4564 (0x11D4)
    No matching rule found for process 3104 mtrmgr 03-02-2015 13:34:59 948 (0x03B4)
    Process ID 7552 is for process C:\Windows\System32\vdsldr.exe mtrmgr 03-02-2015 13:34:59 4564 (0x11D4)
    Creation event received for process 7152 mtrmgr 03-02-2015 13:34:59 4564 (0x11D4)
    No matching rule found for process 7552 mtrmgr 03-02-2015 13:34:59 948 (0x03B4)
    Process ID 7152 is for process C:\Windows\System32\vds.exe mtrmgr 03-02-2015 13:34:59 4564 (0x11D4)
    No matching rule found for process 7152 mtrmgr 03-02-2015 13:34:59 948 (0x03B4)
    Termination event received for process 3104 mtrmgr 03-02-2015 13:35:00 4564 (0x11D4)
    Termination event received for process 7452 mtrmgr 03-02-2015 13:35:00 4564 (0x11D4)
    Process completed with exit code 3231711234 InstallSoftware 03-02-2015 13:35:00 4668 (0x123C)
    Termination event received for process 7940 mtrmgr 03-02-2015 13:35:00 4564 (0x11D4)
    BitLocker Drive Preparation Tool version 6.1.7601 InstallSoftware 03-02-2015 13:35:00 4668 (0x123C)
    InstallSoftware 03-02-2015 13:35:00 4668 (0x123C)
    opyright (C) 2006-2008 Microsoft Corporation. InstallSoftware 03-02-2015 13:35:00 4668 (0x123C)
    InstallSoftware 03-02-2015 13:35:00 4668 (0x123C)
    InstallSoftware 03-02-2015 13:35:00 4668 (0x123C)
    Command line returned 3231711234 InstallSoftware 03-02-2015 13:35:00 4668 (0x123C)
    Termination event received for process 7976 mtrmgr 03-02-2015 13:35:01 4564 (0x11D4)
    Process completed with exit code 3231711234 TSManager 03-02-2015 13:35:01 7304 (0x1C88)
    !--------------------------------------------------------------------------------------------! TSManager 03-02-2015 13:35:01 7304 (0x1C88)
    Failed to run the action: Create BitLocker partition.
    Unknown error (Error: C0A00002; Source: Unknown) TSManager 03-02-2015 13:35:01 7304 (0x1C88)
    Set authenticator in transport TSManager 03-02-2015 13:35:01 7304 (0x1C88)
    Set a global environment variable _SMSTSLastActionRetCode=-1063256062 TSManager 03-02-2015 13:35:01 7304 (0x1C88)
    Set a global environment variable _SMSTSLastActionSucceeded=false TSManager 03-02-2015 13:35:01 7304 (0x1C88)
    Clear local default environment TSManager 03-02-2015 13:35:01 7304 (0x1C88)
    Failed to run the action: Create BitLocker partition. Execution has been aborted TSManager 03-02-2015 13:35:01 7304 (0x1C88)
    Set authenticator in transport TSManager 03-02-2015 13:35:01 7304 (0x1C88)
    Failed to run the last action: Create BitLocker partition. Execution of task sequence failed.
    Unknown error (Error: C0A00002; Source: Unknown) TSManager 03-02-2015 13:35:01 7304 (0x1C88)
    Set authenticator in transport TSManager 03-02-2015 13:35:01 7304 (0x1C88)
    Termination event received for process 6188 mtrmgr 03-02-2015 13:35:03 4564 (0x11D4)
    Termination event received for process 7552 mtrmgr 03-02-2015 13:35:06 4564 (0x11D4)
    Task Sequence Engine failed! Code: enExecutionFail TSManager 03-02-2015 13:35:07 7304 (0x1C88)
    **************************************************************************** TSManager 03-02-2015 13:35:07 7304 (0x1C88)
    Task sequence execution failed with error code 80004005 TSManager 03-02-2015 13:35:07 7304 (0x1C88)

    Hi Jason
    See below. The problem is that on some of our laptops not anywhere geographically close to our IT department, the laptop has been setup with 2 partitions and on some only with 1 partition (we used another deployment system 2 years ago), so I am trying
    to prepare all our corporate laptops for Bitlocker encryption. The reason why I made this task sequence was to hit all those laptops that is not being reinstalled / installed again in the near future.
    Do you have any suggestions, should it help to remove the cmd.exe /c in front of the Bitlocker cmd line ?
    We have tried the MBAM solution, but in my opinion too many problems with the MBAM client.

  • Disable forced bitlocker encryption for certain USB devices

    Is it possible to specify certain USB removable devices to not be Bitlocker encrypted?  Example - A GPS so the user can do updates.  I didn't see any way to do this via policy.

    No, the reason is this, bitlocker is not going to make any difference between the devices based upon the hardware ID; it only takes the class of the device while applying the policies. 
    Mayank Sharma Support Engineer at Microsoft working in Enterprise Platform Support.

  • Problems with Comodo Kill Switch, Windows Services & Bitlocker Encryption on Asus N56VZ

    Hi All,
    So recently I found myself stuck in a different scenario than before, and after many hours researching and efforts to fix this I still find myself stuck  yet with a few options still to fix.
    What is the problem?
    So as a security cautious user when i first got to Windows 8.1 Pro 64Bit I encrypted both the C and D drive (Split the main disk) to protect myself and my family. Unfortunately that has not been very helpful with the way in which booting and running from
    either external USB devices or CD/DVD works, not allowing myself to at all.
    My usual security suit I  use is Comodo Internet Security, which additionally comes with Comodo Kill Switch. Whilst using the application instead of stopping one of the TCP connections I was meant to I accidently stopped an Windows Explorer connection.
    For some reason since then Windows Explorer, nor most windows apps or services themselves will run. For example msconfig will run but sfc /scannow or mmc will not, whether in safe mode or normal mode.
    What Caused the Problem?
    Cannot 100% say
    What I Think Caused the Problem?
    Myself running Comodo Kill Switch stopping a vital server connection with Windows Explorer that messed up alot. Or a potential Virus unknown how cannot fully scan system as wont boot externally or run many apps.
    Additional Info
    Asus Webcam is Disabled on Purpose
    Laptop was fully customized to run latest games full graphics minus Anti Aliasing, works with Evolve + CoD Advanced Warfare
    Laptop does not boot if USB Keyboard plugged in, works with everything else normal (had this on other systems no problem for me)
    Ask me for more info if required to add here, braindead again
    Specifications of my system
    Intel® Core™ i7 3610QM Processor
    Windows 8.1 Pro 64Bit
    Intel® HM76 Chipset
    DDR3 1600 MHz SDRAM, 2 x SO-DIMM 8GB
    15.6" HD (1366x768)/Full HD (1920x1080)/Wide View Angle LED Backlight
    NVIDIA® GeForce® GT 650M with 2GB DDR3 VRAM
    1TB 5400RPM OR 750GB 5400/7200RPM (Cannot remember off top of head, braindead)
    Super-Multi DVD 
    Kensington lock (Security Feature)
    LoJack (Security Feature)
    BIOS Booting User Password Protection (Security Feature)
    HDD User Password Protection and Security (Security Feature)
    Pre-OS Authentication by programmable key code (Security Feature)
    What Can Run and Won't Run?
    ON BOOT:
    Bitlocker Encryption Password & Advanced Settings are accessible
    Bios (password protected) is accessible
    Windows Recovery Mode is accessible (Think it is F9 or F10)
    Windows Logon Password Screen is accessible
    ON NORMAL/SAFE-MODE START UP:
    After Log-In Windows Explorer will not run
    Task Manager will run, also allows me to browse the files when trying to start new task
    Can run Command prompt
    Cannot run any control panel items
    Cannot run services.msc
    Cannot run mmc
    Cannot run sfc
    Every time it metions windows drive is locked
    Start Error's when running certain applications (Will post codes soon)
    Rufus USB Tool does run
    Cannot boot Kali Linux off USB
    Cannot boot Windows 8.1 off USB
    Cannot boot Windows 8.1 off DVDRW
    Fixwin2 will not run
    Apps either work or don't whether in safe mode or normal
    Cannot use Windows Installer
    What Fixes I Have Tried So Far
    Ok so like any normal user I don't want to lose my files. So here are what I have tried so far:
    Repair MBR (Repair Completed, No Luck)
    SFC /SCANNOW (Returns Error 'Windows Resource Protection could not start the repair service')
    Tried sfc /SCANNOW /OFFBOOTDIR=c:\ /OFFWINDIR=c:\windows (Could not access drive)
    Fixwin2 (Will not run in either normal or safe mode)
    Booting using Windows 8.1 via USB (Cannot boot from extermal devices due to Bitlocker Encryption)
    Booting using Kali Linux Via DVD & USB (Cannot boot from external devices due to Bitlocker Encrytption)
    How do I know it is because of Bitlocker, because last time I disabled it, I could run from external devices
    Tried to run bitlocker to change settings (Will not run)
    Have used both password and recovery keys to unlock driver, they work but when applications are running on windows the drive is still locked?
    Tried windows Automatic Diagnostic and Repair (Could not repair anything, did make a log I am still to extract from the syste)
    There are No System Restore Points
    I'm sure there is much more information I could post however I will leave it on an ask to know basis, apart from the log files and further information to gather. Below is my list of trial and error fixes to try for today (need more ideas and help please!):
    Hiren's 15.2 Boot CD via DVD (NOT ABLE TO BOOT)
    Hiren's 15.2 Boot CD via USB (NOT ABLE TO BOOT)
    Research into the Bios and Possible Update in-case of implementation of Virus, can access flash utility (STILL NOT TESTED)
    Try and get a portable version or a working version of windows installer to try and re-install Comodo Internet Security (STILL NOT TESTED)
    Another way to disable Bitlocker
    Anti-Malware / Anti-Virus Scan If Possible to Run One
    Bitlocker Repair Tool, will try this also
    I have posted this as have not found much info online, usually find it and crack on but this time things are a little more tricky, my priority task I really need to do is remove the Bitlocker Encryption, but if the application will not run... what do I do
    then?
    Thanks for your time reading all, Sorry for any poor formatting or spelling.
    Update 1: MMC.exe Error Code
    Ok so now have the computer in safe mode, still same as before, no explorer.exe, no services etc... Just went into the Task Manager > Services (Tab) > Open Services (Option at bottom)
    This is the error I get:
    'The Instruction at 0x785a746c referenced memory at 0x000000a8. The memory could not be read.
    Any Ideas on what this error is and why?
    Update 2: CHKDSK Works with no Fix
    Update 3: Hiren's 15.2 Boot CD - USB Boot still no luck booting around Bitlocker Encryption
    Just to explain again, I already have unlocked the drive with correct bitlocker password or recovery key yet the drive remains locked not allowing windows refresh of files of complete install from the windows recovery menu as keeps saying drive is locked

    Ok so attempt number two to write this update via bloody phone! (Just refreshed page whilst writing!)
    Update 4:
    Problem - cannot run from bootable devices (DVD/USB)
    Cause - bitlocker fully encrypted drive stops this working
    Repair - Boot up holding F9 to enter windows recovery Input Bitlocker recovery keys to unlock drives
    Navigate to Command Prompt in advanced settings Execute following code:
    Repair-bde c: d: -rp 000111-222333-444555-etc...
    (Code found from https://technet.microsoft.com/en-us/library/ee523219%28v=ws.10%29.aspx)
    Note for those using this: It is common while unlocking certain drives to get errors such as: Quote from http://www.benjaminathawes.com/2013/03/17/resolving-partial-encryption-problems-with-bitlocker/
    "LOG INFO: 0x0000002aValid metadata at offset 8832512000 found at scan level
    1.LOG INFO: 0x0000002b Successfully created repair context.
    LOG ERROR: 0xc0000037 Failed to read sector at offset 9211592704.
    (0×00000017) LOG ERROR: 0xc0000037 Failed to read sector at offset 9211593216.
    (0×00000017) …followed by around 20 similar entries that differed only by the offset value"
    Repair Status for Update 4: COMPLETED - However over wrote D drive data so now need to recover that
    Problem 2 - windows services corrupted along with windows files
    Cause - Unknown
    Repair - wait until system is fully decrypted Once fully decrypted ensure boot from USB/DVD
    Re-do fixes that would not work before if this has fixed boot issue Confirm fix / update post Hope anything I put here helps others also

  • Powershell to pull BitLocker Encryption status

    1) enable PSremoting on all laptops --best way is via GPO or any other way to do it?If you are dealing with domain computer, then yes, GPO is the way to go
    2) I want to run this on a few hundreds laptops so I don't want to manually enter my credentialsChange this:Powershell[system.Management.Automation.PSCredential]$Credentialto this:
    Powershell[system.Management.Automation.CredentialAttribute()]$Credential
    Also, your invoke-command line has a typo:
    Powershell$Obj = Invoke-Command -ComputerName $ComputerName -Credential $Credential -ScriptBlock $ScopeSo all that aside, manage-bde has a -cn parameter for remote computers, so Invoke-Command may not be necessary.

    I found two scripts to get BitLocker Encryption status but my challenging are1) enable PSremoting on all laptops --best way is via GPO or any other way to do it?2) I want to run this on a few hundreds laptops so I don't want to manually enter my credentials
    TextFunction Get-OSCBitlockerStatus{ param ( [Parameter(Mandatory = $False, Position = 0)] [String[]]$ComputerName, [Parameter(Mandatory = $False, Position = 1)] [String]$FilePath, [Parameter(Mandatory = $False, Position = 2)] [system.Management.Automation.PSCredential]$Credential ) If($ComputerName) { Foreach($CN in $ComputerName) { GetStatus -ComputerName $CN } } ElseIf($FilePath) { #Get content from the file If(Test-Path -Path $FilePath) { $CNCol = Get-Content -Path $FilePath Foreach($CN in $CNCol) { GetStatus -ComputerName $CN } } Else { Write-Error "Find the specified...
    This topic first appeared in the Spiceworks Community

  • How to test for existence of AcroXFA test objects?

    Hi -
    I'm writing scripts to test an XFA form with dynamic subforms.  For example, at the end of Part 4, the user hits a Validate button, and if their data is correct, then the Validate button disappears and a Part 5 subform appears.
    So my script looks something like this:
    Function GetButtonPart4Validate()
       Set GetButtonPart4Validate = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1")
    .AcroXFAForm("sfPart4").AcroXFAButton("sfValidate")
    End Function
    Function GetPart5()
       Set GetPart5 = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").AcroXFAForm("sfPart5")
    End Function
    GetButtonPart4Validate().Click
    PDFDoc( "TestForm" ).WaitProperty "ready", true, 60000  ' Wait for event processing complete
    If DataTable("boolValidates", dtLocalSheet) = "TRUE"  Then
         If( GetPart5().Exist ) Then
              ' A: Checkpoint Succeeds: Validation was successful
         Else
              ' B: Checkpoint fails: Validation failed
         Endif
    Else
         If(  GetPart5().Exist ) Then
              ' C: Checkpoint Fails:  Validation was unexpected
         Else
               ' D: Checkpoint Succeeds:  Validation failed as expected
         Endif
    Endif
    Unfortunately it appears that XfaSubForm.Exist always returns TRUE.  In other QTP testing domains (eg "Exist Property (WinObject)" in QTP Help), the documented behaviour of the Exist property is to be true if the desired test object can be found in the application-under-test. Typically this means that when the script tries to access an XFA widget which doesn't exist (even something like GetPart5().getROProperty("visible") ), the script stops and thinks for a minute or so, and eventually produces a test error that the object doesn't exist then muddles onward. It is the "stops and thinks for a minute or so" which frustrates me, since these are delays which I am trying to avoid.
    Another possible angle I looked into was counting the subforms under Part 5's parent.
    PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").RefreshObject
    PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").AcroXFAForm("sfPart5").Refresh Object
    ' check to see if there is a 'sfPart5'
    Dim MyChildren, i
    Set MyChildren = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").ChildObjects
    For i=0 to MyChildren.Count - 1
        print i & " name=" & MyChildren(i).GetROProperty("name")
    Next
    This also seems to fail:  Part5 doesn't appear among its parent's children (at least before QTP actually tries to use it).
    The PDF Test Toolkit User Guide doesn't specifically mention that Exist or RefreshObject or ChildObjects are implemented, so I can't say AcroQTP isn't working as designed, but if you're looking for suggestions for improvement, I'll vote for fulfilling these parts to the QTP.  Please confirm my conclusions that these are not properly implemented, or whether I'm missing something.
    In the meantime, do you have any recommendation on how to proceed?  My present workaround is to look for a "validation error" windows dialog that indicates Part 5 won't exist, but this won't work in future test scripts.
    Cheers,
    Brent

    Hi,
    816387 wrote:
    ... QUERY:-  Find all customers who have at most one account at the Perryridge branch.
    SOLUTION *1* :-
    select customer_name
    from depositor,account
    where account.account_number=depositor.account_number and
    branch_name='Perryridge'
    group by customer_name
    having count(account.account_number) <=1
    ok running correctly
    That finds customers who have exactly one account at Perryridge.
    The assignment is to find customers who have at most one account at Perryridge. You need to include customers with 0 accounts at Perryridge, as well. You could use an outer join, or MINUS, or a NOT IN subquery, or a NOT EXISTS sub-query (as mentioned above) to do that.
    Can there be customers who have no accounts at all, at any branch? If so, you'll need to use the customer table in this problem, as well as depositor and account.
    >
    SOLUTION *2* :-
    select D1.customer_name
    from depositor D1
    where unique
    (select customer_name
         from depositor D2,account A1
         where D1.customer_name=D2.customer_name
              D2.account_number=A1.account_number and
              branch_name='Perryridge'
    gives error:-
    where unique
    ..........*^*
    ERROR at line 3:
    ORA-00936: missing expression
    Logic of both solution are correct . But Solution 2 gives error in oracle. I want unique construct to work.Sorry, it doesn't in Oracle. I don't know of anything like that in Oracle.
    Does "WHERE UNIQUE (SELECT ...)" work in some other database system? Which?
    How to do it. Or How can i test for the absence of duplicate tuples ??????
    Your Solution 1 is the best way to find customers with exatly 1 account (rather than 0 or 1 accounts) at Perryridge. Is there any reason why you wouldn't want to use it, if you ever needed to find customers with exactly one account there?

  • Is Diskpart unable to clean bitlocker encrypted Windows 8 to go installations?

    Hi all.
    I am aware that this is a configuration that not many of you will have, but worth a try...
    I am running windows 8.1 enterprise x64 installed on a USB drive as windows to go. The USB drive is a supported one for this configuration, Kingston Data Traveller 32 GB. Also I use bitlocker to encrypt the whole drive and all works very nice.
    Lately however, I wanted to restore an image backup to the drive, so I plugged it into another pc running windows 8.1 enterprise.
    The imaging software however was not able to write to the drive and told me, it is in use. So I looked at explorer, but it was not even mounted, which is expected behavior with windows 8.1.
    To overcome the problem, I tried to clean the drive using diskpart and this is where the question starts: Although diskpart told me that cleaning was successful, the imaging software was still not able to write to the drive! So I said, "damn
    it, win8.1, what's wrong? I'll use windows 7 to replay the image to the drive!"
    On windows 7 I was flabbergasted after inserting the drive: I was presented a message from bitlocker to go which asked me for the password (which I provided and which worked). I did not get that on 8.1!
    Attention, the question is right here:
    Why is diskpart unable to clean the drive? Why does it tell me "cleaning was successful" (and I could verify that, partitions were indeed removed) although it is obviously unable to remove the bitlocker info?
    So far, my understanding of diskpart's clean command was that it completely resets the drive.
    Am I right, or what did I miss? Is diskpart not supported on "windows 8.1 to go"?

    I dont think diskpart will remove bitlocker encryption.. To remove encryption you must use decryption method.. If you have forgotten password you have to use bitlocker recovery key
    Try try Bitlocker repair tool if the partition is damaged..http://www.microsoft.com/en-us/download/details.aspx?id=17294
    "The BitLocker Repair
    Tool can assist administrators in recovering data from a corrupted or damaged disk volume that was encrypted with BitLocker."
     Using the BitLocker
    Repair Tool to Recover a Drive
    http://technet.microsoft.com/en-us/library/ee523219(WS.10).aspx
    http://support.microsoft.com/kb/928201
    If you have lost your password or recovery key check these 
    I
    Lost My Bitlocker Recovery Key
    http://www.pcandtablet.com/windows-8-errors-and-crashes/279/i-have-lost-my-windows-8-bitlocker-key-now-i-cant-boot-how-can-i-recover-my-data.html
    http://windows.microsoft.com/en-us/windows-8/bitlocker-recovery-keys-faq  
    Hetti Arachchige V Aravinda | Network & System Administrator (B.Sc, Microsoft Small Business Specialist, MCP, MCTS, MCSA, MCSE,MCITP, CCNA, CEH, MBCS)

  • Process Improvement for Shopping Cart

    I would like to have the availability to contact customer service regarding a recommended process improvement for Verizon customers.  I have been a loyal Verizon since 2003, but my most recent experience is enough to drive me straight into the arms of T-Mobile and take them up on their offer to buy me out of all 6 contract agreements on my Verizon account.
    I recently attempted to upgrade my device online.  It was a relatively seamless process until I reached the end and got to the shopping cart.  I elected to pick my phone up in the nearest store but to do so you have to pay online with a credit or debit card.  You do not have the option to bill your account or pay in the store.  As it turns out, the billing zip code that is associated with your credit card MUST match the service address zip code on your Verizon account.  I am an identity theft victim and because of this all of my mail goes to a Post Office Box for security reasons.  I obviously do not live in a Post Office Box, so my service address will never match the zip code on my billing address.
    I am keenly aware that this is probably done for security reasons.  Verizon doesn't want people obtaining a compromised account and sending a phone just anywhere.  However, I was not opting to have anything shipped to me.  I was picking up in the store so it should not matter what my billing zip code is.
    The part that was most frustrating was the customer service individuals that I spoke with suggested things like (1) I should contact my bank and all of my bank statements and credit/debit card statements come to my house or (2) update my Verizon service address to the physical address of the Post Office even though I don't live there.  When I was told to do option 2 listed above, I was told I had to log out of my account for the change to take effect and then re-log back in only to lose my entire order.  All of this just to place an order and pick it up in a store.  All I needed to do was just pay for my phone.
    I next gave up and went in to the store.  After an hour of waiting and trying to figure out where the problem was, the Verizon store couldn't take the coupon code that the customer service person had given me online.  Translation - after all of this frustration with a dead-end result, I learned I was going to have to pay about $100 more for my phone.  I walked away.
    I went back online and the only option I had was to go back to square one and re-order online and this time, elect to have the phone shipped and billed to my account.  I chose overnight shipping and just learned that the phone was shipped UPS ground and will be delivered after 5 days.
    Needless to say, this has all been extremely disappointing and the most frustrating part is that it is all avoidable with a simple programming change.  All of this was totally unnecessary.  As an identity theft victim, I will NEVER have my mail delivered to the mailbox in my neighborhood.  Does Verizon really want to offer that as a suggestion for people who want to buy a phone?  Do they want to be responsible for the results?  With identity theft being the fastest growing crime in America, somehow I just don't see that as a viable solution.  There are many, many people just like me who don't have the same physical and billing addresses.
    Finally, I will leave you with this question... Have you ever had this much trouble placing an order and paying for that order online?  If I went to a store and purchased a phone in the store, would Verizon's payment processor care that the billing address on my credit card was different from the physical address where I live?  NO!  Companies are typically ready to take your money!  It shouldn't be this hard to just pay someone for a phone.
    If anyone can point me in the direction of how to make sure someone from Verizon Corporate is aware of this problem and that this is taken under consideration for future enhancements/changes to their eCommerce system it would be much appreciated.

    Hi,
      I think your process level evaluation id is not true, that is the reason system skips the process level.. Can you check your evaluation event-expression code. What do you see in SLG1?  For testing purpose change the evaluation id to 0EV000 and check. Make Sure you debug through the user(requester) that you are creating the SC. Please test and let me know...
    Saravanan

  • BitLocker Encryption ToGo; Decryption Issue.

    I currently have a USB drive that has been partially encrypted with BitLocker Encryption, but will not allow me to unlock it. I have looked for many resources on solving this issue, but have decided to post my details.
    I am running Windows 7 Enterprise. I have the Password and I have a FIPS-140-2 complaint Recovery Key. All of my USB drives have the FAT32 file system. I do not have a TPM or Smart Card, but i do have the 256 bit FVE key. I have not tried unlocking on another
    computer with BitLocker Encryption.
    First of all i successfully encrypted one USB drive with no issues and stored the key on another USB drive. Next I encrypted a hard disk drive and stored the key on the same USB drive. Next i begun encrypted the USB drive that had the keys stored on it,
    but realized i had to have had encrypt another drive first so I stopped the encryption at about 4%, by closing BitLocker. I realize this is where i must have gone wrong, because i stopped the encryption algorithm as it was already started. BitLocker took awhile
    to close so i assumed it reversed encrypted what it had already encrypted. I then encrypted the other drive and stored the key on the USB drive with the keys on it. According to a BitLocker policy the keys encrypt each other and become chained together, but
    this may not be relevant to the issue. I resumed the encryption process of the partly encrypted USB drive and stored the key on an entirely separate and not yet encrypted USB drive and this seemed to complete with no issues. Then i encrypt the final USB drive
    and stored the key on a non encrypted hard disk.
    Now the problem I am having is when I attempt to unlock the USB drive with the keys on it. The drive unlocks, but then unmounts itself and asks for the password again and this ends up being an endless loop. I decide to decrypt all drives in the order i encrypted
    them and there appears to be no issue except for with the USB drive with most of the keys on it. I am unable to unlock and decrypt the USB with the keys on it so i skip this drive in the process and I am able to fully decrypt the rest of the drives using the
    keys stored on the "broken" encrypted drive regardless of skipping decrypting it. If I attempt to decrypt or unlock the USB drive with the keys on it I can not, so I tried rebooting. Now when I attempt to unlock the drive using the password through
    the BitLocker Encryption Manager the manager seems to freeze and goes into a non responsive mode and I am unable to close it, even after safely removing the USB drive.
    I have tried a few different methods to solve this issue, but fear that without manually decrypting every single bit exactly how they were encrypted the data may be lost.
    I use an elevated command prompt to use the standard "manage-bde d: -unlock -pw" and then enter the password, but this seems to only unlock the drive momentarily before it unmounts itself.
    I have also tried using "manage-bde d: -unlock -recoverykey '[recoverykey/path].bek'", but this shows the same behavior.
    I have also tried using "repair-bde d: e: -recoverykey '[recoverykey/path].bek'" and the command prompt says "Error: Cannot open 'D:'. Check that it is not currently in use. To continue even when the volume is in use, add the -Force option.".
    Not using the "-Force" parameter allows me to access the drive as if it isn't locked, but only lets me see the "COV 0000. ER" and other BitLocker ToGo autorun files, while not letting me modify or copy the "COV 0000. ER" file.
    I am able to view the "COV 0000. ER" file with a hex editor, but do not want to have to screen capture every screen worth of characters to attempt to manually decrypt the entire two gigabytes of information, while still not knowing exactly what timestep
    the encryption algorithm actually stopped at.
    If I use "repair-bde d: e: -recoverykey '[recoverykey/path].bek'" again or use the "repair-bde d: e: -recoverykey '[recoverykey/path].bek' -force" the drive seems to respond and starts scanning for BitLocker metadata, and boot sectors.
    I am then prompted "LOG INFO: 0x00000027", "Valid metadata at offset 579055616 found at scan level 1.", "LOG INFO: 0x00000028 Successfully created repair context. Beginning decryption". The "d:" USB drive is approximately
    two gigabytes, while the "e:" is approximately eight gigabytes. This then does from 1% to 99% without any issues. As the decryption process hits 99%, I am prompted with a popup "repair-bde.exe - Wrong Volume", "The wrong volume is
    in the drive. Please insert volume into drive \Device\Harddisk2\DR8", "Cancel: Try Again: Continue" and the encrypted USB unmounts itself again and asks for the password through the BitLocker Drive Encryption Manager. No matter which of the
    three choices I select the command prompt then says "LOG ERROR: 0xc0000035 Failed to read sector at offset 2000010000. <0x00000002>" and repeats untill it hits "2015160832" and then says "Decrypting: 100% Complete. Finished decryption.
    ACTION REQUIRED: Run 'chkdsk D: /f' before viewing decrypted data. Now I still have the USB drive with the keys on it, but it remains locked, but now the eight gigabyte USB drive I used as "e:" is seen as a "RAW" filesystem under "Disk
    Management", but "FAT32" under "My Computer". If i try to open "e:" I am prompted to format the drive before using it. If I use "RUN" to attempt to check the disk for errors in "read-only mode" the drive
    is detected as if it was the "NTFS" file format, but does not seem to have any errors.
    If I choose to format the USB drive "e:" I am able to use it, but it appears blank. Using third party recovery software I am able to retrieve some of the data from the partition, which was on "d:", but it appears to be partly decrypted
    still or possibly fragmented. I realize this step isn't because of BitLocker and may be due to the software used to retrieve the information.
    I am able to repeat this temporarily unlocking of "d:" and attempting to recover process over and over, while still getting the same result.
    Another interesting note is, when I use "manage-bde -status", when the drive is locked I can see that the encrypted drive "d:" is still protected with a password and external key. If I use "repair-bde d: e: -recoverykey '[recoverykey/path].bek"
    to temporally unlock the drive and then use "manage-bde -status" the drive "d:" reads the status as "Size: 1.88 GB, BitLocker Version: None, Conversion Status: Fully Decrypted, Percentage Encrypted: 0%, ERROR: An error occurred <code
    0x80070057>:, The parameter is incorrect.".
    Also when the USB drive is temporally unlocked using "repair-bde d: e: -recoverykey '[recoverykey/path].bek" and I use "manage-bde d: -off" I am prompted "ERROR: An error occurred <code 0x80310008>: BitLocker Drive Encryption
    is not enabled on this drive. Turn on BitLocker.". If I use "manage-bde d: -on" the USB drive is detected by BitLocker as having no name, as expected, but also "ERROR: An error occurred <code 0x8031002e>: BitLocker Drive Encryption
    cannot encrypt the specified drive because an encryption key is not available. Add a key protector to encrypt this drive." If I use "manage-bde d: -on -recoverykey '[recoverykey/path].bek'" then BitLocker detects the drive, but prompts "Key
    Protectors Added: ERROR: An error occurred <code 0x8031002d>: The drive encryption algorithm and key cannot be set on a previously encrypted drive. To encrypt this drive with BitLocker Drive Encryption, remove the previous encryption and then turn on
    BitLocker."
    If I use "manage-bde d: -protectors -disable" I am prompted "ERROR: An error occurred <code 0x8031002d>: The drive encryption algorithm and key cannot be set on a previously encrypted drive. To encrypt this drive with BitLocker Drive
    Encryption, remove the previous encryption and then turn on BitLocker.", but if I use "manage-bde d: -protectors -enable" I am prompted "ERROR: An error occurred <code 0x80310001>: This drive is not encrypted.".
    A review of my issue is that I have a BitLocker Encrypted USB Drive, which will not allow me to unlock it no matter how i attempt to do it. I end up with the USB drive automatically unmounting itself when I try to unlock it and this will not allow me to
    decrypt it.
    Thank You in advance for taking the time and consideration to fully understand and read my post. I would have went to the Microsoft professional support hotline, but it would have cost about $250.00 for me to attempt to explain this very large amount of
    text that I had to proof read and edit.
    I believe I have stated all the information that is relevant to the issue I am having and I would appreciate any help that would help me resolve my problem decrypting the information, without the need to manually decrypt every single bit or using an at least
    128 D-Bit quantum computer, "Qumputer".
    I have considered these resources already, but am willing to reconsider them if i missed something.
    BitLocker Drive Encryption Overview: http://technet.microsoft.com/en-us/library/cc732774.aspx
    Manage-DBE: http://technet.microsoft.com/en-us/library/ff829849.aspx
    Windows BitLocker Drive Encryption Frequently Asked Questions: http://technet.microsoft.com/en-us/library/cc766200%28v=ws.10%29.aspx   (I haven't completely read everything, but skimmed through for what i thought may have been relevant.)
    Scenario 14: Using a Data Recovery Agent to Recover BitLocker-Protected Drives (Windows 7): http://technet.microsoft.com/en-us/library/ee424312%28WS.10%29.aspx   (This might have worked but I don't have a smart card and I didn't already have the
    recovery agent set up in group policies before I started encrypting.)
    Scenario 16: Using the BitLocker Repair Tool to Recover a Drive: http://technet.microsoft.com/en-us/library/ee523219%28WS.10%29.aspx

    Hi,
    Did you remember clear which one store in which one? It's so complex on your description.
    Have you tried to recover the drive which the most key stored in it by non encrypted hard disk that stored in the USB drive key?
    If it still failed, i would like to suggest you contact the professional data recovery center for help.
    Note: It's not recommend you use third party software to recover. Since your data might lost because of some fault.
    Karen Hu
    TechNet Community Support
    Sorry i tried to explain my situation as thoroughly as possible without having to take screen captures of each step of the process.
    I have written down what keys were stored where, so there shouldn't be any chance of mixing up the keys. I have also attempted to recover using a different key. Possibly using a different key causes the drive to attempt to decrypt with the wrong algorithm
    and actually encrypting the data even more, but this doesn't seem to be the case because it just fails and goes back into the state it was in.
    Also how would one get a hold of the professional data recovery team. Them being "professionals" i would assume their services are not free, but i may be mistaken.
    Also I will not attempt to use "third party software" again, but I was just getting desperate and that is why I tried it on the partition of the backup, which appears to be blank anyways. This isn't relevant to the issue at hand though.
    I know encryption isn't 100% non reversible no matter how large of the keys and algorithms are, so there should always be a way to decrypt.

  • Improvements for Xen4 on latest kernel

    I have installed Xen4.0.1 on Arch using this wiki article. This also means i had to use the kernel version included with the pkgbuild.
    After downgrading udev to 151 (because the latest version causes some kernel panics), everything works like a charm.
    A few days later, i read about Xen4 in a magazine. It stated that it should be possible to run Xen4 on kernel 2.6.36. But when i try to build the dom0 kernel on arch it fails. I googled for this problem and found something about "Jeremy's kernel". I tried to build the dom0 kernel with these sources, but it failed too. The magazine also stated that the latest kernel has some improvements for Xen, like PVUSB and PVSCSI.
    The idea is to install Xen4 on a production server, so stability is criterion #1, but performance is also important. Could anyone advise me if i have to try and patch the kernel myself (code skills are ok, but almost no knowledge about linux kernels, so i can only 1. search on google, or 2. make minor syntax adjustements), or just use the old version.
    Also, i'm still looking for a nice (web-based) administration for Xen. I found several, but most of them are for RedHat and the others just won't work.
    Please tell me what the best option is, or maybe share something about how you have solved it in your own environment

    Ok, so after removing catalyst-test and trying to install catalyst, I got the following error:
    resolving dependencies...
    warning: cannot resolve "catalyst-utils", a dependency of "catalyst"
    :: The following package cannot be upgraded due to unresolvable dependencies:
    catalyst
    Proceeding to try installing catalyst-utils...

Maybe you are looking for