Category : cmd

I’m trying to execute a Powershell script from CMD which receives a SecureString object as an argument as follows: pwsh.exe -Command ".my_script.ps1" -Password (ConvertTo-SecureString XXXXXX -AsPlainText) This works fine on my machine with Windows 10 and Powershell 7.1, but shows the following error in Windows Server 2012 with the same version of Powershell. Cannot process ..

Read more

Inside the %list% txt file there are multiple paths and inside %List2Backup% there are multiple files list only, I need to copy each file to each server name location based on first server name only example of location from %list% TestServer1D$Location1DraftsTestings TestServer2C$Location1DraftsTestings I want files to be copied to "%~dp0BackupDlls_%Environment%_%format:~-0,30%TestServer1filename.dll This is the current code ..

Read more