andyarp has asked for the wisdom of the Perl Monks concerning the following question:
So, i'm trying to use perl to write a script to automate a process that controls bitlocker drive encryption pins. I've written a script that takes the computername (format xxxx-xxxxxxxxxx) and takes the last 4 digits of the name and inputs those digits to a variable ($pin). Then, it runs command
system "manage-bde -changepin C: -computername $asset";It then pops up asking what you want the pin to set to. My question is, how can i take the 4 digit number in the variable $pin i mentioned and have perl automatically type them into the prompt that manage-bde pops up with?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Use a perl variable on a command that prompts for input
by Anonymous Monk on Oct 18, 2013 at 04:06 UTC | |
Re: Use a perl variable on a command that prompts for input
by kcott (Archbishop) on Oct 18, 2013 at 07:17 UTC | |
by hippo (Bishop) on Oct 18, 2013 at 08:38 UTC | |
by andyarp (Initiate) on Oct 23, 2013 at 00:23 UTC | |
by andyarp (Initiate) on Oct 23, 2013 at 00:38 UTC | |
by hippo (Bishop) on Oct 24, 2013 at 09:01 UTC | |
by andyarp (Initiate) on Oct 26, 2013 at 06:13 UTC |
Back to
Seekers of Perl Wisdom