Category "powershell"

How to refresh analysis service database using Powershell

What Powershell command refreshes a database in analysis service (SSAS)? I would like to see server parameter and database name parameter too. Also, I want to

Powershell Script Returning Blank Lines, Correct Amount of Lines for Output but nothing in Them

Problem Break-Down So I'm trying to return a list of all the security user groups a user is in but have it be broken up by manager. I take a couple of steps to

Powershell - Azure AD Application Registration - how to set ID tokens?

Background Information I have two separate PowerShell scripts. One uses an ARM template to deploy a function app, along with storage accounts etc. It runs unde

How to suppress warning message from script when calling Set-ExecutionPolicy

I am writing a script to prepare our laptops before use. It essentially installs certificates and sets the executionpolicy to AllSigned. It gets executed by

Powershell certificate scripting using HttpClient

I am looking to use powershell to get certificate information from different API's using HttpClient. (Trying to write a script to find when certificates expire)

Robocopy grabbing just the google chrome bookmarks files

robocopy \\$OldComputername\C$\Users\$Username\Appdata\Local\Google\Chrome\"User Data"\Default \\$NewComputerName\C$\Temp\$Username\Appdata\Local\Google\Chrome\

Can I run a task within a PowerShell script?

I am brand new to Ansible Playbooks and I have checked a bunch of different documentation without success. So here is what I want to do. My company wants me to

Move word-by-word in Powershell Intellisense

I've achieved Intellisense from the Powershell via PSReadLine, but unlike fish shell where a word from the path can be concluded by hitting Ctrl + Right Arrow,

Possible to assign disk drive letter to unassigned drives depending on size via powershell

Currently spinning up 11 unallocated volumes via terraform but noticed that the volumes come in a random order on the machine and not in the specified order of

Powershell script to send WoL via SCCM

I'm looking to put a short Powershell script together that asks for an asset number then sends a WoL request via Config Manager/SCCM to that asset to wake it up

Save Backup Files to DropBox folder in Windows Server 2016

I am trying to create a PowerShell Script to backup my databases to a specific DropBox folder. I started with my Windows Firewall, utilizing the netsh firewall

How can solve problem in installing build tools

I'm trying to install build tools on my OS (Windows 10) but it always stay in the same state. Like picture Build tools error image PS C:\WINDOWS\system32> np

Split a row in a csv file into multiple rows using powershell

this is my first post on this website so please be gentle :) (Also a powershell noob) I have received a .csv file and a .txt file. My job is to input data from

Export folder size to CSV

I'm putting together a script that will import a CSV with a list of folder names (and other fields) to get folder sizes (in this case SamAccountName matches the

PowerShell script to copy filtered data in Excel to another sheet

I am new to PowerShell. I have a file name as Input.xlsx file, which will contain 3 columns and we an filter on any column and save it. My requirement is to cop

Install MSI on remote computer using Powershell

I am trying to write a Powershell script which will deploy software on a collection of WS2016 servers. I am a local administrator on all these servers. Here's w

Calling a Function from a Script block in a DSC configuration

I have an issue with my dsc config, on windows 10. I had to define a script block as I couldn't install WindowsIIS with dsc considering it wants a server sku.

Run a .jsx file using Windows Batch

I'm trying to run a Adobe Script in Premiere using Windows Batch. Is this possible at all?

Extract a single file from a ZIP archive

I'm using the next code to download some zip archive: $client = new-object System.Net.WebClient $client.DownloadFile("https://chromedriver.storage.googleapis.co

Add the result of a Powershell Start-Process to a file instead of replacing it with -RedirectStandardOutput

I use the following command in Powershell to convert files in the background but would like to log the results all in one file. Now the -RedirectStandardOutput