2,134 questions with PowerShell-related tags

Sort by: Updated
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,827 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 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,236 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,176 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,734 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,138 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 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,166 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,134 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,451 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,768 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 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,111 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,805 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 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,134 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,996 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,805 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,706 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,401 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 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,134 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,996 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,685 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 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,996 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.
401 questions
Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
648 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,883 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2023-01-23T03:29:58.7766667+00:00
EnterpriseArchitect 4,866 Reputation points
commented 2023-02-02T07:53:11.11+00:00
vipullag-MSFT 24,711 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,249 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,967 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 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,091 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,401 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 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,249 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,401 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 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.2K 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,249 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,599 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,554 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2023-01-26T23:03:06.4866667+00:00
~OSD~ 2,131 Reputation points
answered 2023-02-01T11:20:52.3566667+00:00
Limitless Technology 43,996 Reputation points
2 answers

Cannot bind argument to parameter 'ResourceId' because it is null

I'm trying to add device to a collection in SCCM from ServiceNow MID Server, But I'm getting the error with Get-CM Device not returning the value and giving the error message "Cannot bind argument to parameter 'ResourceId' because it is null".…

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,401 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2023-01-27T00:28:25.5633333+00:00
Gummadavelly, Chaitanya Kumar 0 Reputation points
answered 2023-02-01T11:20:22.12+00:00
Limitless Technology 43,996 Reputation points
2 answers

How do i create a file that will run something in windows powershell

I have recently found out that typing "wininit", and running it in powershell blue-screens your computer. I was wondering if there was a way to run powershell this by opening a file/running a file, so that I could mess with my friends.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,768 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,373 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2023-01-26T09:32:07.65+00:00
14sirs 0 Reputation points
answered 2023-02-01T11:07:58.65+00:00
Limitless Technology 43,996 Reputation points
3 answers

How to pull a list of all groups I do not have permission to modify in Active Directory?

I am a newer desktop admin trying to determine what groups I don't have permission to modify in Active Directory so I can send a list to get permission to access them. Is there a script I can run in PowerShell or a way otherwise to pull a list of such? I…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,967 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2023-01-26T21:22:59.76+00:00
Joseph Campbell 0 Reputation points
answered 2023-02-01T11:00:27.6133333+00:00
Limitless Technology 43,996 Reputation points
2 answers One of the answers was accepted by the question author.

Is there a way to copy all files from one user's onedrive to another?

We have a user who has 600GB of files in separate folders on one account and is moving to a new account. They need to move all these folders across via OneDrive but I can't find any resource that will make this happen due to the high quantity and size of…

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
851 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2023-01-30T14:28:24.74+00:00
Joe Gray 20 Reputation points
accepted 2023-02-01T09:11:25.9333333+00:00
Joe Gray 20 Reputation points
2 answers

Powershell Script does not send email to the user

Hello, I have the following script. Everything works fine except the part that it is supposed to send the email to the user. The part that send an email to the supervisor is working properly. I took the original form to a website and I edited it myself.…

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,401 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2023-01-20T13:28:18.8233333+00:00
Kevin Savard Vertisoft 86 Reputation points
answered 2023-02-01T02:52:40.35+00:00
Rich Matheisen 45,111 Reputation points
3 answers

Get Hyper V Administrators group from PowerShell without knowing the name

hello, I want to make a PowerShell script that can add something (I know how I can add ) in the Hyper V Administrators group without knowing the group name (because I saw that this can be different based on Windows installation language and I want a…

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,564 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2023-01-26T12:51:45.2066667+00:00
Ciont, Anamaria-Teodora 0 Reputation points
answered 2023-01-31T08:55:33.5733333+00:00
Limitless Technology 43,996 Reputation points