Questions tagged [powershell]

An interactive shell, scripting and programming language, and surrounding environment from Microsoft. Commonly used by system administrators managing Microsoft software (including Windows, Exchange, SharePoint, and cloud services Azure and Office 365), PowerShell is included by default with Windows, and takes over from previous languages such as VB Script.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Set Application Insights Application Value Using PowerShell

I deployed an azure web app and enabled application insights using powershell. The application will be .NET Core but when I noticed the "instrument you application" value defaults to .NET. ...
0
votes
1answer
31 views

What is the least privilege an account needs to open a pssession to a windows server

I'm looking to create an account with which I can connect to a windows server using PSsession (powershell) What is the least privilege that is needed to have a PSsession open for that server? At this ...
-1
votes
0answers
11 views

Active Directory Event Trigger notification working for single event only

I have created PS script to notify me via email when any account in Active Directory is deleted. I attached script with the relevant EVENT.using ADUC (GUI) on the AD server, If I delete single user ...
0
votes
0answers
22 views

Enter Azure SQL Connection String in App Settings w/ PowerShell

I've deployed an Azure Web App and Azure SQL Database using PowerShell. At the moment I have the following code with a dummy value that sets a sql connection string for my web app: $connectionStrings =...
0
votes
0answers
20 views

Powershell script to install an application from Microsoft Store

I'm relatively new in Powershell. Is there a way to create a script to download an application from Microsoft Store?
0
votes
1answer
22 views

Understanding an Invoke-WebRequest call with output from Fiddler

I'm trying to upload an XML config file to a Netgate router, and the page they give you is a php form. This is a normal config file upload with the GUI - when I use the GUI page, Fiddler shows that ...
2
votes
1answer
29 views

Set distribution group to reject all e-mails from a certain domain

We have been bought out buy another company and are in the process of moving distribution groups shared inboxes etc. over to the new companies domain. We have one distribution group for our accounts ...
1
vote
0answers
15 views

Failover Cluster Missing Disks

I'm stuck with a weird situation to which i could not find a solution. I Have 3 AWS instances (windows server 2019) joined to a failover cluster and each one of them have an instance store volume ...
0
votes
0answers
63 views

Trying to check netframework version remotely PowerShell

TLDR; Trying to check netframework version remotely. Helpful info: running win 7 home on all pcs have network set to public (why I tried -SkipNetworkProfileCheck) all windows firewalls should be off ...
2
votes
0answers
38 views

How to add/change NAPTR records to a specific ZoneScope in Windows DNS using PowersShell

I'm using DNS Policies in Windows DNS for split-horizon. I need to add NAPTR records which resolve differently based on the subnet of where the request came from. I've got almost all of it figured out,...
0
votes
0answers
27 views

Updating O365 License “Microsoft Stream for O365 ES SKU”

I am trying to update multiple users at once with the license "Microsoft Stream for O365 ES SKU", I am stuck on getting the specific license. I have a text file with users and I know how to ...
0
votes
0answers
20 views

Why Get-SmbOpenFile returns unexpected results?

Get-SmbOpenFile really behaves unexpectedly. Even the .vhdxfile is mounted and can be seen from diskmgmt.msc but when I issue the command Get-SmbOpenFile, time to time the mounted file doesn't shows ...
-1
votes
2answers
58 views

In which shared-mailboxes is a security group entered with sendas permissions?

How can I with powershell in which shared-mailboxes is a security group entered with sendas permissions?
0
votes
0answers
32 views

Powershell PSDrive Not working under Scheduled Task

I am trying to move files from a DMZ server to a domain server via powershell I can get it to work from an interactive session however if I try to run it under a scheduled task the copy fails. I ...
-1
votes
1answer
19 views

Powershell: Start-Job returns a “How do you want to open this file” with some cmdlets

Im just getting started with Powershell and im starting to get the hang of it. Im currently working on a script where i would like to run different things in parallel. For example i would like to ...

15 30 50 per page
1
2 3 4 5
246