********************** Windows PowerShell transcript start Start time: 20220407084313 Username: ###\ RunAs User: ###\ Machine: (Microsoft Windows NT 10.0.14393.0) Host Application: Powershell.exe f:\Apps\FolderMonitoring\PScript\FolderMonitor2.ps1 Process ID: 14104 PSVersion: 5.1.14393.4583 PSEdition: Desktop PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.14393.4583 BuildVersion: 10.0.14393.4583 CLRVersion: 4.0.30319.42000 WSManStackVersion: 3.0 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1 ********************** Transcript started, output file is F:\Apps\FolderMonitoring\Logs\04072022_Transcript.txt ConvertTo-SecureString : Key not valid for use in specified state. At F:\Apps\FolderMonitoring\PScript\FolderMonitor2.ps1:19 char:61 + ... word = Get-Content -Path $psScript\cpswd.txt | ConvertTo-SecureString + ~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [ConvertTo-SecureString], CryptographicException + FullyQualifiedErrorId : ImportSecureString_InvalidArgument_CryptographicError,Microsoft.PowerShell.Commands.ConvertToSecureStringCommand ConvertTo-SecureString : Key not valid for use in specified state. At F:\Apps\FolderMonitoring\PScript\FolderMonitor2.ps1:19 char:61 + ... word = Get-Content -Path $psScript\cpswd.txt | ConvertTo-SecureString + ~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [ConvertTo-SecureString], CryptographicExcepti on + FullyQualifiedErrorId : ImportSecureString_InvalidArgument_CryptographicError,Microsoft.Pow erShell.Commands.ConvertToSecureStringCommand PS>TerminatingError(New-Object): "Exception calling ".ctor" with "2" argument(s): "Cannot process argument because the value of argument "password" is null. Change the value of argument "password" to a non-null value."" Exception calling ".ctor" with "2" argument(s): "Cannot process argument because the value of argument "password" is null. Change the value of argument "password" to a non-null value." PS>$global:? True