2,082 questions with PowerShell-related tags

Sort by: Updated
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,173 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,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 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,173 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,579 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,546 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 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,951 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,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 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,951 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,664 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,227 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 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,951 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,899 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 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,951 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.
828 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 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,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 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,091 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,547 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 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,951 Reputation points
0 answers

Which role/permission needed?

I've SharePoint Admin role enabled. While executing 'New-PnPTeamsTeam' command I'm getting error. Please advise which role/permission needed to overcome error and how to activate? Write-Host "Connect to Admin centre" Connect-PnPOnline -ClientId…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,122 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,684 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2023-01-30T16:23:03.33+00:00
H Risbud 251 Reputation points
edited the question 2023-01-30T16:29:11.1866667+00:00
H Risbud 251 Reputation points
2 answers

Stop Service from running on multiple pc's

We have a .net application that is pushed out to multiple pc's around the Unites States. When the user installs this application initially, a service is started. That service is no longer needed. So we'd like to stop it programmatically with the next…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,579 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2023-01-30T15:27:27.9866667+00:00
EM 271 Reputation points
answered 2023-01-30T15:42:54.2966667+00:00
Rich Matheisen 45,091 Reputation points
2 answers

Create a table-like custom object from a variable with CSV content

Hi, I have contents in a variable called $file echo $file gives this Timestamp,Category,OperationName 2022-10-26 19:21:23.5114273,Warning,Insert 2022-10-26 19:21:23.5114273,Warning,Update As you see, the variable is really a CSV. I want to create a…

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,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2023-01-30T01:12:41.1666667+00:00
Biju Mathew 471 Reputation points
answered 2023-01-30T01:47:14.2566667+00:00
Biju Mathew 471 Reputation points
4 answers One of the answers was accepted by the question author.

Error to publish module to private repository

I’m trying to publish a module, which I wrote, to a local repository. The repository is correctly created, if I type get-psrepository I see it. When I launch the command Publish-Module -Path C:\Modules\mymodule -Repository MyRepository the error…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2023-01-25T11:28:34.6466667+00:00
Francesco Farina 20 Reputation points
accepted 2023-01-29T12:55:33.91+00:00
Francesco Farina 20 Reputation points
3 answers

interacting with an API using powershell using an API-KEY

I am wanting to retrive data from an API using powershell Ideally it would work the same way this curl command works , any suggestions? [root@svd-nmrobm01 ~]# curl -d '{"sam_account_name":"smithm"}' -H "Content-Type:…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2023-01-27T16:07:58.8666667+00:00
rob m 256 Reputation points
answered 2023-01-28T02:43:30.3333333+00:00
Rich Matheisen 45,091 Reputation points
0 answers

Your domain controller performance is very critical for that you need to write, test and schedule a PowerShell script called “PerfMonitor.ps1” that runs daily at 10:00 AM and repeats every one hour to chck if there is any process that taking more than

Your domain controller performance is very critical for that you need to write, test and schedule a PowerShell script called “PerfMonitor.ps1” that runs daily at 10:00 AM and repeats every one hour to chck if there is any process that taking more than…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,664 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,173 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,546 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,381 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2023-01-27T19:01:35.6133333+00:00
jake4312 0 Reputation points
commented 2023-01-27T20:08:36.5166667+00:00
Rich Matheisen 45,091 Reputation points
0 answers

Unable to find custom list template and differentiate custom template list and normal list?

Hi, I have created a list custom template from PowerShell utility (Used script from here [https://learn.microsoft.com/en-us/sharepoint/lists-custom-template). Now I am able to see new custom template in 'From your organization' during list creation…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,684 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,675 questions
SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
510 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2023-01-26T16:31:58.53+00:00
Yuvraj Patil 361 Reputation points
edited the question 2023-01-27T17:00:18.63+00:00
Obaid Farooqi MSFT 511 Reputation points Microsoft Employee
0 answers

How to pin/un-pin programs in start menu and starkbar windows 11

Im automating some stuff and would like some help, can anyone help me create or show a working powershell script example that can add or remove pinned programs in the task bar and start menu in windows 11? Im not really versed with powershell, i cant…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,227 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2023-01-27T16:47:54.34+00:00
Drake Jest 0 Reputation points
0 answers

Invoke-WsusServerCleanup not finishing

We ran into an issue where our update server would not successfully run cleanup for the "Unused updates and update revisions" and "Unneeded update files" options when running the WSUS Server Cleanup Wizard. It kept giving the…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2023-01-27T14:48:00.6833333+00:00
tturner226 1 Reputation point
2 answers

Invoke ADF pipeline using powershell script

i have run the below code but it does not seems to be. i'm geting below rerror Invoke-AzDataFactoryV2Pipeline : The term 'Invoke-AzDataFactoryV2Pipeline' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the…

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,603 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2023-01-18T05:06:11.7533333+00:00
Josh 46 Reputation points
commented 2023-01-27T05:02:45.5833333+00:00
PRADEEPCHEEKATLA-MSFT 77,751 Reputation points Microsoft Employee
2 answers

Facing: New-ServicePrincipal : The term 'New-ServicePrincipal' is not recognized as the name of a cmdlet, function, script file, or operable program.

Im trying to setup xoauth2 for our helpdesk aplication. Im following below commands to configure exchange. Install-Module -Name ExchangeOnlineManagement Install-Module Microsoft.Graph Install-Module -Name AzureAD import-module AzureAD Import-module…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2023-01-26T08:55:33.4333333+00:00
Paweł Mrzygłód 0 Reputation points
answered 2023-01-26T17:05:57.2566667+00:00
Limitless Technology 43,951 Reputation points
2 answers

Powershell backup-sqldatabase -ExpirationDate

Greetings! I'm just having a bad time trying to set the expiration date to a SQL Server backup through powershell SQLSever Module. My need is that the next backup overwrites the current file in the directory. I've Tried to achieve that with: $Expira =…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,082 questions
asked 2023-01-25T15:28:27.3733333+00:00
ti1 embracon 0 Reputation points
answered 2023-01-26T16:57:07.26+00:00
Limitless Technology 43,951 Reputation points