Category "powershell"

Create a user in MongoDb using powershell

I'm using MongoDb v3.0.3 and want to create a user in a database with admin privileges using powershell. I hook into the C# driver but I don't get very far: $p

How do I make my plugins work with `set encoding=utf-8` in Vim run from Windows PowerShell?

What I want I want to use the a plugin for Vim and I use the famous plugin manager pathogen for this (https://github.com/tpope/vim-pathogen). The plugin is vi

The term 'conda' is not recognized as the name of a cmdlet

I have installed Anaconda 2019.03 for Windows Installer in Windows 10. When typing anything which starts with conda on Powershell getting error: conda : The

Checking if a UNC Path/Server Folder Exists

I am working on a project that utilizes a PowerShell script that creates a new login on a remote SQL Server (SSMS) and then checks to see if a particular folder

Flutter stuck on 'flutter' command - no output to console and it doesn't ever finish

I started following this tutorial about Flutter, and I followed each step until the installation of Flutter on windows, even added flutter to PATH. Now, once I

Flutter stuck on 'flutter' command - no output to console and it doesn't ever finish

I started following this tutorial about Flutter, and I followed each step until the installation of Flutter on windows, even added flutter to PATH. Now, once I

Passing json text as command line argument

I am trying to pass the following JSON text into my python code. {"platform": "android", "version": "6.0.1"} My code is as follows. import sys import json d

How to pass Json parameters to powershell script

I would like to pass Json data to Powershell script. PowerShell script: Get-AzMySqlFirewallRule -ResourceGroupName "dev" -ServerName "dev-DB-Server" | Out-File

The term 'node' is not recognized... In Powershell

I have been trying to resolve this issue for the whole day. When I run node -v or npm install in cmd prompt, it works absolutely fine. But when I run the same

Using powershell to get the "Audit Policy" security setting value

I am trying to use Powershell (auditpol) to query the security setting values of the Audit Policy items. So far with all the auditpol commands, I only able to g

How can I find the product GUID of an installed MSI setup?

I need to find the product GUID for an installed MSI file in order to perform maintenance such as patching, uninstall (how-to uninstall) and also for auditing p

Unable to retrieve cross domain users with get-adgroupmember -recursive

I am tasked to provide a list of AD group members from a number of AD groups and export it to .csv. If any of the AD groups in question has even one cross-domai

Cannot retrieve the "Received Date" from an Outlook Meeting by using Powershell

I have been trying (unsuccesfully) to obtain the "Received Date" for the meetings in my Calendar by using this script. At first, I thought I could use the Crea

Are all CMD commands available within powershell?

Similar to other questions, but are ALL CMD commands usable within Powershell? In short, can I use a Powershell window to supplant CMD prompts, and do both CMD

How to programmatically change tier of Azure SQL Database

We have a large SQL Database running on Azure which is only generally in use during normal office hours, although from time to time, overtime/weekend staff will

How to programmatically change tier of Azure SQL Database

We have a large SQL Database running on Azure which is only generally in use during normal office hours, although from time to time, overtime/weekend staff will

Export Powershell to txt file

I have a powershell script that I run and would like it to export to a txt file when completed. But it should not overwrite the existing output file Any sugge

Log errors after running robocopy command

I am running a robocopy command to copy files from one folder to another like below - "Robocopy source destination filename" Some files are not getting copied a

Adding Shared Printer to Remote Computer via Powershell

I am unable to run an invoke-command script to install printers on a remote machine. My code works locally, but as soon as I pipe it into Invoke-command, i get

Powershell Copy Files with a Blacklist (Exclude) and a Whitelist (Include)

I'm translating some msbuild scripts to powershell. In msbuild, I can generate a blacklist and/or whitelist of files I want to (recursively) copy to a destinat