Get-ChildItem BaseName returing @ {} in value A folder contains a number of encrypted files named like SB_SeminoleCounty_Dispatch_1 bak gpg I need the base file name without the gpg extension If I execute the this command in powershell I get the expected value PS L:\SQLServerBackupFile> gci \SB_SeminoleCounty_Dispatch_1 bak gpg | select basename BaseName -------- SB_SeminoleCounty_Dispatch_1 bak I am trying to retrieve the same
Powershell script to change account expiration The script makes sense If I have an account that expires March 30th and I type in 90 days it extends the account another 90 days from that point What I cant seem to do is make it so instead of just typing in 90 days I rather type in something like 6 30 2014 and have it extend the date that way But I cant seem to make it work Monday, March 17, 2014 4:03 PM 0 Sign in to vote But I cant seem