Category "powershell"

Resume Azure VM backup using powershell script after disabling backup

I would like to resume my backup after disabling backup. Used the below commands for disabling and enabling. Disabling backup :Disable-AzRecoveryServicesBackupP

Strange Powershell "interactive" behavior

Sometimes, when using certain commands within Powershell, the console is set into some kind of "interactive mode", which makes it behave in a way that's complet

powershell signing certificate unknownerror

I am following the instructions to sign a script and I've got to the part where I sign the add-signature.ps1 file so that I can sign my script using it $cert =

powershell signing certificate unknownerror

I am following the instructions to sign a script and I've got to the part where I sign the add-signature.ps1 file so that I can sign my script using it $cert =

Is there any way to export the contents of my Teams Chats for one day, by chat and time?

Is there any way to get and list out all my conversations in teams chats for one day? When I'm logging time, I lose track of what I worked on when I'm helping o

Howto use psexec via powershell invoke-command on a remote computer? (invalid handle)

I have written a powershell script which creates a powershell script or a batch script depending on the remote host on which this script should be started remot

How to clear the entire terminal (PowerShell)

I had an issue. Using the clear or cls command in powershell clears only the visible portion of the terminal,I would like to know how to clear the entire termin

Change taskbar location with powershell and autohide Windows 10 build 14393

I'm trying to place the taskbar location to the top with powershell and let it auto-hide. I found this website with option three what works for most people. T

Programmatically configure Outlook's options for address lists

I need to to programmatically (ideally via PowerShell) configure Outlook setting the options: "When sending e-mail, check address lists in this order:" to "Star

Verify Passwords Match in Windows Powershell

I'm creating a script to handle unattended domain joining for the school district I work at. We have several IT guys who handle sysprep, so I'm creating a scri

Invoke-Restmethod: how do I get the return code?

Is there a way to store the return code somewhere when calling Invoke-RestMethod in PowerShell? My code looks like this: $url = "http://www.dictionaryapi.com/

Using Get-ChildItem -Exclude or -Include returns nothing

I have a list in my C: directory that has many files. If I try to run an -Exclude on it, I get no returns. Same with -Include. If I use filter it returns what I

Take Excel cell content and place it into a formatted .txt file

So I have an Excel document, which is essentially a table. For the purposes of this, we will use this: Dummy Data What I'm wanting to do is take the values fr

Export members of multiple groups

Is it possible to change the PS script below in two ways: The group members are now exported horizontally but I want all the users in 1 cell in the column besid

How to stop a windows 10 machine from sleeping/hibernating down when running a powershell process?

I have a powershell process that reads records from a remote server and copies them into a local database. When it runs, it might run for 8-12 hours. How do I p

Cannot start service on computer '.'

I'm trying to create and start a windows service using PowerShell. The service is created but cannot be started when I use various names besides one particular

How to enable auditing on subfolders and files using powershell

I tried to enable the audit policy on folder using powershell script. But in my case the audit policy is not applied for subfolders and files within the folder

Team Foundation Server(Release Pipeline)

I'm developing Release pipeline for deploying artefacts using TFS 2017 Update3 Release Management. There are various tasks like "Windows Machine File Copy" and

Get date and time on the same line

I can use date /t and time /t to get the date and time, but it doesn't display it next to each other. I wanted to make it do that and display like this: Curren

How do I remove the cruft at the start of my posh-git window title?

I'm using posh-git for my powershell window, and the prompt is perfect: S:\Repos\DevTools [master ≡ +1 ~2 -0 !]> But the title of the window has ext