I am updating a script we use to generate new users and update users based on a csv we download from a feed every night. I need to generate a unique username fo
the command dotnet myapp.dll -- [4, 3, 2] throws the exception System.FormatException: Input string was not in a correct format. I do not know the syntax. How s
I need to write a PowerShell script that reads some data and writes it to a file on a remote SFTP location. I'd rather not generate a local file first before i
Consider the following Dockerfile. On the last lines, first git is installed, and then something is appended to the path environment variable. FROM mcr.microsof
In an Azure DevOps 'release pipeline', I provision Azure resources - including SQLServer databases - and try to configure access to databases using managed iden
Set-GPPermissions -Guid <Guid> -TargetName "Authenticated Users" -PermissionLevel None -TargetType Group -Replace -Confirm:$false Used to work fine, but
Error on terminal: nodemon.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:
I'm running iis 10 on windows server 2016. I need to enable content compression for some web application and disable it for others. These check boxes specifical
I'm currently editing our new employee script for AD and I am running into an issue, I added 2 radio buttons for the home folder, one radio button will update t
If I've downloaded a file with a known SHA256 hash, how can I use PowerShell to check that the file matches the expected hash?
Whenever I need to run a powershell script it complains of security, if I add powershell.exe -nologo -executionpolicy bypass -File .\install.ps1 I still get per
New-Item -Path "C:\aws" -Name "script.ps1" -ItemType "file" -Value "text in file" I am trying to create a file using the above command, if the file already exi
I have multiple tasks that need to be scheduled during the last full workweek (Monday through Friday) of every month. These will be scheduled from a Windows Ser
I just set up a new Windows Server 2019 instance, and am trying to run tasks (C# console apps) through Windows Task Scheduler. I've set it up to log in as a cer
I am currently working on a project where I have been given a lot of .pst files. These files contain individual .msg files inside which I need to run an analysi
We noticed that our Azure Subscription field is empty eg: Get-AzContext -ListAvailable Name Account Subscrip
I am trying to create a external network drive using PowerShell 5.0. I Need those drive to display in My Computer. For that purpose I am using this follow comma
I want to invoke a command on a remote server, I do not want to have to put in the password to run the script. I've tried encrypting the password and storing it
let's say that I have a text file that defines some variables something like this file : .env USER=user DB_NAME=userDB DB_HOST=localhost DB_PORT=5432 and I wa
I have been trying to get a venv to activate for the last week. Currently, the errors say The module 'venv' could not be loaded. For more information, run 'Impo