2,100 questions with PowerShell-related tags

Sort by: Updated
3 answers

Powershell cript to get list of services accounts

Hello :) I am looking for a powershell script to retrieve the list of local service accounts Thank you

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-02-03T19:55:48.74+00:00
Ali AMG 0 Reputation points
commented 2023-02-04T16:10:51.53+00:00
Rich Matheisen 45,096 Reputation points
2 answers One of the answers was accepted by the question author.

Can I use a variable in my seach base?

Afternoon all, I'm working on a script that will allow folks to generate a list of computer names from an OU they input. The last bit is having an issue with my search base input and I'm trying to figure out what I'm doing wrong. Here is the…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-02-03T00:06:22.77+00:00
commented 2023-02-03T21:43:13.6633333+00:00
3 answers

Az Hybrid Connection Manager Configuration - Az Powershell Function

Hi All, I am configuring a Azure PowerShell function to communicate with Windows AD using Hybrid Connection Manager. Everything seems to be connected and I was able to run the basic cmdlet "Get-Service"(Code # 1) successfully. Code # 1 # Input…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,321 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,931 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,389 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-02-01T22:15:24.6933333+00:00
PS 376 Reputation points
edited an answer 2023-02-03T21:18:42.7766667+00:00
Rich Matheisen 45,096 Reputation points
6 answers

Struggeling with Invoke-WebRequest

Hello, I'm trying to parse and download BIOS updates from Dell, when I run the script on a Dell OptiPlex 7080 I get the following error. Message: Cannot convert 'System.Object[]' to the type 'System.Uri' required by parameter 'Uri'. Specified method is…

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
832 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-01-31T11:52:43.47+00:00
lupinlicious 136 Reputation points
commented 2023-02-03T16:23:54.5333333+00:00
Rich Matheisen 45,096 Reputation points
2 answers One of the answers was accepted by the question author.

Silent install of Office using a variable

Hello I`ve wrote a script for installing programs directly from USB drive in powershell, but as before i used the just the paths so start-process "D:\programs\program.exe" for ex. everything was fine but then it stroke me that some computers…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,330 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-02-03T13:50:57.6933333+00:00
Krzysztof Kołodziejczyk 20 Reputation points
commented 2023-02-03T15:24:41.3066667+00:00
Krzysztof Kołodziejczyk 20 Reputation points
2 answers

Registry Address appends with folder address, throws error ?!

Hi, I have the below code which adds a newKey in the Registry, then adds Property and Value to the Key. $reg = "Registry::\" $keyPath = Join-Path -Path $reg -ChildPath 'HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows…

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,389 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-02-02T22:30:14.5166667+00:00
touqeeranjum 80 Reputation points
answered 2023-02-03T08:49:11.1266667+00:00
touqeeranjum 80 Reputation points
2 answers

How to deploy color pallets in powerpoint using powershell/gpo

Hi, I want to be able to deploy a color pallet using powershell and GPO in Powerpoint so it will be available for all users in my organisation. Does anyone know how ths can be done or is there a script available?

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,794 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-01-24T11:21:22.7566667+00:00
Kamran Mallik 1 Reputation point
edited the question 2023-02-03T07:25:07.6233333+00:00
Emi Zhang-MSFT 22,011 Reputation points Microsoft Vendor
3 answers

Access Azure File share through private endpoint

I'm trying to enable backup using PowerShell for the file share of storage accounts. In current environment we disabled public network access and using only private endpoints. I have used Runbook with private endpoint but still failing to list the file…

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,170 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,721 questions
Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
470 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,131 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-02-01T19:04:05.28+00:00
Shekar Yenagandula 116 Reputation points
commented 2023-02-03T04:17:42.0033333+00:00
Silvia Wibowo 3,086 Reputation points Microsoft Employee
4 answers

Set arithabort ON When executing a command from powerbuilder application

Script to Set arithabort ON When executing a command from powerbuilder application once session logon.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-02-02T11:29:06.9633333+00:00
Kriti Ana 0 Reputation points
edited the question 2023-02-03T01:38:14.0266667+00:00
Seeya Xi-MSFT 16,446 Reputation points
1 answer One of the answers was accepted by the question author.

TpmVscMgr cmd not working when used with /prompt in PowerShell Windows 10 task

Working on Windows 10, I need to make it possible for a user mode (i.e. non-admin) application to create virtual smart cards (VSC). Yet it seems that VSC's can only be created in admin mode. The solution I have come up with is like so. Register a…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,697 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-02-01T17:02:14.5333333+00:00
Denis Rutten 40 Reputation points
commented 2023-02-02T20:50:51.1233333+00:00
Rich Matheisen 45,096 Reputation points
1 answer One of the answers was accepted by the question author.

For SharePoint Online, what PowerShell can generate a report of all users who can grant access to others on a site or library or a folder?

Hi there For SharePoint Online, what PowerShell can generate a report of all users who can grant access to others on a site or library or folder? (Users may or may not be a Site Owner, they might have Full Control on just a folder or even just a…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,736 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-02-02T00:35:59.87+00:00
frob 4,216 Reputation points
accepted 2023-02-02T17:28:01.62+00:00
frob 4,216 Reputation points
2 answers

使用Powershell的cmdlet退域出错

场景:域控制器DC1上的计算机帐号PC01被删除且不能找回,终端计算机使用Powershell的cmdlet指令退域; 结果:使用remove-computer进行退域至工作组workgroup失败,但使用GUI进入退域至工作组workgroup成功; 请问如何解决这个故障?

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-02-02T09:39:32.55+00:00
ZhanHui Mai 0 Reputation points
answered 2023-02-02T17:13:40.9133333+00:00
Limitless Technology 43,966 Reputation points
2 answers One of the answers was accepted by the question author.

How to fixed error 429 in SharePoint PowerShell

I'm trying retrieve OneDrive site using like this and it's working fine but sometime I get " The remote server returned an error: (429)." I do believe I'm getting that error because I request too many time in my script and getting throttled.…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,736 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,686 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,576 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,389 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-01-24T23:35:57.3766667+00:00
Aase Nomad 246 Reputation points
commented 2023-02-02T13:42:01.23+00:00
Aase Nomad 246 Reputation points
3 answers

How to get only values for each server rather than the property names for every server

$servers = Get-Content -path C:\temp\fileshares.txt foreach ($server in $servers) { Write-Host "Getting file shares from $server..." $fileshare = Get-WmiObject -Class Win32_Share -ComputerName $server | Where-Object {$_.Name -like…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-01-31T19:30:03.2733333+00:00
Anudeep satrasala 0 Reputation points
answered 2023-02-02T10:33:25.7766667+00:00
Limitless Technology 43,966 Reputation points
1 answer

How to find Microsoft store xbox game product ID?

Example : https://www.xbox.com/en-us/games/store/dead-space/9NLB6V0GNC9P I want to get Dead-space game product ID : 9NLB6V0GNC9P I use powershell command (Get-AppxPackage) to get some information about packages But do not find any information about…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,681 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-02-01T02:31:05.0166667+00:00
Hank Lin 1 Reputation point
answered 2023-02-02T09:13:17.7166667+00:00
Limitless Technology 43,966 Reputation points
3 answers

Using container to run multiple different scheduled PowerShell scripts regularly?

People, I need some help and guidance in deploying Docker or Container on Azure, my aim here is to be able to run Active Directory, M365, Azure and other PowerShell scripts as scheduled tasks. Using this…

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
398 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
645 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,877 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-01-23T03:29:58.7766667+00:00
EnterpriseArchitect 4,826 Reputation points
commented 2023-02-02T07:53:11.11+00:00
vipullag-MSFT 24,441 Reputation points
1 answer

Script exclusão de usuários windows server

Estou com um problema em um script que criei para fazer a exclusão dos usuários com mais de 30 dias sem logar, e fazer a exclusão de suas respectivas pastas no servidor, porém quando rodo o script não acontece nada, ele não dá nenhum erro, porém também…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,205 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,931 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-01-31T11:13:20.18+00:00
Jackson Florêncio 0 Reputation points
commented 2023-02-01T22:43:08.85+00:00
MotoX80 32,076 Reputation points
2 answers

Searching registry key, find its property, and replacing the value ?!

Hi, I'm going registry because when I do a backup-GPO with Powershell in Windows Server 2022, and restore it in a different server it does not restore the Network Manager List - Network Name Value (which is TEST in this case). I want to find a registry…

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,389 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-01-31T22:29:22.3266667+00:00
touqeeranjum 80 Reputation points
commented 2023-02-01T19:58:04.7166667+00:00
JIAN WANG 335 Reputation points
1 answer

SBM for windows server 2003

Hello I would like to active SMB 1.0 /cifs file sharing support in windows server 2003, i don't have powershell. can i active the SMB 1.0 via manage your server (old version of server manger)? Thank you

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,205 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,389 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-01-31T15:22:50.8866667+00:00
Louai Al Obaidi 20 Reputation points
commented 2023-02-01T13:42:09.2466667+00:00
Dave Patrick 426.1K Reputation points MVP
2 answers

RAID Volumes and RAID Levels (if any) with PS or VB.net

Hi, Is it possible to know if the disk has RAID configuration or not. If RAID is configured, the information of the RAID volumes using VB.Net or PowerShell? This is what I have checked so far, but not desired results: …

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,205 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,580 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,551 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
asked 2023-01-26T23:03:06.4866667+00:00
~OSD~ 2,126 Reputation points
answered 2023-02-01T11:20:52.3566667+00:00
Limitless Technology 43,966 Reputation points